Giter Club home page Giter Club logo

angular-fr's Introduction

Angular.io

Build Status

Angular.io is site for Angular 2 documentation.

This site also includes links to other helpful angular resources including Angular 2, Angular 1, Angular Material, and AngularFire.

Issues

Please file Developer Guide, Cookbook, and code sample issues only in this Angular.io (FR) github repo.

Angular API issues, cheatsheet corrections, feature requests, defect reports, and technical questions concerning Angular itself belong in the angular source code github repo. We can't handle those topics here and will ask you to re-post them on the angular repo.

How you can help

Filing issues is helpful but pull requests that improve the docs are even better!

Learn how to contribute to Angular.io.

Development Setup

This site relies heavily on node and npm.

  1. Make sure you are using at least node v.5+ and latest npm; if not install nvm to get node going on your machine.

  2. install these npm packages globally: npm install -g harp gulp

  3. clone this repo and the angular source code repo to the same parent directory. The two cloned repo directories must be sibling.

  4. cd into root directory angular-fr/

  5. install the all-docs local packages by running npm install

You probably must rebuild node-sass in a separate step: npm rebuild node-sass

  1. See below for code sample development preparation.

Content Development

All documentation content is written in Jade which has its own syntax. Be aware of the strict demands imposed by this significant-whitespace language. We strongly recommend running one of the gulp serve-and-sync commands described below while editing content so you can see the effect of your changes as you type.

The documentation relies on specific styles and mixins. Learn about those in the documentation styleguide.

The jade documentation files are language-specific directories under either public/docs/. For example, all of the TypeScript docs are in public/docs/ts/latest, e.g.

  • public/docs/ts/latest/quickstart.jade
  • public/docs/ts/latest/guide/architecture.jade
  • public/docs/ts/latest/cookbook/component-communication.jade
  • public/docs/ts/latest/tutorial/toh-pt5.jade

Local server with watches and browser reload

  1. cd into root directory angular.io/
  2. run gulp serve-and-sync
  3. browser will launch on localhost:3000 and stay refreshed automatically.

If you are only going to work on a specific part of the docs, such as the dev guide, then you can use one of the more specific gulp tasks to only watch those parts of the file system:

  • gulp serve-and-sync : watch all the local Jade/Sass files, the API source and examples, and the dev guide files
  • gulp serve-and-sync-api : watch only the API source and example files
  • gulp serve-and-sync-devguide : watch only the dev guide files
  • gulp build-and-serve : watch only the local Jade/Sass files

Code Sample Development

All documentation is supported by sample code and plunkers. Such code resides in the public/docs/_examples directory, under chapter-specific directories, further divided by language track.

For example, the TypeScript QuickStart sample is in public/docs/_examples/quickstart/ts.

All samples are in a consistent directory structure using the same styles and the same npm packages, including the latest release of Angular 2. This consistency is possible in part thanks to gulp-driven tooling. To run the samples locally and confirm that they work properly, take the following extra steps to prepare the environment:

  1. cd to public/docs/_examples

  2. install the canonical node packages for all samples by running npm install

  3. cd back up to angular.io root: cd ../../..

  4. run gulp add-example-boilerplate (elevate to admin on Windows) to copy canonical files to the sample directories and create symlinks there for node_modules and typings.

Now cd into any particular sample's language directory (e.g., public/docs/_examples/quickstart/ts) and try:

  • npm start to simultaneously compile-with-watch and serve-in-browser-with-watch
  • npm run tsc to compile only
  • npm run lite to serve-and-watch in browser

Look at the scripts in package.json for other options. Also, open any plunkr.no-link.html to see the code execute in plunker (you may have to run gulp build-plunkers first to create/update).

You must check that your example is free of lint errors.

  • gulp lint

Sample end-to-end tests

All samples should be covered to some degree by end-to-end tests:

  • gulp run-e2e-tests to run all TypeScript and JavaScript tests
  • gulp run-e2e-tests --lang=dart to run all Dart tests
  • gulp run-e2e-tests --lang=all to run TypeScript, JavaScript, and Dart tests
  • gulp run-e2e-tests --filter=quickstart to filter the examples to run, by name
  • gulp run-e2e-tests --fast to ignore npm install, webdriver update and boilerplate copy

Any combination of options is possible.

Resetting the project

This project generates a lot of untracked files, if you wish to reset it to a mint state, you can run:

  • git clean -xdf

Also, there is a script available for Linux, OSX and Windows Gitbash users that will setup the project using the steps shown in this section:

  • ./scripts/install.sh

Run with current build instead of release packages

Can switch the @angular packages in ~/public/docs/_examples/node_modules to the current build packages with

gulp install-example-angular --build

Restore to RELEASE packages with

gulp install-example-angular

These commands will fail if something is locking any of the packages ... as an IDE often does.

The symptom typically is an error trying to rm -rf node_modules/@angular.

