git/build.sh

24 lines
445 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 19:05:50 +00:00
--css "${ROOT}/index.css" \
2024-02-28 14:15:36 +00:00
--output "${OUTPUT}/index.html" \
2024-02-28 18:51:28 +00:00
\
--number-sections \
2024-02-28 19:45:41 +00:00
--slide-level '3' \
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"