Skip to content

Commit

Permalink
Merge pull request #194 from asmeurer/intersphinx-registry
Browse files Browse the repository at this point in the history
Use intersphinx-registry
  • Loading branch information
asmeurer authored Oct 9, 2024
2 parents a61d224 + 4cf2567 commit 145c13c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
plot_html_show_formats = False
plot_formats = ['svg']

intersphinx_mapping = {
'numpy': ('https://numpy.org/doc/stable/', None),
'pandas': ('https://pandas.pydata.org/docs/', None),
}
from intersphinx_registry import get_intersphinx_mapping
intersphinx_mapping = get_intersphinx_mapping(
packages={"numpy", "pandas"},
)
# Require :external: to reference intersphinx. Prevents accidentally linking
# to something from numpy.
intersphinx_disabled_reftypes = ['*']
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Cython
furo
intersphinx-registry
linkify-it-py
matplotlib @ git+https://github.com/asmeurer/matplotlib.git@output-base-name
myst-parser
Expand Down

0 comments on commit 145c13c

Please sign in to comment.