Skip to content

Commit 6ea66c3

Browse files
committed
Ignore current release links during linkcheck
Tag-triggered CI can run linkcheck before RTD has published the same version's docs, causing self-referencing links to fail. This ignores the current release links until the next release, which should be fine.
1 parent 30e002d commit 6ea66c3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# -- Project information -----------------------------------------------------
2121

2222
from datetime import date
23+
from packaging.version import Version
2324
from nextstrain.cli import __version__ as cli_version
2425

2526
project = 'Nextstrain CLI'
@@ -116,6 +117,10 @@
116117
# linkcheck job, I guess. In any case, ENOTIME right now.
117118
# -trs, 29 May 2025
118119
'https://docs.nextstrain.org/projects/cli/en/__NEXT__/',
120+
121+
# Can't reliably check current release links that might not exist yet
122+
# (at least when running linkcheck on the tag-triggered CI run).
123+
f'https://docs.nextstrain.org/projects/cli/en/{Version(release).public}/',
119124
]),
120125
]
121126
linkcheck_anchors_ignore_for_url = [

0 commit comments

Comments
 (0)