Skip to content

Commit

Permalink
Add docs to Nox sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolowicz committed Jan 28, 2020
1 parent eb81be8 commit 484bf88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,10 @@ def xdoctest(session: Session) -> None:
session.run("poetry", "install", "--no-dev", external=True)
install_with_constraints(session, "xdoctest")
session.run("python", "-m", "xdoctest", package, *args)


@nox.session(python="3.8")
def docs(session: Session) -> None:
"""Build the documentation."""
install_with_constraints(session, "sphinx")
session.run("sphinx-build", "docs", "docs/_build")

0 comments on commit 484bf88

Please sign in to comment.