git/build.sh

23 lines
417 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 \
2024-02-28 18:51:28 +00:00
\
2024-02-28 14:15:36 +00:00
--output "${OUTPUT}/index.html" \
2024-02-28 18:51:28 +00:00
\
--number-sections \
--slide-level '2' \
2024-02-28 14:15:36 +00:00
--write 'revealjs' \
2024-02-28 18:51:28 +00:00
--variable revealjs-url='/sw/revealjs/up' \
--variable slideNumber \
2024-02-28 14:15:36 +00:00
"${ROOT}/index.md"