@@ -58,11 +58,14 @@ envfile_dev: envfile
5858 @echo " -> Update the .env file for development"
5959 @echo DATABASE_PASSWORD=\" dejacode\" >> ${ENV_FILE}
6060
61+ doc_dependencies : virtualenv
62+ @echo " -> Configure and install decumentation dependencies"
63+ @${ACTIVATE} pip install --editable .[docs]
64+
6165doc8 :
62- @echo " -> Run doc8 validation"
63- @${ACTIVATE} doc8 --max-line-length 100 --ignore-path docs/_build/ \
64- --ignore-path docs/installation_and_sysadmin/ \
65- --quiet docs/
66+ @echo " -> Run documentation .rst validation"
67+ @$(MAKE ) doc_dependencies > /dev/null 2>&1
68+ @${ACTIVATE} doc8 --max-line-length 100 --ignore-path docs/_build/ --quiet docs/
6669
6770valid :
6871 @echo " -> Run Ruff format"
@@ -146,9 +149,9 @@ test:
146149 ${MANAGE} test --noinput --parallel auto
147150
148151docs :
149- @echo " -> Builds the installation_and_sysadmin docs "
152+ @echo " -> Builds the documentation "
150153 rm -rf ${DOCS_LOCATION} /_build/
151- @${ACTIVATE} pip install -r docs/requirements.txt
154+ @$( MAKE ) doc_dependencies > /dev/null 2>&1
152155 @${ACTIVATE} sphinx-build -b singlehtml ${DOCS_LOCATION} ${DOCS_LOCATION} /_build/singlehtml/
153156 @${ACTIVATE} sphinx-build -b html ${DOCS_LOCATION} ${DOCS_LOCATION} /_build/html/
154157
172175createsuperuser :
173176 ${DOCKER_EXEC} web ./manage.py createsuperuser
174177
175- .PHONY : virtualenv conf dev envfile envfile_dev check doc8 valid check-deploy clean initdb postgresdb postgresdb_clean migrate upgrade run test docs build psql bash shell log createsuperuser
178+ .PHONY : virtualenv conf dev envfile envfile_dev doc_dependencies check doc8 valid check-deploy clean initdb postgresdb postgresdb_clean migrate upgrade run test docs build psql bash shell log createsuperuser
0 commit comments