mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
[API] Include JSDoc for mct namespace only
This commit is contained in:
15
build/jsdoc/plugins/mct-only.js
Normal file
15
build/jsdoc/plugins/mct-only.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
module.exports = {
|
||||||
|
handlers: {
|
||||||
|
newDoclet: function (e) {
|
||||||
|
var doclet = e.doclet;
|
||||||
|
var memberof = doclet.memberof || "";
|
||||||
|
var longname = doclet.longname || "";
|
||||||
|
|
||||||
|
if (longname !== 'mct' && memberof.indexOf('mct') !== 0) {
|
||||||
|
e.preventDefault = true;
|
||||||
|
e.stopPropagation = true;
|
||||||
|
doclet.ignore = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"source": {
|
"source": {
|
||||||
"include": [
|
"include": [
|
||||||
"platform/"
|
"src/"
|
||||||
],
|
],
|
||||||
"includePattern": "platform/.+\\.js$",
|
"includePattern": "src/.+\\.js$",
|
||||||
"excludePattern": ".+\\Spec\\.js$|lib/.+"
|
"excludePattern": ".+\\Spec\\.js$|lib/.+"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"plugins/markdown"
|
"plugins/markdown",
|
||||||
|
"build/jsdoc/plugins/mct-only"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user