0.1.2 • Published 6 years ago
sphido v0.1.2
Installation
$ npm i sphidoQuick Start
const globby = require('globby');
const Sphido = require('sphido');
(async () => {
  // get list of pages...
  const pages = await Sphido.getPages(
  		await globby('content/**/*.{md,html}'), 
  		...Sphido.extenders
	);
  for await (const page of pages) {
    // save page to HTML (with default theme/page.html)
    // from content ===> public directory
    await page.save(
        page.dir.replace('content', 'public')
    );
  }
  
})();Examples
License
MIT