A rocket
fast, lightweight, static site generator
Installation
$ npm i sphido # or
$ yarn add sphido
Quick Start
const globby = require('globby');
const Sphido = require('sphido');
(async () => {
// 1. get list of pages
const pages = await Sphido.getPages(
await globby('content/**/*.{md,html}'),
...Sphido.extenders
);
// 2. save them (with default template)
for await (const page of pages) {
await page.save(
page.dir.replace('content', 'public')
);
}
})();
Need more examples or tutorials? View Sphido docs or explore sphido.org source codes.