angular-cn/aio/src
George Kalpakas d4003452c7 fix(docs-infra): do not include GitHub links in Table of Content (#32418)
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
2019-09-05 13:33:06 -04:00
..
app fix(docs-infra): do not include GitHub links in Table of Content (#32418) 2019-09-05 13:33:06 -04:00
assets fix(docs-infra): fix logo to have branded red color (#31663) 2019-07-22 09:54:00 -07:00
environments build(docs-infra): remove obsolete `ie-polyfills.js` (#29926) 2019-04-25 12:32:49 -07:00
extra-files build(aio): generate sitemap from the generated pages (#21689) 2018-01-22 12:55:15 -08:00
styles fix(docs-infra): fix broken toc ul styles (#32124) 2019-08-14 12:01:17 -07:00
testing test(docs-infra): run tests in random order (and make them pass) (#31527) 2019-07-18 10:17:13 -07:00
404-body.html fix(docs-infra): improve a11y (#28086) 2019-01-16 17:37:45 -08:00
google385281288605d160.html build(aio): add google webmaster tools verification file 2017-05-26 01:25:58 -07:00
index.html build(docs-infra): remove obsolete `ie-polyfills.js` (#29926) 2019-04-25 12:32:49 -07:00
main.ts feat(docs-infra): Convert AIO to use the new Service Worker 5.0.0. (#19795) 2018-08-27 16:30:42 -04:00
noop-worker-basic.js feat(aio): provide noop service worker file 2017-05-26 14:24:41 +01:00
polyfills.ts build(docs-infra): remove obsolete `ie-polyfills.js` (#29926) 2019-04-25 12:32:49 -07:00
pwa-manifest.json fix(aio): make background transparent in 144x144 PWA icon (#23851) 2018-05-11 12:38:21 -04:00
styles.scss style(aio): tidy up SCSS files 2017-03-13 12:55:11 -07:00
test.ts test(docs-infra): remove reflect-metadata polyfill from aio tests (#27130) 2018-11-16 12:17:44 -08:00
typings.d.ts build(aio): update project config for @angular/cli v1.0.0 2017-03-27 11:55:26 -07:00