Bash static site generator with GitHub flavored markdown support.
Shell Other Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
test
.gitignore
LICENSE
README.md

README.md

jsg

Bash static site generator supporting GitHub flavored markdown.

Usage

jsg [options] <file> [<file> ...]

options
-d directory : Specify a optional directory to write to, uses the same name as `file`, but with an html suffix. If nothing specified outputs to stdout.
-l layout    : Specify a optional layout file. Content will be inserted after `<!-- #content -->`.
-v           : Verbose

Examples

# output/index.html
$ jsg -d output -l layout.html src/index.md

# output/posts/a-post.md
$ jsg -d output/posts -l layout.html src/posts/a-post.md

Development

# run all tests
$ test/bin/*

# run individual test
$ test/bin/markdown_test.sh

History