Skip to content

Commit 164180b

Browse files
committed
Switch docs to uv
1 parent 9b78209 commit 164180b

9 files changed

Lines changed: 701 additions & 228 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ updates:
2424
patterns:
2525
- "@babylonjs*"
2626

27-
- package-ecosystem: "pip"
27+
- package-ecosystem: "uv"
2828
directory: "/docs"
2929
schedule:
3030
interval: "daily"

.readthedocs.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version: 2
77

88
# Set the version of Python and other tools you might need
99
build:
10-
os: ubuntu-22.04
10+
os: ubuntu-24.04
1111
tools:
1212
python: "3"
1313
nodejs: "20"
@@ -32,4 +32,6 @@ formats: all
3232
# Optionally declare the Python requirements required to build your docs
3333
python:
3434
install:
35-
- requirements: docs/requirements.txt
35+
- method: uv
36+
command: sync
37+
path: docs

docs/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.14

docs/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Set-Location ../visualiser
22
npm update --save
33
npm run build
44
Set-Location ../docs
5-
pip install --user -r requirements.txt --upgrade --upgrade-strategy eager
6-
python -m sphinx . _build -E -a
5+
uv lock --upgrade
6+
uv run python -m sphinx . _build -E -a

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
# General information about the project.
4747
project = u'BoxPacker'
48-
copyright = u'2012-2025, Doug Wright'
48+
copyright = u'2012-2026, Doug Wright'
4949
author = u'Doug Wright'
5050

5151
# The version info for the project you're documenting, acts as replacement for
@@ -67,7 +67,7 @@
6767
# List of patterns, relative to source directory, that match files and
6868
# directories to ignore when looking for source files.
6969
# This patterns also effect to html_static_path and html_extra_path
70-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
70+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.venv']
7171

7272
# The name of the Pygments (syntax highlighting) style to use.
7373
pygments_style = 'friendly'

docs/pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[project]
2+
name = "docs"
3+
version = "1.0.0"
4+
requires-python = ">=3.14"
5+
dependencies = [
6+
"myst-parser~=4.0",
7+
"sphinx-rtd-theme~=3.0",
8+
]

docs/uv.lock

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

0 commit comments

Comments
 (0)