mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
25 lines
690 B
JavaScript
25 lines
690 B
JavaScript
module.exports = function removePrivateMembers() {
|
|
return {
|
|
name: 'remove-private-members',
|
|
description: 'Remove member docs with @private tags',
|
|
$runAfter: ['tags-parsed'],
|
|
$runBefore: ['rendering-docs'],
|
|
$process: function(docs) {
|
|
docs.forEach(function(doc) {
|
|
if (doc.members) {
|
|
doc.members = doc.members.filter(function(member) {
|
|
return !member.tags.tagsByName.get('private');
|
|
});
|
|
}
|
|
if (doc.statics) {
|
|
doc.statics = doc.statics.filter(function(staticMethod) {
|
|
return !staticMethod.tags.tagsByName.get('private');
|
|
});
|
|
}
|
|
});
|
|
|
|
return docs;
|
|
}
|
|
};
|
|
};
|