| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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.
Please file Developer Guide, Cookbook, and code sample issues only in this Angular.io 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.
Filing issues is helpful but pull requests that improve the docs are even better!
Learn how to contribute to Angular.io.
This site relies heavily on node and npm.
Make sure you are using the latest node and npm; if not install nvm to get node going on your machine.
install these npm packages globally: npm install -g harp gulp
clone this repo and the angular source code repo to the same parent directory. The two cloned repo directories must be sibling.
cd into root directory angular.io/
install the all-docs local packages by running npm install
If running node v.5+, you probably must rebuild node-sass in a separate step: npm rebuild node-sass
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.
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:
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:
cd to public/docs/_examples
install the canonical node packages for all samples by running npm install
cd back up to angular.io root: cd ../../..
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:
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.
All samples should be covered to some degree by end-to-end tests:
Any combination of options is possible.
This project generates a lot of untracked files, if you wish to reset it to a mint state, you can run:
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:
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).
Powered by Google ©2010-2016. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
| Back | FazBrowse Home | New Git URL |