[v1.x] Move the v1.x docs to /v1/ and mark v1.x as the maintenance line (#3177)
Some checks failed
Main branch checks / checks (push) Has been cancelled
Some checks failed
Main branch checks / checks (push) Has been cancelled
This commit is contained in:
parent
c0c5a9d642
commit
98b7159cb8
1 changed files with 58 additions and 153 deletions
19
scripts/docs/build.sh
Executable file
19
scripts/docs/build.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Build the v1.x documentation into ./site.
|
||||
#
|
||||
# This is the single build recipe for this branch's docs. The combined site
|
||||
# is assembled and deployed from main, which fetches this branch and runs this
|
||||
# script to build it under /v1/ (main's scripts/build-docs.sh picks
|
||||
# scripts/docs/build.sh from each branch it builds). The `docs` CI job on
|
||||
# this branch runs the same script, so what CI checks is what gets published.
|
||||
#
|
||||
# Usage:
|
||||
# scripts/docs/build.sh
|
||||
#
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
|
||||
uv sync --frozen --group docs
|
||||
NO_MKDOCS_2_WARNING=1 uv run --frozen --no-sync mkdocs build --site-dir site
|
||||
Loading…
Reference in a new issue