d4003452c7
The docs template for cli commands ([cli-command.template.html][1]) includes an `h2` element with GitHub links for [long description][2]. Since the content of `h2` elements is replicated in the auto-generated Table of Contents, the GitHub links were replicated as well (which is undesirable). This commit fixes it by explicitly excluding `.github-links` elements, when extracting the content for the ToC (in [TocService#extractHeadingSafeHtml()][3]). This is similar to what we do for the auto-generated `.header-link` anchors. [1]: https://github.com/angular/angular/blob/1537791f0/aio/tools/transforms/templates/cli/cli-command.template.html [2]: https://github.com/angular/angular/blob/1537791f0/aio/tools/transforms/templates/cli/cli-command.template.html#L18 [3]: https://github.com/angular/angular/blob/1537791f0/aio/src/app/shared/toc.service.ts#L56 PR Close #32418 |
||
---|---|---|
.. | ||
app | ||
assets | ||
environments | ||
extra-files | ||
styles | ||
testing | ||
404-body.html | ||
google385281288605d160.html | ||
index.html | ||
main.ts | ||
noop-worker-basic.js | ||
polyfills.ts | ||
pwa-manifest.json | ||
styles.scss | ||
test.ts | ||
typings.d.ts |