git/build.sh

19 lines
364 B
Bash
Raw Normal View History

2024-02-28 14:15:36 +00:00
#! /usr/bin/env bash
FILE="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${FILE}")"
OUTPUT="${ROOT}/out"
2024-02-28 14:39:27 +00:00
rm --force --recursive "${OUTPUT}"
2024-02-28 14:15:36 +00:00
mkdir --parents "${OUTPUT}"
pandoc \
2024-02-28 14:39:27 +00:00
--verbose \
2024-02-28 14:15:36 +00:00
--standalone \
--self-contained \
--output "${OUTPUT}/index.html" \
--write 'revealjs' \
2024-02-28 14:39:27 +00:00
-V revealjs-url='/sw/revealjs/up' \
2024-02-28 16:42:32 +00:00
-V slideNumber='true' \
2024-02-28 14:15:36 +00:00
"${ROOT}/index.md"