diff --git a/config/jsdoc/info/api-plugin.js b/config/jsdoc/info/api-plugin.js index af732d0761..afef0dc34e 100644 --- a/config/jsdoc/info/api-plugin.js +++ b/config/jsdoc/info/api-plugin.js @@ -8,7 +8,7 @@ exports.defineTags = function(dictionary) { dictionary.defineTag('api', { onTagged: function(doclet, tag) { - doclet.api = tag.text || 'experimental'; + doclet.api = true; } }); diff --git a/config/jsdoc/info/publish.js b/config/jsdoc/info/publish.js index 9d9bb1cb4a..9b9dd81874 100644 --- a/config/jsdoc/info/publish.js +++ b/config/jsdoc/info/publish.js @@ -30,12 +30,12 @@ exports.publish = function(data, opts) { {define: {isObject: true}}, function() { if (this.kind == 'class') { - if (!('extends' in this) || typeof this.api == 'string') { + if (!('extends' in this) || typeof this.api == 'boolean') { classes[this.longname] = this; return true; } } - return (typeof this.api == 'string' || + return (typeof this.api == 'boolean' || this.meta && (/[\\\/]externs$/).test(this.meta.path)); } ], @@ -92,7 +92,6 @@ exports.publish = function(data, opts) { name: doc.longname, kind: doc.kind, description: doc.classdesc || doc.description, - stability: doc.api, path: path.join(doc.meta.path, doc.meta.filename) }; if (doc.augments) {