Skip to content

Commit

Permalink
Add colorbrewer2.org to the "check the link, ignore the anchor" list [#…
Browse files Browse the repository at this point in the history
  • Loading branch information
genehack committed Aug 6, 2024
1 parent 2804377 commit 931e3e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,13 @@
r'https://nextstrain.org/ncov/gisaid/21L/global/6m/2024-01-10',
]
linkcheck_anchors_ignore_for_url = [
# colorbrewer uses pseudo-anchors, ala Github. Converting the `#`
# to `?` loads the same page, but it also appends the query
# string as a pseudo-anchor, so the URL ends up looking very ugly
# and potentially misleading. Let's just ignore the anchor...
r'https://colorbrewer2.org',
# Github uses anchor-looking links for highlighting lines but
# handles the actual resolution with Javascript, so skip anchor
# checks for Github URLs:
r'https?://github.com',
r'https://github.com',
]

0 comments on commit 931e3e3

Please sign in to comment.