mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-18 12:02:26 +03:00
Activate virtualenv for making docs
This commit is contained in:
parent
b290eb1ef2
commit
13e3f0bab8
|
@ -33,5 +33,6 @@ then
|
||||||
npm run build
|
npm run build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
. .venv/bin/activate
|
||||||
# Generate the HTML for the documentation
|
# Generate the HTML for the documentation
|
||||||
cd docs && make html
|
cd docs && make html
|
||||||
|
|
|
@ -325,7 +325,7 @@ def test_gitlab_invokes_precommit_and_pytest(cookies, context, use_docker, expec
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
["use_docker", "expected_test_script"],
|
["use_docker", "expected_test_script"],
|
||||||
[
|
[
|
||||||
("n", "pytest"),
|
("n", "uv run pytest"),
|
||||||
("y", "docker compose -f docker-compose.local.yml run django pytest"),
|
("y", "docker compose -f docker-compose.local.yml run django pytest"),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# You can set these variables from the command line, and also
|
# You can set these variables from the command line, and also
|
||||||
# from the environment for the first two.
|
# from the environment for the first two.
|
||||||
SPHINXOPTS ?=
|
SPHINXOPTS ?=
|
||||||
SPHINXBUILD ?= uv run sphinx-build
|
SPHINXBUILD ?= sphinx-build
|
||||||
SOURCEDIR = .
|
SOURCEDIR = .
|
||||||
BUILDDIR = ./_build
|
BUILDDIR = ./_build
|
||||||
{%- if cookiecutter.use_docker == 'y' %}
|
{%- if cookiecutter.use_docker == 'y' %}
|
||||||
|
|
|
@ -6,7 +6,7 @@ REM Command file for Sphinx documentation
|
||||||
|
|
||||||
|
|
||||||
if "%SPHINXBUILD%" == "" (
|
if "%SPHINXBUILD%" == "" (
|
||||||
set SPHINXBUILD=uv run sphinx-build -c .
|
set SPHINXBUILD=sphinx-build -c .
|
||||||
)
|
)
|
||||||
set SOURCEDIR=_source
|
set SOURCEDIR=_source
|
||||||
set BUILDDIR=_build
|
set BUILDDIR=_build
|
||||||
|
|
Loading…
Reference in New Issue
Block a user