Created
June 30, 2021 21:01
-
-
Save josemarluedke/b61f0f0aa55020b458ce9e7047804e09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Docfy = require('@docfy/core'); | |
const getConfig = require('@docfy/ember/lib/get-config').default; | |
const config = getConfig(__dirname); | |
(async function () { | |
const docfy = new Docfy(config); | |
const result = await docfy.run(config.sources); | |
let totalDemoComponents = 0; | |
result.content.forEach((page) => { | |
console.log(page.rendered); | |
}); | |
console.log('Total pages', result.content.length); | |
console.log('Total demo components', totalDemoComponents); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment