Skip to content

Commit 24ead3d

Browse files
authored
Merge branch 'master' into more-syntax
2 parents e7a2741 + 6fac4d0 commit 24ead3d

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@
198198
tippy_skip_anchor_classes = ("headerlink", "sd-stretched-link", "sd-rounded-pill")
199199
tippy_anchor_parent_selector = "article.bd-article"
200200
tippy_rtd_urls = [
201-
"https://www.sphinx-doc.org/en/master",
202-
"https://markdown-it-py.readthedocs.io/en/latest",
201+
# TODO these are failing the build: Expecting value: line 1 column 1 (char 0)
202+
# "https://www.sphinx-doc.org/en/master",
203+
# "https://markdown-it-py.readthedocs.io/en/latest",
203204
]
204205
# TODO failing
205206
tippy_enable_wikitips = False

myst_parser/inventory.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,15 @@ def filter_sphinx_inventories(
366366
continue
367367
for target in data:
368368
if match_with_wildcard(target, targets):
369-
project, version, loc, text = data[target]
369+
data_target = data[target]
370+
if hasattr(data_target, "project_name"):
371+
# Sphinx >= 8.2
372+
project = data_target.project_name
373+
version = data_target.project_version
374+
loc = data_target.uri
375+
text = data_target.display_name
376+
else:
377+
project, version, loc, text = data_target
370378
yield (
371379
InvMatch(
372380
inv=inv_name,

0 commit comments

Comments
 (0)