From a4557feda4688cd2f53cf65bd3388d67a2a2d00c Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 4 Feb 2021 09:10:43 +0000 Subject: [PATCH] Add a docs-live nox session --- noxfile.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/noxfile.py b/noxfile.py index de4daf8a79c..c68386766fe 100644 --- a/noxfile.py +++ b/noxfile.py @@ -139,6 +139,20 @@ def get_sphinx_build_command(kind): session.run(*get_sphinx_build_command("man")) +@nox.session(name="docs-live") +def docs_live(session): + session.install("-e", ".") + session.install("-r", REQUIREMENTS["docs"], "sphinx-autobuild") + + session.run( + "sphinx-autobuild", + "-d=docs/build/doctrees/html", + "-b=dirhtml", + "docs/html", + "docs/build/html", + ) + + @nox.session def lint(session): session.install("pre-commit")