From 484bf88afeb356551e5fe549949e73d6ba470468 Mon Sep 17 00:00:00 2001 From: Claudio Jolowicz Date: Sat, 16 Nov 2019 00:16:22 +0100 Subject: [PATCH] Add docs to Nox sessions --- noxfile.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/noxfile.py b/noxfile.py index 0fc4b914..3125d0c2 100644 --- a/noxfile.py +++ b/noxfile.py @@ -125,3 +125,10 @@ def xdoctest(session: Session) -> None: session.run("poetry", "install", "--no-dev", external=True) install_with_constraints(session, "xdoctest") session.run("python", "-m", "xdoctest", package, *args) + + +@nox.session(python="3.8") +def docs(session: Session) -> None: + """Build the documentation.""" + install_with_constraints(session, "sphinx") + session.run("sphinx-build", "docs", "docs/_build")