Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Updated to use latest compatible versions as of December 2025.
sphinx==9.0.4
sphinx==8.2.3
pydata-sphinx-theme
readthedocs-sphinx-search
sphinx-copybutton
sphinx-hoverxref
sphinx-remove-toctrees
## for pygment coloring of code snippets using ipython syntax
ipython
Expand Down
14 changes: 14 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ div.admonition-video > p.admonition-title::after {
content: "\f008";
}

/*terms with tooltips*/

a.hxr-hoverxref {
text-decoration: underline;
text-decoration-style: dotted;
text-decoration-thickness: 2px;
text-decoration-color: var(--color-link-underline);
border-bottom: none;
}

a.hxr-hoverxref:hover {
text-decoration-color: var(--color-link-underline--hover);
}

/* second column of API autosummaries should break more and be a bit smaller */
table.autosummary td:nth-child(2) {
FONT-WEIGHT: 300;
Expand Down
8 changes: 7 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'glossary_warnings',
'glossary_warnings', 'hoverxref.extension',
'sphinx_copybutton', 'sphinx.ext.autodoc',
'sphinx.ext.autosummary', 'sphinx.ext.mathjax',
'sphinx_remove_toctrees',
Expand All @@ -59,6 +59,12 @@
"apidocs/_autosummary/pyopenmssubmodules/pyopenms.plotting.*.rst"]
autodoc_docstring_signature = True

# configure tooltips
hoverxref_roles = ['term', ]
hoverxref_role_types = {'term': 'tooltip', }
# specific for pyopenms documentation
hoverxref_tooltip_lazy = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ holoviews
pyviz_comms
jupyter-server-proxy
massql
sphinx-hoverxref


pyopenms