0.1.0 • Published 3 years ago
mantis-ssg v0.1.0
Mantis: Static Site Generator
What is Mantis?
Mantis is a simple static site generator powered by Node.js. It generates pages with EJS that can be either Markdown, HTML or EJS themselves.
Output example with default template
Gettings Started
To install mantis globally run:
npm i -g mantis-ssgor run the cli directly with:
npx mantis <command>How to create a site
To create a new site, open the folder to start your project and run:
mantis initTo build such site, run:
mantis buildIf you wish to open a live server and edit the site confortably, run:
mantis serveThe just created project will have the next folder structure:
\site
\assets
\layout
\pages
\partials
site.config.jsThe site.config.js should be as follows:
export default {
srcPath: './site',
destPath: './build',
site: 'Mantis SSG',
}Commands
Initialize a new site:
mantis init
Build site:
mantis build
Serve site:
mantis build
Options
-p, --port <port-number> Port to use for local server (default: 3000)
-h, --help Display this help text
-v, --version Display Mantis versionDocs
Visit full documentation for more precise information.