Skip to content

Commit e004da0

Browse files
committed
Add sphinx-tippy
Signed-off-by: Cristian Le <[email protected]>
1 parent 76cbc06 commit e004da0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"sphinx_autodoc_typehints",
6868
"conftabs",
6969
"sphinx-jsonschema",
70+
"sphinx_tippy",
7071
]
7172

7273
# Add any paths that contain templates here, relative to this directory.
@@ -94,6 +95,13 @@
9495
"setuptools": ("https://setuptools.pypa.io/en/latest", None),
9596
"hatchling": ("https://hatch.pypa.io/latest", None),
9697
}
98+
tippy_rtd_urls = [
99+
val[0]
100+
for key, val in intersphinx_mapping.items()
101+
# Only works with RTD hosted intersphinx
102+
# For some reason python intersphinx do not work reliably
103+
if key not in ("hatchling", "python")
104+
]
97105

98106
nitpick_ignore = [
99107
("py:class", "setuptools.dist.Distribution"),

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ docs = [
9797
"sphinx-copybutton",
9898
"sphinx-inline-tabs",
9999
"sphinx-jsonschema",
100+
"sphinx-tippy",
100101
]
101102
wheel-free-setuptools = [
102103
'setuptools>=70.1; python_version>="3.8"',

0 commit comments

Comments
 (0)