Skip to content

Commit

Permalink
Rely on intrsphinx_registry to keep intersphinx up to date. (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored Nov 8, 2024
1 parent c353ddf commit 8c8d7d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from pathlib import Path
from typing import Any

from intersphinx_registry import get_intersphinx_mapping

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down Expand Up @@ -303,11 +305,9 @@


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
"ipython": ("https://ipython.readthedocs.io/en/latest", None),
"jupyter": ("https://jupyter.readthedocs.io/en/latest", None),
}


intersphinx_mapping = get_intersphinx_mapping(packages={"ipython", "python", "jupyter"})


def setup(app):
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ docs = [
"sphinxcontrib_github_alt",
"sphinxcontrib-spelling",
"sphinx-autodoc-typehints",
"intersphinx_registry",
"trio"
]
test = [
Expand Down

0 comments on commit 8c8d7d2

Please sign in to comment.