meanas/make_docs.sh

21 lines
476 B
Bash
Raw Normal View History

#!/bin/bash
set -Eeuo pipefail
2026-04-18 15:05:35 -07:00
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT"
2020-02-19 18:42:06 -08:00
DOCS_TMP="$(mktemp -d)"
cleanup() {
rm -rf "$DOCS_TMP"
}
trap cleanup EXIT
python3 "$ROOT/scripts/prepare_docs_sources.py" "$ROOT/meanas" "$DOCS_TMP"
MKDOCSTRINGS_PYTHON_PATH="$DOCS_TMP" mkdocs build --clean
2020-02-19 18:42:06 -08:00
2026-04-18 15:05:35 -07:00
PRINT_PAGE='site/print_page/index.html'
if [[ -f "$PRINT_PAGE" ]] && command -v htmlark >/dev/null 2>&1; then
htmlark "$PRINT_PAGE" -o site/standalone.html
fi