Merge pull request #7116 from jdfreder/jsdoc-tool

Use JSDoc to compile white listed JS API documentation
This commit is contained in:
Brian E. Granger 2014-12-12 12:46:32 -08:00
commit 44cd16d390
3 changed files with 190 additions and 292 deletions

File diff suppressed because it is too large Load Diff

21
docs/jsdoc_config.json Normal file
View File

@ -0,0 +1,21 @@
{
"markdown": {
"parser": "gfm"
},
"plugins": [
"plugins/markdown" ,
"jsdoc_plugin.js"
],
"source": {
"include": [
"../IPython/html/static/notebook/js/notebook.js"
]
},
"tags": {
"allowUnknownTags": true
},
"templates": {
"cleverLinks": false,
"monospaceLinks": false
}
}

12
docs/jsdoc_plugin.js Normal file
View File

@ -0,0 +1,12 @@
exports.handlers = {
newDoclet: function(e) {
// e.doclet will refer to the newly created doclet
// you can read and modify properties of that doclet if you wish
if (typeof e.doclet.name === 'string') {
if (e.doclet.name[0] == '_') {
console.log('Private method "' + e.doclet.longname + '" not documented.');
e.doclet.memberof = '<anonymous>';
}
}
}
};