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 4, 2021
1 parent 8d055b5 commit a4557fe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a4557fe

Please sign in to comment.