Skip to content

Commit c5c26dc

Browse files
committed
🔧 Add link check to noxfile
1 parent 16a5c06 commit c5c26dc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

noxfile.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ def docs(session):
3131
session.run("sphinx-build", *BUILD_COMMAND)
3232

3333

34+
@nox.session(name="check-links", venv_backend="conda")
35+
def check_links(session):
36+
"""Install the necessary dependencies and build the docs.
37+
This will also check for broken links during build time."""
38+
39+
install_deps(session)
40+
session.run(
41+
"sphinx-build", *BUILD_COMMAND, "-b", "linkcheck", "-w", "linkcheck.txt"
42+
)
43+
44+
3445
@nox.session(name="docs-live", venv_backend="conda")
3546
def docs_live(session):
3647
"""Install necessary dependencies, buid the docs and use livereload.

0 commit comments

Comments
 (0)