Remove stability from info

This commit is contained in:
Andreas Hocevar
2018-01-26 00:08:17 +01:00
parent 3c09bfa602
commit 08763ef139
2 changed files with 3 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ exports.defineTags = function(dictionary) {
dictionary.defineTag('api', { dictionary.defineTag('api', {
onTagged: function(doclet, tag) { onTagged: function(doclet, tag) {
doclet.api = tag.text || 'experimental'; doclet.api = true;
} }
}); });

View File

@@ -30,12 +30,12 @@ exports.publish = function(data, opts) {
{define: {isObject: true}}, {define: {isObject: true}},
function() { function() {
if (this.kind == 'class') { if (this.kind == 'class') {
if (!('extends' in this) || typeof this.api == 'string') { if (!('extends' in this) || typeof this.api == 'boolean') {
classes[this.longname] = this; classes[this.longname] = this;
return true; return true;
} }
} }
return (typeof this.api == 'string' || return (typeof this.api == 'boolean' ||
this.meta && (/[\\\/]externs$/).test(this.meta.path)); this.meta && (/[\\\/]externs$/).test(this.meta.path));
} }
], ],
@@ -92,7 +92,6 @@ exports.publish = function(data, opts) {
name: doc.longname, name: doc.longname,
kind: doc.kind, kind: doc.kind,
description: doc.classdesc || doc.description, description: doc.classdesc || doc.description,
stability: doc.api,
path: path.join(doc.meta.path, doc.meta.filename) path: path.join(doc.meta.path, doc.meta.filename)
}; };
if (doc.augments) { if (doc.augments) {