From 411966a491a160942849892685fea746c614789e Mon Sep 17 00:00:00 2001 From: Drew Rygh Date: Thu, 3 Dec 2015 10:16:15 -0600 Subject: [PATCH] docs(api): add @demo tag --- scripts/docs/dgeni-config.js | 22 +++++++++++++++------- scripts/docs/tag-defs/tag-defs.js | 3 +++ 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 scripts/docs/tag-defs/tag-defs.js diff --git a/scripts/docs/dgeni-config.js b/scripts/docs/dgeni-config.js index 2d5f4695de..af75d6c9df 100644 --- a/scripts/docs/dgeni-config.js +++ b/scripts/docs/dgeni-config.js @@ -114,15 +114,21 @@ module.exports = function(currentVersion){ }) .config(function(parseTagsProcessor) { - // We actually don't want to parse param docs in this package as we are getting the data out using TS - // parseTagsProcessor.tagDefinitions.forEach(function(tagDef) { - // if (tagDef.name === 'param') { - // tagDef.docProperty = 'paramData'; - // tagDef.transforms = []; - // } - // }); + parseTagsProcessor.tagDefinitions.concat(require('./tag-defs/tag-defs')); }) +// .config(function(parseTagsProcessor) { +// // We actually don't want to parse param docs in this package as we are getting the data out using TS +// parseTagsProcessor.tagDefinitions.forEach(function(tagDef) { +// console.log(tagDef); +// if (tagDef.name === 'param') { +// tagDef.docProperty = 'paramData'; +// tagDef.transforms = []; +// } +// }); +// }) + + // Configure links .config(function(getLinkInfo) { getLinkInfo.useFirstAmbiguousLink = false; @@ -163,4 +169,6 @@ module.exports = function(currentVersion){ 'common.template.html' ] }) + } + diff --git a/scripts/docs/tag-defs/tag-defs.js b/scripts/docs/tag-defs/tag-defs.js new file mode 100644 index 0000000000..6e924159d7 --- /dev/null +++ b/scripts/docs/tag-defs/tag-defs.js @@ -0,0 +1,3 @@ +module.exports = [ + {'name': 'demo'}, +];