#makepages
makepages
is a simple static site generator. It's built on make
, markdown
and some shell utilities. It also takes advantage of git
for publishing to Github pages.
##usage
$ git clone https://github.com/juhohei/makepages.git && cd makepages
After you have the repo, you need to set your Github pages as remote repository:
$ git remote remove origin
$ git remote add origin https://github.com/<YOURUSERNAME>/<YOURUSERNAME>.github.io.git
// new post:
$ make new title="title of your post"
// write some markdown in the post that just opened $EDITOR
// to build the site:
$ make
// publish to github pages:
$ make publish m="commit message"
// create a snapshot of your current page:
$ make snapshot
##examples
To get the ready-to-go files, just run git checkout example ** mv example/* . && rmdir example
. You can see a live version at my pages.
##running locally
For previewing, use a simple static server such as node
's http-server
(cd makepages && npm install http-server && http-server
).