[ADF-2764] Added new type linker features and applied them to core docs (#3442)

* [ADF-2764] Added basic support for composite and external types

* [ADF-2764] Added new type linker features and applied to core docs
This commit is contained in:
Andy Stark
2018-06-06 12:21:31 +01:00
committed by Eugenio Romano
parent 47d7e59df4
commit 28ba09897e
56 changed files with 388 additions and 292 deletions

View File

@@ -66,10 +66,13 @@ function updatePhase(filenames, aggData) {
showErrors(pathname, errorMessages);
}
if (modified)
if (program.json) {
console.log(JSON.stringify(tree));
}
if (modified) {
fs.writeFileSync(filenames[i], remark().use(frontMatter, {type: 'yaml', fence: '---'}).data("settings", {paddedTable: false, gfm: false}).stringify(tree));
//console.log(JSON.stringify(tree));
}
}
}
@@ -128,6 +131,7 @@ function getAllDocFilePaths(docFolder, files) {
program
.usage("[options] <source>")
.option("-p, --profile [profileName]", "Select named config profile", "default")
.option("-j, --json", "Output JSON data for Markdown syntax tree")
.parse(process.argv);
var sourcePath;