Skip to content

Commit 48f14dc

Browse files
committed
[conf] Use sphinx_tippy
1 parent cd8d7f7 commit 48f14dc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-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

+7
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ def url(self) -> str:
512512
'literal_enwiki': ['literal', 'enwiki'],
513513
'literal_strike': ['literal', 'strike'],
514514
}
515+
<<<<<<< HEAD
515516

516517
extensions.append('sphinxcontrib.globalsubs')
517518
global_substitutions = {
@@ -544,3 +545,9 @@ def url(self) -> str:
544545
if D is Deployment.Local:
545546
# Speed up local incremental HTML build (may cause document inconsistencies).
546547
extensions.append('sphinxnotes.fasthtml')
548+
549+
extensions.append('sphinx_tippy')
550+
tippy_rtd_urls = [
551+
"https://www.sphinx-doc.org/en/master/",
552+
]
553+
html_css_files.append('tippy-custom.css')

0 commit comments

Comments
 (0)