Skip to content

Commit a85b106

Browse files
committed
docs: add sphinx linkcheck build options
1 parent 29bfbab commit a85b106

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/source/conf.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,22 @@
6464
}
6565

6666

67+
# -- Options for linkcheck builder -------------------------------------------
68+
# ref: https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder
69+
#
70+
linkcheck_ignore = [
71+
r"(.*)github\.com(.*)#", # javascript based anchors
72+
r"(.*)/#%21(.*)/(.*)", # /#!forum/jupyter - encoded anchor edge case
73+
r"https://github.com/[^/]*$", # too many github usernames / searches in changelog
74+
"https://github.com/jupyterhub/binderhub/pull/", # too many PRs in changelog
75+
"https://github.com/jupyterhub/binderhub/compare/", # too many comparisons in changelog
76+
]
77+
linkcheck_anchors_ignore = [
78+
"/#!",
79+
"/#%21",
80+
]
81+
82+
6783
# -- Options for the rediraffe extension -------------------------------------
6884
# ref: https://github.com/wpilibsuite/sphinxext-rediraffe#readme
6985
#

0 commit comments

Comments
 (0)