awesome-cordova-plugins/scripts/docs/processors/hide-private-api.js
2017-03-23 22:07:59 -04:00

10 lines
321 B
JavaScript

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