[ADF-3198] Index and tutorial content review (#3500)

* [ADF-3198] Fixed glitches in doc index files and tools

* [ADF-3198] Reviewed new tutorial content and fixed index glitches

* [ADF-3198] Fixed host settings component brief description
This commit is contained in:
Andy Stark
2018-06-18 22:57:01 +01:00
committed by Eugenio Romano
parent 737becd51f
commit 58522d0722
14 changed files with 150 additions and 109 deletions

View File

@@ -1,4 +1,6 @@
var remark = require("remark");
var path = require("path");
//var remark = require("remark");
var tocGenerator = require("mdast-util-toc");
var replaceSection = require("mdast-util-heading-range");
@@ -73,6 +75,10 @@ function establishContentsSection(mdTree) {
}
function updatePhase(tree, pathname, aggData) {
if (path.basename(pathname, ".md").match(/README|versionIndex/)) {
return false;
}
// If we need a contents section then add one or update the existing one.
var numTocHeadings = establishContentsSection(tree);