Solution: unlock the hold on the package(s). In VS Code, re-load the window (cmd-P then enter >relow).

Technology Used

  • Angular 1.x: The production ready version of Angular
  • Angular Material: An implementation of Material Design in Angular.js
  • Gulp: node-based tooling
  • Harp: The static web server with built-in preprocessing.
  • Sass: A professional grade CSS extension language
  • Normalize: A modern, HTML5-ready alternative to CSS resets
  • Grids: A highly customizable CSS Grid Framework built with Sass
  • Prettify: A JS module and CSS for syntax highlighting of source code snippets.
  • Icomoon: Custom built icon fonts

License

Powered by Google ©2010-2016. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.

angular-fr's People

Contributors

0x-r4bbit avatar adaojunior avatar alexeagle avatar alexwolfe avatar bampakoa avatar brandonroberts avatar cbalit avatar cexbrayat avatar chalin avatar davideast avatar deborahk avatar eltronix avatar filipesilva avatar foxandxss avatar jeffbcross avatar jesselpalmer avatar johnpapa avatar josh4gitaboutit avatar jtraband avatar kwalrath avatar naomiblack avatar petebacondarwin avatar rexebin avatar samverschueren avatar teresahu avatar teropa avatar thelgevold avatar thso avatar tomplusplus avatar wardbell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-fr's Issues

[REVIEWERS] Docs TS

Docs TS

Note: before checking a line, make sure that the related PR has been merged and the build is green.

  • Docs TS: includes (#3) ⚠️
  • Docs TS: glossary (#4) ⚠️
  • Docs TS: cli-quickstart (#5)
  • Docs TS: quickstart (#6) ⚠️
  • Docs TS: divers (#7) ⚠️
  • Docs TS: cookbook pt.1 (#8)
  • Docs TS: cookbook pt.2 (#9)
  • Docs TS: cookbook pt.3 (#10)
  • Docs TS: cookbook pt.4 (#11)
  • Docs TS: guide animations (#12) ⚠️
  • Docs TS: guide architecture (#13) ⚠️
  • Docs TS: guide attribute-directives (#14) ⚠️
  • Docs TS: guide component-styles (#15) ⚠️
  • Docs TS: guide dependency-injection (#16) ⚠️
  • Docs TS: guide displaying-data (#17) ⚠️
  • Docs TS: guide forms-deprecated (#18) (deprioritized)
  • Docs TS: guide forms (#19) ⚠️
  • Docs TS: guide hierarchical-dependency-injection (#20) ⚠️
  • Docs TS: guide divers (#21) ⚠️
  • Docs TS: guide lifecycle-hooks (#22) ⚠️
  • Docs TS: guide npm-packages (#23) ⚠️
  • Docs TS: guide pipes (#24) ⚠️
  • Docs TS: guide router-deprecated (#25) #(deprioritized)
  • Docs TS: guide router (#26) ⚠️
  • Docs TS: guide security (#27) ⚠️
  • Docs TS: guide server-communication (#28) ⚠️
  • Docs TS: guide structural-directives (#29) ⚠️
  • Docs TS: guide style-guide (#30) ⚠️
  • Docs TS: guide template-syntax (#31) ⚠️
  • Docs TS: guide upgrade (#32) ⚠️
  • Docs TS: guide webpack (#33) ⚠️
  • Docs TS: testing pt1 (#34)
  • Docs TS: testing pt2 (#35)
  • Docs TS: tutorial TOH pt1-2 (#36) ⚠️
  • Docs TS: tutorial TOH pt3-4 (#37) ⚠️
  • Docs TS: tutorial TOH pt5 (#38) ⚠️
  • Docs TS: tutorial TOH pt6 (#39) ⚠️

Docs TS: divers

Fichiers divers à la racine du dossier docs/ts/latest:

  • _data
  • quickstart_repo
  • util-fns
  • cheatsheet
  • help-new
  • help
  • index
  • resources

Track down possible lost commits after git rebase

Track down any possible lost commits after git rebase. Those are merged PR.
Check each line if the related commit is present on master:

  • 92fcb7e : chore: ability to toggle the english language #41
  • 142a48f : docs(glossary): french translation (a to c) #42
  • b82593c : docs(tutorial): french translation (_datas, index, pt1, pt2) #45
  • e2f23ba : docs(guide): french translation (typescript-configuration) #49
  • 6c3b85a : Component styles#15 #50
  • 4a4fc42 : docs(guide): french translation (animations) #52
  • ec52529 : docs(guide): french translation (webpack) #56
  • 4f96aec : docs(glossary): french translation (d to e) #61
  • 4f96aec : docs(glossary): french translation (d to e) #57
  • 71ce590 : docs(translation): fix typos in french Webpack section #58

Repository MD files

Les différents fichiers .md du répo (ex: README.md à la racine des dossiers)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.