mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +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": {
|
||||
"include": [
|
||||
"platform/"
|
||||
"src/"
|
||||
],
|
||||
"includePattern": "platform/.+\\.js$",
|
||||
"includePattern": "src/.+\\.js$",
|
||||
"excludePattern": ".+\\Spec\\.js$|lib/.+"
|
||||
},
|
||||
"plugins": [
|
||||
"plugins/markdown"
|
||||
"plugins/markdown",
|
||||
"build/jsdoc/plugins/mct-only"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user