0.1.2 • Published 5 years ago
sphido v0.1.2
Installation
$ npm i sphido
Quick 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