angular-cn/aio/transforms
Georgios Kalpakas 8c726ea87e fix(aio): preserve space after anchor elements
Sometimes, depending on the length of lines, anchor elements would be formatted
incorrectly by `html.prettyPrint` and the space right after the element was
removed.

This was apparently caused by a bug in `html.prettyPrint` in combination with
its default behavior of wrapping lines at a specific limit (70 chars). Since the
output is only meant to be used as JSON string data, wrapping the lines makes it
less readable by adding unnecessary `\n`.

This commit disables the line wrapping, which effectively avoids the bug that
was responsible for incorrectly formatting anchor elements and surrounding
space.

Related to #15681.
2017-04-01 18:23:01 +01:00
..
angular.io-package feat(aio): add about component and data 2017-04-01 07:49:45 +01:00
content-package build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08:00
examples-package build(aio): fix empty docplaster processing 2017-03-31 17:13:06 -07:00
helpers build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08:00
links-package build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08:00
rho-package fix(aio): preserve space after anchor elements 2017-04-01 18:23:01 +01:00
target-package build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08:00
templates feat(aio): add code-example and code-tabs 2017-03-27 12:25:34 +01:00
README.md build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08:00
eslintrc.js build(aio): big move of docs related files (#14361) 2017-02-09 11:58:36 -08: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 docs/angular.io-package/index.js. This package, in turn requires a number of other packages, some are defined locally in the docs folder, such as docs/cheatsheet-package and docs/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 gulp docs from the command line.

Testing the dgeni packages

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

What does it generate?

The output from dgeni is written to files in the dist/docs folder.

Notably this includes a partial HTML file for each "page" of the documentation, such as API pages and guides. It also includes JavaScript 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 dummy demo app using a simple HTTP server hosting dist/docs/index.html