49b9bb6724
Deploy Docs / deploy-docs (push) Failing after 1s
Conformance Tests / client-conformance (push) Failing after 3s
Conformance Tests / server-conformance (push) Failing after 1s
GitHub Actions Security Analysis / zizmor (push) Failing after 1s
CI / checks (push) Failing after 59m20s
CI / all-green (push) Waiting to run
20 lines
629 B
Bash
Executable File
20 lines
629 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Serve the v2 documentation locally with live reload.
|
|
#
|
|
# Regenerates the API reference and the concrete Zensical config, then serves
|
|
# it. Re-run the script to pick up changes to `src/` (the API reference) or the
|
|
# nav; edits to prose pages under `docs/` are picked up by live reload.
|
|
#
|
|
# Usage:
|
|
# scripts/serve-docs.sh [<extra zensical serve args>...]
|
|
#
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
cd "$REPO_ROOT"
|
|
|
|
uv run --frozen python scripts/docs/build_config.py
|
|
exec uv run --frozen zensical serve -f mkdocs.gen.yml "$@"
|