A rocket 🚀 fast, lightweight, static site generator.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
.gitignore
.npmignore
index.js
package.json v0.0.6 Oct 8, 2018
readme.md
yarn.lock

readme.md

A rocket 🚀 fast, lightweight, static site generator.

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')
    );
  }
  
})();

See example folder for more examples.

License

MIT