first commit

This commit is contained in:
2024-05-23 15:34:45 +08:00
commit 57ef9aedd2
655 changed files with 96823 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
/**
* Define @api tag
*/
exports.defineTags = function (dictionary) {
dictionary.defineTag('api', {
mustHaveValue: false,
canHaveType: false,
canHaveName: false,
onTagged: function (doclet, tag) {
doclet.public = true;
}
});
};
/*
* Only items with @api annotation should be documented
*/
exports.handlers = {
parseComplete: function (e) {
var doclets = e.doclets;
for (var i = 0; i < doclets.length; i++) {
doclets[i].undocumented = !doclets[i].public;
}
}
};