Skip to content

Commit

Permalink
docs: configure sphinx-tippy (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Jun 28, 2024
1 parent f94b842 commit 6efde54
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 19 additions & 0 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,25 @@ def autolog(message: str, section: str | None = None, color: str | None = None)
autolog(f"{package_dir=}", section="General")


# sphinx-tippy options -------------------------------------------------------
# See https://github.com/sphinx-extensions2/sphinx-tippy

# optional dependency (unavailable on conda-forge)
with contextlib.suppress(ModuleNotFoundError):
import sphinx_tippy # noqa: F401

extensions.append("sphinx_tippy")

tippy_enable_wikitips = False
tippy_enable_doitips = False
tippy_rtd_urls = [
"https://www.sphinx-doc.org/en/master/",
]
tippy_skip_anchor_classes = ("headerlink", "sd-stretched-link")
tippy_anchor_parent_selector = "article.bd-article"
tippy_props = {"maxWidth": 700, "placement": "top-start", "theme": "light"}


# sphinx-tags options --------------------------------------------------------
# See https://sphinx-tags.readthedocs.io/en/latest/index.html

Expand Down
1 change: 0 additions & 1 deletion requirements/geovista.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ dependencies:
- sphinx-design
- sphinx-gallery >=0.16
- sphinx-tags
- sphinx-tippy
- sphinx-togglebutton
- ipywidgets
- jupyter-server-proxy
Expand Down

0 comments on commit 6efde54

Please sign in to comment.