awesome-cordova-plugins/scripts/docs/dgeni/processors/hide-private-api.js
2021-09-27 22:09:05 +02:00

10 lines
326 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'))),
};
};