A static site generator is a tool that generates a full static HTML website based on raw data and a set of templates. Essentially, a static site generator automates the task of coding individual HTML pages and gets those pages ready to serve to users ahead of time. Because these HTML pages are pre-built, they can load very quickly in users' browsers.
Static site generators are an alternative to content management systems (CMS) — another type of tool for managing web content, generating webpages, and implementing templates.
- Fork github repo
- Clone your github repo
- cd to project folder
- run
npm install
-
--help
or-h
to display the usage information -
Run
--version
or-v
to display the tool name and version -
Run
simple-ssg1 [name of the file]
to conver file from txt to html.
-
simple-ssg1 ./content
(convert all files inside content folder into html) -
simple-ssg1 silver-blaze
(upper case or lower case, will convert single file into html)
-
Added default stylesheet file
-
When user specifies a folder (./content) tool will convert all files inside this folder into html files and create home page.