FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-sdk/scripts/serve-docs.sh at main · modelcontextprotocol/python-sdk · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
modelcontextprotocol
/
python-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
3.8k
Star
24.1k
Code
Issues
203
Pull requests
192
Actions
Projects
Security and quality
6
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-sdk
/
scripts
/
serve-docs.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
22 lines (20 loc) · 838 Bytes
Breadcrumbs
python-sdk
/
scripts
/
serve-docs.sh
Copy path
File metadata and controls
executable file
·
22 lines (20 loc) · 838 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!
/usr/bin/env bash
#
#
Serve the v2 documentation locally with live reload (the English site only).
#
#
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. The
#
translated sites are never served here, so the language switcher's other
#
entries 404 locally; preview them with `scripts/docs/build.sh` and any static
#
file server over site/.
#
#
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
"
$@
"
Back
|
FazBrowse Home
|
New Git URL