build: markdown-to-html rule should apply docs-specific transforms (#14315)

Currently when building the overview and guide files with Bazel, the following things are missing:

* Replacing `<!-- example` comments with the corresponding HTML elements
* Wrapping the HTML output with a `<div class="docs-markdown">` element
* Rewriting relative links to the proper public guide URL.
* Convert headings to "anchored" headings that can be referenced through URL fragments.

All of these points are handled with this commit.
This commit is contained in:
Paul Gschwendtner
2018-11-29 01:16:03 +01:00
committed by Jeremy Elbourn
parent 47e7aac6da
commit bd9645edae
6 changed files with 110 additions and 19 deletions
+1
View File
@@ -69,6 +69,7 @@
"@types/hammerjs": "^2.0.35",
"@types/inquirer": "^0.0.43",
"@types/jasmine": "^3.0.0",
"@types/marked": "^0.4.2",
"@types/merge2": "^0.3.30",
"@types/minimist": "^1.2.0",
"@types/mock-fs": "^3.6.30",