mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-21 14:05:14 +03:00
Activate virtualenv for making docs
This commit is contained in:
parent
b290eb1ef2
commit
13e3f0bab8
|
@ -33,5 +33,6 @@ then
|
|||
npm run build
|
||||
fi
|
||||
|
||||
. .venv/bin/activate
|
||||
# Generate the HTML for the documentation
|
||||
cd docs && make html
|
||||
|
|
|
@ -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"),
|
||||
],
|
||||
)
|
||||
|
|
|
@ -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' %}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user