Skip to content

Commit

Permalink
Add Nox session for building documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
namurphy committed Jul 3, 2024
1 parent a9e34e0 commit 2d573c5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,16 @@ def tests(session):
"""Run tests with pytest."""
session.install(".")
session.run("pytest")


@nox.session
def docs(session):
"""Build documentation with Sphinx."""
session.install(".")
session.run(
"sphinx-build",
"docs/source",
"docs/build/html",
"--builder",
"html",
)

0 comments on commit 2d573c5

Please sign in to comment.