@@ -165,7 +165,7 @@ def xdoctest(session: Session) -> None:
|
|||||||
session.run("python", "-m", "xdoctest", package, *args)
|
session.run("python", "-m", "xdoctest", package, *args)
|
||||||
|
|
||||||
|
|
||||||
@session(name="docs-build", python="3.8")
|
@session(name="docs-build", python="3.9")
|
||||||
def docs_build(session: Session) -> None:
|
def docs_build(session: Session) -> None:
|
||||||
"""Build the documentation."""
|
"""Build the documentation."""
|
||||||
args = session.posargs or ["docs", "docs/_build"]
|
args = session.posargs or ["docs", "docs/_build"]
|
||||||
@@ -179,7 +179,7 @@ def docs_build(session: Session) -> None:
|
|||||||
session.run("sphinx-build", *args)
|
session.run("sphinx-build", *args)
|
||||||
|
|
||||||
|
|
||||||
@session(python="3.8")
|
@session(python="3.9")
|
||||||
def docs(session: Session) -> None:
|
def docs(session: Session) -> None:
|
||||||
"""Build and serve the documentation with live reloading on file changes."""
|
"""Build and serve the documentation with live reloading on file changes."""
|
||||||
args = session.posargs or ["--open-browser", "docs", "docs/_build"]
|
args = session.posargs or ["--open-browser", "docs", "docs/_build"]
|
||||||
|
|||||||
Reference in New Issue
Block a user