From 173d0448bbad1b5953978ffad300890d366eb57c Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Tue, 8 Oct 2024 08:22:28 -0300 Subject: [PATCH] Simplify instructions for installing dependencies with uv (#11655) * Simplify instructions for installing dependencies with uv * Run uv sync with --frozen --- docs/user/build-customization.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/user/build-customization.rst b/docs/user/build-customization.rst index 930c996c966..451ace04945 100644 --- a/docs/user/build-customization.rst +++ b/docs/user/build-customization.rst @@ -377,11 +377,10 @@ Take a look at the following example: - asdf plugin add uv - asdf install uv latest - asdf global uv latest - - uv venv - - uv pip install .[docs] - - .venv/bin/python -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html + - uv sync --extra docs --frozen + - uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html -You can use ``-r docs/requirements.txt``, etc. instead as needed. MkDocs projects could use ``NO_COLOR=1 .venv/bin/mkdocs build --strict --site-dir $READTHEDOCS_OUTPUT/html`` instead. +MkDocs projects could use ``NO_COLOR=1 uv run mkdocs build --strict --site-dir $READTHEDOCS_OUTPUT/html`` instead. Update Conda version ^^^^^^^^^^^^^^^^^^^^