Skip to content

Commit 65c5df3

Browse files
MAINT: Add linkcheck Pixi task (#11160)
1 parent b5d7058 commit 65c5df3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@
269269
html_static_path = ["_static"]
270270
html_css_files = ["style.css"]
271271

272+
linkcheck_exclude_documents = [
273+
r'whats-new.*', # Allow broken links in old release notes
274+
]
275+
272276

273277
# configuration for sphinxext.opengraph
274278
ogp_site_url = "https://docs.xarray.dev/en/latest/"

pixi.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ cfgrib = "*"
243243
[feature.doc.tasks]
244244
doc = { cmd = "make html", cwd = "doc" }
245245
doc-clean = { cmd = "make clean && make html", cwd = "doc" }
246+
linkcheck = { cmd = "make linkcheck", cwd = "doc", description = "Check URLs in documentation." }
246247

247248

248249
[feature.typing.dependencies]

0 commit comments

Comments
 (0)