angular-docs-cn/aio/tools/transforms/cli-docs-package/processors
George Kalpakas 0551fbdf88 fix(docs-infra): correctly generate CLI commands docs when the overview page moves (#38365)
Previously, the [processCliCommands][1] dgeni processor, which is used
to generate the docs pages for the CLI commands, expected the CLI
commands overview page (with a URL of `cli`) to exist as a child of a
top-level navigation section (`CLI Commands`). If one tried to move the
`CLI Commands` section inside another section, `processCliCommnads`
would fail to find it and thus fail to generate the CLI commands docs.
This problem came up in #38353.

This commit updates the `processCliCommands` processor to be able to
find it regardless of the position of the `CLI Commands` section inside
the navigation doc.

[1]:
dca4443a8e/aio/tools/transforms/cli-docs-package/processors/processCliCommands.js (L7-L9)

PR Close #38365
2020-08-06 11:41:05 -07:00
..
filterHiddenCommands.js build(docs-infra): ensure hidden cli commands are excluded from `sitemap.xml` (#30395) 2019-05-10 11:56:39 -07:00
filterHiddenCommands.spec.js build(docs-infra): ensure hidden cli commands are excluded from `sitemap.xml` (#30395) 2019-05-10 11:56:39 -07:00
processCliCommands.js fix(docs-infra): correctly generate CLI commands docs when the overview page moves (#38365) 2020-08-06 11:41:05 -07:00
processCliCommands.spec.js fix(docs-infra): correctly generate CLI commands docs when the overview page moves (#38365) 2020-08-06 11:41:05 -07:00
processCliContainerDoc.js feat(docs-infra): generate Angular CLI command reference (#25363) 2018-09-26 11:24:02 -07:00
processCliContainerDoc.spec.js feat(docs-infra): generate Angular CLI command reference (#25363) 2018-09-26 11:24:02 -07:00