mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Write a plugin to handle private function automatically.
This commit is contained in:
parent
c703b3f3f5
commit
1e0acbeb31
@ -336,7 +336,7 @@ define([
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Set the dirty flag, and trigger the set_dirty.Notebook event
|
||||
@ -921,7 +921,6 @@ define([
|
||||
* Insert an element at given cell index.
|
||||
* return true if everything whent fine.
|
||||
*
|
||||
* @private
|
||||
* @param {HTMLElement} element - a cell element
|
||||
* @param {integer} [index] a valid index where to inser cell
|
||||
**/
|
||||
@ -1101,7 +1100,6 @@ define([
|
||||
|
||||
/**
|
||||
* warn about heading cells being removed
|
||||
* @private
|
||||
*/
|
||||
Notebook.prototype._warn_heading = function () {
|
||||
dialog.modal({
|
||||
@ -1543,7 +1541,6 @@ define([
|
||||
/**
|
||||
* Once a session is started, link the code cells to the kernel and pass the
|
||||
* comm manager to the widget manager
|
||||
* @private
|
||||
*/
|
||||
Notebook.prototype._session_started = function (){
|
||||
this._session_starting = false;
|
||||
@ -1557,7 +1554,6 @@ define([
|
||||
}
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
Notebook.prototype._session_start_failed = function (jqxhr, status, error){
|
||||
this._session_starting = false;
|
||||
@ -1927,7 +1923,6 @@ define([
|
||||
* update the autosave interval based on how long the last save took
|
||||
*
|
||||
* @param {integer} timestamp - when the save request started
|
||||
* @private
|
||||
*/
|
||||
Notebook.prototype._update_autosave_interval = function (start) {
|
||||
var duration = (new Date().getTime() - start);
|
||||
|
@ -3,7 +3,8 @@
|
||||
"parser": "gfm"
|
||||
},
|
||||
"plugins": [
|
||||
"plugins/markdown"
|
||||
"plugins/markdown" ,
|
||||
"jsdoc_plugin.js"
|
||||
],
|
||||
"source": {
|
||||
"include": [
|
||||
|
12
docs/jsdoc_plugin.js
Normal file
12
docs/jsdoc_plugin.js
Normal 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>';
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user