-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathnoxfile.py
More file actions
29 lines (22 loc) · 796 Bytes
/
noxfile.py
File metadata and controls
29 lines (22 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""Nox sessions for Jupyter Book blog."""
import nox
# Use uv for faster installs
nox.options.default_venv_backend = "uv|virtualenv"
@nox.session(name="docs")
def docs(session):
"""Build the documentation as static HTML."""
session.install("-r", "requirements.txt")
session.chdir("docs")
session.run("myst", "build", "--html", "--execute")
@nox.session(name="docs-live")
def docs_live(session):
"""Start a live development server for the documentation."""
session.install("-r", "requirements.txt")
session.chdir("docs")
session.run("myst", "start", "--execute")
@nox.session
def clean(session):
"""Clean the documentation build artifacts."""
session.install("-r", "requirements.txt")
session.chdir("docs")
session.run("myst", "clean", "-y")