Skip to content

Commit 39fd3c1

Browse files
committed
fix: Correct broken links in documentation and refactor lazy loading
Fixed broken links in the documentation by correcting the custom role. Refactored the lazy loading mechanism to be more automated and maintainable. Added documentation for the new lazy loading system.
1 parent b1a2155 commit 39fd3c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/sphinxext/custom_roles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def _node_list(rawtext, text, inliner):
2222
refuri = "https://matplotlib.org/stable/tutorials/introductory/customizing.html"
2323
refuri = f"{refuri}?highlight={text}#the-matplotlibrc-file"
2424
else:
25-
path = "../" * relsource[1].count("/") + "en/stable"
26-
refuri = f"{path}/configuration.html?highlight={text}#table-of-settings"
25+
path = "../" * relsource[1].count("/")
26+
refuri = f"{path}configuration.html?highlight={text}#table-of-settings"
2727
node = nodes.Text(f"rc[{text!r}]" if "." in text else f"rc.{text}")
2828
ref = nodes.reference(rawtext, node, refuri=refuri)
2929
return [nodes.literal("", "", ref)]

0 commit comments

Comments
 (0)