documentation/generate_docs.sh

6 lines
337 B
Bash
Raw Normal View History

2024-06-19 23:20:50 +00:00
#!/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}"' {} \;