mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
committed by
Eugenio Romano
parent
737becd51f
commit
58522d0722
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user