INNER CODE UNIT · Python
docs_build
redis/fastapi-redis-sdk · noxfile.py:130
def docs_build(session: nox.Session) -> None:
"""Build the documentation site in strict mode (CI parity)."""
uv_sync(session, "--only-group", "docs")
session.run("mkdocs", "build", "--strict", *session.posargs)
@nox.session(python=PYTHON_DEFAULT, default=False)
def docs_serve(session: nox.Session) -> None:
"""Serve the documentation site locally with live reload."""
uv_sync(session, "--only-group", "docs")
session.run("mkdocs", "serve", *session.posargs)
# ---------------------------------------------------------------------------
# Auto-fix helpers (not run by default or CI)
# ---------------------------------------------------------------------------
@nox.session(python=PYTHON_DEFAULT, default=False)
def fix(session: nox.Session) -> None: