mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
@ -19,6 +19,8 @@ module.exports = function(currentVersion){
|
|||||||
.processor(require('./processors/index-page'))
|
.processor(require('./processors/index-page'))
|
||||||
.processor(require('./processors/jekyll'))
|
.processor(require('./processors/jekyll'))
|
||||||
.processor(require('./processors/remove-private-members'))
|
.processor(require('./processors/remove-private-members'))
|
||||||
|
.processor(require('./processors/hide-private-api'))
|
||||||
|
|
||||||
|
|
||||||
// for debugging docs
|
// for debugging docs
|
||||||
// .processor(function test(){
|
// .processor(function test(){
|
||||||
|
18
scripts/docs/processors/hide-private-api.js
Normal file
18
scripts/docs/processors/hide-private-api.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
module.exports = function removePrivateApi() {
|
||||||
|
return {
|
||||||
|
name: 'remove-private-api',
|
||||||
|
description: 'Prevent the private apis from being rendered',
|
||||||
|
$runBefore: ['rendering-docs'],
|
||||||
|
$process: function(docs) {
|
||||||
|
var publicDocs = [];
|
||||||
|
docs.forEach(function(doc){
|
||||||
|
if(!doc.private){
|
||||||
|
publicDocs.push(doc);
|
||||||
|
return doc
|
||||||
|
}
|
||||||
|
})
|
||||||
|
docs = publicDocs;
|
||||||
|
return docs;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
Reference in New Issue
Block a user