Skip to content

Instantly share code, notes, and snippets.

@josemarluedke
Created June 30, 2021 21:01
Show Gist options
  • Save josemarluedke/b61f0f0aa55020b458ce9e7047804e09 to your computer and use it in GitHub Desktop.
Save josemarluedke/b61f0f0aa55020b458ce9e7047804e09 to your computer and use it in GitHub Desktop.
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