Skip to content

Commit 843613b

Browse files
committed
[conf] Use sphinx_tippy
1 parent cd8d7f7 commit 843613b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

_static/tippy-custom.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* https://sphinx-tippy.readthedocs.io/en/latest/ */
2+
3+
.tippy-box {
4+
background-color:var(--pst-color-surface);
5+
color:var(--pst-color-text-base);
6+
border: 1px solid var(--pst-color-border);
7+
}

conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -544,3 +544,9 @@ def url(self) -> str:
544544
if D is Deployment.Local:
545545
# Speed up local incremental HTML build (may cause document inconsistencies).
546546
extensions.append('sphinxnotes.fasthtml')
547+
548+
extensions.append('sphinx_tippy')
549+
tippy_rtd_urls = [
550+
'https://www.sphinx-doc.org/en/master/',
551+
]
552+
html_css_files.append('tippy-custom.css')

0 commit comments

Comments
 (0)