Skip to content

Commit f71ae91

Browse files
committed
Fix link checker by inheriting settings from parent theme
Building `cratedb-guide` still failed the link checker on www.gnu.org being protected by a WAF configuration these days, because relevant link checker ignores have not been inherited from the parent theme.
1 parent 115e2cd commit f71ae91

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/conf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
from crate.theme.rtd.conf.cratedb_guide import *
22

3-
# Fallback guards, when parent theme does not introduce them.
3+
# Fallback guards, when parent theme does not introduce relevant variables.
44
if "html_theme_options" not in globals():
55
html_theme_options = {}
66
if "intersphinx_mapping" not in globals():
77
intersphinx_mapping = {}
8+
if "linkcheck_ignore" not in globals():
9+
linkcheck_ignore = []
10+
if "linkcheck_anchors_ignore_for_url" not in globals():
11+
linkcheck_anchors_ignore_for_url = []
812

913
# Re-configure sitemap generation URLs.
1014
# This is a project without versioning.
@@ -18,7 +22,7 @@
1822
})
1923

2024
# Configure link checker.
21-
linkcheck_ignore = [
25+
linkcheck_ignore += [
2226
# Generic ignores.
2327
r"http://localhost:\d+/",
2428
# Forbidden by WordPress.

0 commit comments

Comments
 (0)