From ac263f07b149b3d2c89539d6bff302a3e78df610 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 4 Feb 2021 09:10:43 +0000 Subject: Add a docs-live nox session --- noxfile.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/noxfile.py b/noxfile.py index 165a430d1..a530b65ba 100644 --- a/noxfile.py +++ b/noxfile.py @@ -149,6 +149,22 @@ def docs(session): session.run(*get_sphinx_build_command("man")) +@nox.session(name="docs-live") +def docs_live(session): + # type: (nox.Session) -> None + session.install("-e", ".") + session.install("-r", REQUIREMENTS["docs"], "sphinx-autobuild") + + session.run( + "sphinx-autobuild", + "-d=docs/build/doctrees/livehtml", + "-b=dirhtml", + "docs/html", + "docs/build/livehtml", + *session.posargs, + ) + + @nox.session def lint(session): # type: (nox.Session) -> None -- cgit v1.2.1