docs: add table-of-contents to troubleshooting (#4234)

Drive-by: teach our table-of-contents generator to ignore comments
inside fenced blocks and to de-linkify titles.
This commit is contained in:
Andrey Lushnikov
2019-04-02 19:08:22 -07:00
committed by GitHub
parent 2c6df6ddd1
commit 0adffcc2cb
5 changed files with 70 additions and 4 deletions

View File

@@ -39,7 +39,8 @@ async function run() {
{
const readme = await Source.readFile(path.join(PROJECT_DIR, 'README.md'));
const api = await Source.readFile(path.join(PROJECT_DIR, 'docs', 'api.md'));
const mdSources = [readme, api];
const troubleshooting = await Source.readFile(path.join(PROJECT_DIR, 'docs', 'troubleshooting.md'));
const mdSources = [readme, api, troubleshooting];
const preprocessor = require('./preprocessor');
messages.push(...await preprocessor.runCommands(mdSources, VERSION));