diff --git a/.readthedocs.yml b/.readthedocs.yml index 23af5dd29..6f1f070a1 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -11,5 +11,5 @@ build: - asdf install uv latest - asdf global uv latest - uv venv - - uv pip install .[docs] - - .venv/bin/python -m mkdocs build --site-dir $READTHEDOCS_OUTPUT/html + - uv pip install -e.[docs] + - . .venv/bin/activate && mkdocs build --strict --verbose --site-dir $READTHEDOCS_OUTPUT/html diff --git a/mkdocs.yml b/mkdocs.yml index 510db9498..6749726dc 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -49,3 +49,5 @@ plugins: module_name: docs/main j2_variable_start_string: « j2_variable_end_string: » + on_error_fail: true + on_undefined: strict diff --git a/noxfile.py b/noxfile.py index 8529e6002..b54dcc0bd 100644 --- a/noxfile.py +++ b/noxfile.py @@ -133,7 +133,7 @@ def docs(session: nox.Session) -> None: Build the docs. Will serve unless --non-interactive """ session.install("-e.[docs]") - session.run("mkdocs", "serve" if session.interactive else "build") + session.run("mkdocs", "serve" if session.interactive else "build", "--strict", *session.posargs) @nox.session