angular-cn/aio/tools/transforms
Zhicheng Wang 104edf62f0 fix: minor improvement 2017-08-06 13:49:04 +08:00
..
angular-api-package build(aio): simplify the primary overload's anchor 2017-07-13 12:16:20 -07:00
angular-base-package fix: don't hide translation-origin if there is not translation-result 2017-07-30 14:10:08 +08:00
angular-content-package fix: retranslate navigation 2017-07-30 13:35:27 +08:00
angular.io-package build(aio): abort doc-gen on dangling links 2017-07-18 11:45:05 +01:00
authors-package build(aio): increase docs integration test timeouts 2017-06-13 11:56:45 +01:00
content-package build(aio): refactor dgeni packages 2017-04-23 22:50:33 +01:00
examples-package build(aio): abort doc-gen if an example is missing 2017-07-18 11:45:05 +01:00
helpers test(aio): add tests for renderAttributes helper 2017-05-11 10:30:10 +01:00
links-package build(aio): better error message for invalid links (#16993) 2017-05-24 11:59:06 -06:00
post-process-package build(aio): capture the h1 title and attach it to the document 2017-05-31 08:45:31 +03:00
remark-package fix: minor improvement 2017-08-06 13:49:04 +08:00
target-package build(aio): move the `transforms` folder into the `tools` folder 2017-04-16 22:05:23 +01:00
templates fix(aio): fix links to source for paths with symlinks 2017-07-28 15:28:59 -07:00
.eslintignore build(aio): move the `transforms` folder into the `tools` folder 2017-04-16 22:05:23 +01:00
.eslintrc.js build(aio): move the `transforms` folder into the `tools` folder 2017-04-16 22:05:23 +01:00
README.md build(aio): rename `src/content` to `src/generated` 2017-05-03 13:40:46 -07:00
config.js build(aio): ignore example files that are gitignored 2017-06-09 14:33:21 +01:00
test.js build(aio): ensure all doc tests are run 2017-06-21 13:51:15 -07:00

README.md

Documentation Generation

The dgeni tool is used to generate the documentation from the source files held in this repository. The documentation generation is configured by a dgeni package defined in tools/transforms/angular.io-package/index.js. This package, in turn requires a number of other packages, some are defined locally in the tools/transforms folder, such as tools/transforms/cheatsheet-package and tools/transforms/content-package, etc. And some are brought in from the dgeni-packages node modules, such as jsdoc and nunjucks.

Generating the docs

To generate the documentation simply run yarn docs from the command line.

Testing the dgeni packages

The local packages have unit tests that you can execute by running yarn docs-test from the command line.

What does it generate?

The output from dgeni is written to files in the src/generated folder.

Notably this includes a JSON file containing the partial HTML for each "page" of the documentation, such as API pages and guides. It also includes JSON files that contain metadata about the documentation such as navigation data and keywords for building a search index.

Viewing the docs

You can view the pages by running yarn start and navigating to https://localhost:4200.