git/build.sh
2024-02-28 19:08:12 +01:00

19 lines
384 B
Bash
Executable file

#! /usr/bin/env bash
FILE="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${FILE}")"
OUTPUT="${ROOT}/out"
rm --force --recursive "${OUTPUT}"
mkdir --parents "${OUTPUT}"
pandoc \
--verbose \
--standalone \
--self-contained \
--number-sections \
--output "${OUTPUT}/index.html" \
--write 'revealjs' \
-V revealjs-url='/sw/revealjs/up' \
-V slideNumber='true' \
"${ROOT}/index.md"