Skip to content

Commit

Permalink
Add a docs-live nox session
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Feb 21, 2021
1 parent af788cc commit 2f9593f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,21 @@ 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/livehtml",
"-b=dirhtml",
"docs/html",
"docs/build/livehtml",
*session.posargs,
)


@nox.session
def lint(session):
# type: (nox.Session) -> None
Expand Down

0 comments on commit 2f9593f

Please sign in to comment.