documentation/generate_docs.sh
2024-06-19 16:20:50 -07:00

6 lines
No EOL
337 B
Bash
Executable file

#!/bin/bash
rm -rf build/
mkdir -p build/{res,landing,mapping,internal}
cp -r markdown/res build/
mkdir -p build/ && cd markdown/
find . -iname "*.md" -type f -exec sh -c 'pandoc --standalone --toc --template ../template/template.html --from=markdown --to=html5 --lua-filter=../links-to-html.lua -o "../build/${0%.md}.html" "${0}"' {} \;