Skip to content

Commit 3f1d6dd

Browse files
authored
build(docs): use uv for pages deploy (#2266)
1 parent 5c49277 commit 3f1d6dd

5 files changed

Lines changed: 77 additions & 13 deletions

File tree

build_mkdocs.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
pip install -r requirements.txt
2-
pip install -r requirements-doc.txt
3-
mkdocs build
1+
#!/usr/bin/env sh
2+
set -eu
3+
4+
if ! command -v uv >/dev/null 2>&1; then
5+
pipx install uv
6+
fi
7+
8+
uv sync --python 3.13 --extra docs
9+
uv run mkdocs build

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ plugins:
415415
'hub/single_classification.md': 'examples/single_classification.md'
416416
'hub/tables_from_vision.md': 'examples/tables_from_vision.md'
417417
'hub/youtube_clips.md': 'examples/youtube_clips.md'
418-
- social
418+
- social:
419+
enabled: !ENV [ENABLE_MKDOCS_SOCIAL, false]
419420
- search:
420421
separator: '[\s\u200b\-_,:!=\[\]()"`/]+|\.(?!\b)(?=[A-Z][a-z])'
421422
- minify:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ docs = [
6868
"mkdocs-rss-plugin<2.0.0,>=1.12.0",
6969
"mkdocs-minify-plugin<1.0.0,>=0.8.0",
7070
"mkdocs-redirects<2.0.0,>=1.2.1",
71+
"mkdocs-llmstxt>=0.5.0,<0.6.0; python_version >= '3.10'",
7172
"mkdocs-material-extensions>=1.3.1",
7273
"mkdocs-material>=9.6.14",
7374
]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pydantic==2.12.5
7171
# via
7272
# instructor (pyproject.toml)
7373
# openai
74-
pydantic-core==2.45.0
74+
pydantic-core==2.41.5
7575
# via
7676
# instructor (pyproject.toml)
7777
# pydantic

uv.lock

Lines changed: 64 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)