Skip to content

Commit 9ced9c0

Browse files
authored
Update uv build-customization example
Avoid having to tinker with build-steps for uv setup by telling it to set up the environment where readthedocs expects it and then leaving activation up to readthedocs.
1 parent d026619 commit 9ced9c0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/user/build-customization.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,10 @@ Take a look at the following example:
469469
- asdf plugin add uv
470470
- asdf install uv latest
471471
- asdf global uv latest
472-
- uv venv
472+
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --all-extras --group docs
473473
install:
474-
- uv pip install -r requirements.txt
475-
build:
476-
html:
477-
- uv run sphinx-build -T -b html docs $READTHEDOCS_OUTPUT/html
474+
- "true" # or, if necessary: uv pip install -r requirements.txt
478475
479-
MkDocs projects could use ``NO_COLOR=1 uv run mkdocs build --strict --site-dir $READTHEDOCS_OUTPUT/html`` instead.
480476
481477
Update Conda version
482478
~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)