diff --git a/noxfile.py b/noxfile.py index dd1bf01..847bf1c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -9,3 +9,16 @@ def tests(session): """Run tests with pytest.""" session.install(".") session.run("pytest") + + +@nox.session +def docs(session): + """Build documentation with Sphinx.""" + session.install(".") + session.run( + "sphinx-build", + "docs/source", + "docs/build/html", + "--builder", + "html", + )