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

22 lines
417 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 \
\
--output "${OUTPUT}/index.html" \
\
--number-sections \
--slide-level '2' \
--write 'revealjs' \
--variable revealjs-url='/sw/revealjs/up' \
--variable slideNumber \
"${ROOT}/index.md"