shell build script for markdown in 2025 is diabolical
Diabolical Website Builder is a static site generator written in POSIX sh. It uses Pandoc to convert Markdown to HTML, allowing you to write your boilerplate once and never worry about it again. Designed for Linux, but should work on MacOS or Windows Subsystem for Linux as well.
- Ensure you have
pandoc,sed, andyqinstalled. - Clone or fork this repository.
- Customize
site-title.txt,head-content.html, andfoot-content.htmlto your liking. - Edit
resources/style.cssas you see fit. - Build by running
build.sh(may need to be marked as executable:chmod +x ./build.sh)
By default, the output will be in the folder ./output, but it can be changed by specifying the OUTPUT_DIR environent variable. For example:
OUTPUT_DIR=~/Remote/public_html ./build.sh
See LICENSE.md for details.