-
Notifications
You must be signed in to change notification settings - Fork 22
/
noxfile.py
30 lines (23 loc) · 668 Bytes
/
noxfile.py
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
30
import nox
nox.options.default_venv_backend = "uv|virtualenv"
@nox.session
def build(session) -> None:
"""Build the site with Nikola."""
session.install("-r", "requirements.txt")
session.run("nikola", "build")
@nox.session
def check(session) -> None:
"""Check links and files in the generated site."""
session.install("-r", "requirements.txt")
session.run("nikola", "build")
session.run(
"nikola",
"check",
"--check-links",
"--find-sources",
)
@nox.session
def clean(session) -> None:
"""Remove output files."""
session.install("-r", "requirements.txt")
session.run("nikola", "clean")