mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-25 05:38:18 +00:00
a0c0107a54
See: https://tommilligan.github.io/mdbook-admonish/overview.html https://tommilligan.github.io/mdbook-admonish/reference.html
34 lines
855 B
Bash
Executable File
34 lines
855 B
Bash
Executable File
#!/bin/bash
|
|
|
|
tracked_markdown=$(mktemp)
|
|
trap "rm ${tracked_markdown}" "EXIT"
|
|
git ls-tree -r HEAD --name-only docs | egrep '\.(markdown|md)$' > $tracked_markdown
|
|
|
|
if ! hash gelatyx 2>/dev/null ; then
|
|
cargo install gelatyx --locked
|
|
fi
|
|
|
|
gelatyx --language lua --file-list $tracked_markdown --language-config stylua.toml
|
|
gelatyx --language lua --file-list $tracked_markdown --language-config stylua.toml --check || exit 1
|
|
|
|
set -x
|
|
|
|
python3 docs/generate-toc.py || exit 1
|
|
|
|
if ! hash mdbook 2>/dev/null ; then
|
|
cargo install mdbook --locked
|
|
fi
|
|
if ! hash mdbook-linkcheck 2>/dev/null ; then
|
|
cargo install mdbook-linkcheck --locked
|
|
fi
|
|
if ! hash mdbook-mermaid 2>/dev/null ; then
|
|
cargo install mdbook-mermaid --locked
|
|
fi
|
|
if ! hash mdbook-admonish 2>/dev/null ; then
|
|
cargo install mdbook-admonish --locked
|
|
fi
|
|
|
|
mdbook-mermaid install docs
|
|
mdbook build docs
|
|
|