awesome-cordova-plugins/scripts/docs/processors/hide-private-api.js

10 lines
321 B
JavaScript
Raw Normal View History

2017-03-24 10:07:59 +08:00
"use strict";
module.exports = function removePrivateApi() {
return {
name: 'remove-private-api',
description: 'Prevent the private apis from being rendered',
$runBefore: ['rendering-docs'],
2017-03-24 10:07:59 +08:00
$process: docs => docs.filter(doc => !doc.private && (!doc.tags || !doc.tags.tagsByName.get('hidden')))
};
};