Skip to content
in comes dir of markdown out goes a navigatable website / blog
Shell CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
bash-blog.sh
style.css

README.md

Bash Blog

in comes a dir of markdown, out goes a navigatable website / blog

Requirements

  • Pandoc needed for parsing markdown into HTML

Usage

  1. Run the script in a directory with some markdown
  2. Copy in styles.css into that dir or pass in your own as shown below
  3. Enjoy HTML
    Bash Blog
    Generate navigatable HTML from markdown filled directory.

    usage: bash-blog [-d directory] [-s css-file] [-o output]

    arguments:
        -d, --dir           the directory to look for markdown (and gen output)
        -h, --help          brings up this message and exits
        -o, --output        the root output directory. Creates needed directories if they do not exist. Remember the root of this output dir will need a stylesheet.
        -r, --not-root      add flag to prevent the markdown at this level from displaying a link to parent dir. Likely only useful from the script itself
        -s, --style         path to a css file to use a different stylesheet than default
        -v, --verbose       print verbose / debugging info
You can’t perform that action at this time.