/jsg

Bash static site generator with GitHub flavored markdown support.

Primary LanguageShellMIT LicenseMIT

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

# increase GitHub Markdown API rate limit. Create personal access token with no permissions
export JSG_TOKEN=......

# 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