Activate virtualenv for making docs

This commit is contained in:
Jelmer Draaijer 2024-10-06 12:28:54 +02:00
parent b290eb1ef2
commit 13e3f0bab8
4 changed files with 4 additions and 3 deletions

View File

@ -33,5 +33,6 @@ then
npm run build
fi
. .venv/bin/activate
# Generate the HTML for the documentation
cd docs && make html

View File

@ -325,7 +325,7 @@ def test_gitlab_invokes_precommit_and_pytest(cookies, context, use_docker, expec
@pytest.mark.parametrize(
["use_docker", "expected_test_script"],
[
("n", "pytest"),
("n", "uv run pytest"),
("y", "docker compose -f docker-compose.local.yml run django pytest"),
],
)

View File

@ -4,7 +4,7 @@
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= uv run sphinx-build
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = ./_build
{%- if cookiecutter.use_docker == 'y' %}

View File

@ -6,7 +6,7 @@ REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=uv run sphinx-build -c .
set SPHINXBUILD=sphinx-build -c .
)
set SOURCEDIR=_source
set BUILDDIR=_build