angular-docs-cn/aio/tools/transforms
Zhicheng Wang b433d2148c fix: change some angular.io to angular.cn 2018-03-26 16:34:57 +08:00
..
angular-api-package feat(aio): first pass API docs redesign (#21874) 2018-02-09 13:05:16 -08:00
angular-base-package Merge remote-tracking branch 'en/master' into aio 2018-02-28 13:13:29 +08:00
angular-content-package Merge remote-tracking branch 'en/master' into aio 2018-02-28 13:13:29 +08:00
angular.io-package build(aio): move file cleaning to later in the doc gen (#21540) 2018-01-16 07:10:30 -08:00
authors-package test(aio): increase `docs-test` timeouts to prevent flakes on Travis (#22261) 2018-02-16 14:46:23 -08:00
content-package
examples-package build(aio): migrate plunker to stackblitz (#20165) 2018-01-23 21:30:27 -08:00
helpers
links-package
post-process-package style(aio): fix docs linting issues (#19702) 2017-11-01 15:24:46 -07:00
remark-package fix: 翻译完了服务端渲染部分 2018-03-22 10:52:52 +08:00
target-package
templates fix: change some angular.io to angular.cn 2018-03-26 16:34:57 +08:00
.eslintignore
.eslintrc.js style(aio): fix docs linting issues (#19702) 2017-11-01 15:24:46 -07:00
README.md docs(aio): tidy up tooling documentation (#18151) 2017-09-21 10:00:37 -07:00
config.js
test.js

README.md

Overview

All the content that is rendered by the AIO application, and some of its configuration files, are generated from source files by Dgeni. Dgeni is a general purpose documentation generation tool.

Markdown files in /aio/content, code comments in the core Angular source files and example files are processed and transformed into files that are consumed by the AIO application.

Dgeni is configured by "packages", which contain services and processors. Some of these packages are installed as node_modules from the dgeni-packages and some are specific to the AIO project.

The project specific packages are stored in this folder (aio/tools/transforms).

If you are an author and want to know how to generate the documentation, the steps are outlined in the top level README.md.

Root packages

To run Dgeni, you must specify a root package, which acts as the entry point to the documentation generation. This root 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.

  • The primary root package is defined in tools/transforms/angular.io-package/index.js. This package is used to run a full generation of all the documentation.
  • There are also root packages defined in tools/transforms/authors-package/*-package.js. These packages are used by the documentation authors when writing docs, since it allows them to run partial doc generation, which is not complete but is faster for quickly seeing changes to the document that you are working on.

Other packages

  • angular-base-package
  • angular-api-package
  • angular-content-package
  • content-package
  • examples-package
  • links-package
  • post-process-package
  • remark-package
  • target-package

Templates

All the templates for the angular.io dgeni transformations are stoted in the tools/transforms/templates folder. See the README.