Skip to content

Commit e9c8aab

Browse files
committed
docs: fix options page
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 711a3d0 commit e9c8aab

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.readthedocs.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ build:
1111
- asdf install uv latest
1212
- asdf global uv latest
1313
- uv venv
14-
- uv pip install .[docs]
15-
- .venv/bin/python -m mkdocs build --site-dir $READTHEDOCS_OUTPUT/html
14+
- uv pip install -e.[docs]
15+
- . .venv/bin/activate
16+
- mkdocs build --strict --verbose --site-dir $READTHEDOCS_OUTPUT/html

mkdocs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ plugins:
4949
module_name: docs/main
5050
j2_variable_start_string: «
5151
j2_variable_end_string: »
52+
on_error_fail: true
53+
on_undefined: strict

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def docs(session: nox.Session) -> None:
133133
Build the docs. Will serve unless --non-interactive
134134
"""
135135
session.install("-e.[docs]")
136-
session.run("mkdocs", "serve" if session.interactive else "build")
136+
session.run("mkdocs", "serve" if session.interactive else "build", "--strict", *session.posargs)
137137

138138

139139
@nox.session

0 commit comments

Comments
 (0)