chore(doc-gen): ignore exports marked as @private

Closes #1363
This commit is contained in:
Peter Bacon Darwin
2015-04-14 20:24:07 +01:00
committed by Misko Hevery
parent 458213d055
commit 0658d5602e
4 changed files with 16 additions and 7 deletions

View File

@ -27,13 +27,15 @@ module.exports = function generateNavigationDoc() {
modulesDoc.value.sections.push(moduleNavItem);
_.forEach(doc.exports, function(exportDoc) {
var exportNavItem = {
path: exportDoc.path,
partial: exportDoc.outputPath,
name: exportDoc.name,
type: exportDoc.docType
};
moduleNavItem.pages.push(exportNavItem);
if (!exportDoc.private) {
var exportNavItem = {
path: exportDoc.path,
partial: exportDoc.outputPath,
name: exportDoc.name,
type: exportDoc.docType
};
moduleNavItem.pages.push(exportNavItem);
}
});
}
});