Skip to content

Commit b6e4519

Browse files
authored
Fix intersphinx linking (#449)
1 parent db06f0f commit b6e4519

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

docs/conf.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
logger.error(msg)
7272
sys.exit(1)
7373

74-
74+
from sphinx_astropy.conf.v1 import * # noqa: E402
7575
from sphinx_astropy.conf.v1 import ( # noqa: E402
7676
exclude_patterns,
7777
extensions,
@@ -100,19 +100,22 @@
100100

101101
# The intersphinx_mapping in sphinx_astropy.sphinx refers to astropy for
102102
# the benefit of other packages who want to refer to objects in the
103-
# astropy core. However, we don't want to cyclically reference astropy in its
104-
# own build so we remove it here.
105-
del intersphinx_mapping["astropy"]
103+
# astropy core.
106104

107105
# add any custom intersphinx for astropy
108106
intersphinx_mapping.update(
109107
{
110-
"sbpy-dev": ("https://docs.astropy.org/en/latest/", None),
108+
"astropy": ("https://docs.astropy.org/en/stable/", None),
111109
"astroquery": ("https://astroquery.readthedocs.io/en/stable/", None),
110+
"matplotlib": ("https://matplotlib.org/stable/", None),
111+
"numpy": ("https://numpy.org/doc/stable/", None),
112+
"python": ("https://docs.python.org/3/", None),
113+
"sbpy-dev": ("https://docs.astropy.org/en/latest/", None),
114+
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
112115
"synphot": ("https://synphot.readthedocs.io/en/stable/", None),
113-
"astropy": ("https://docs.astropy.org/en/stable/", None),
114116
}
115117
)
118+
intersphinx_resolve_self = "sbpy"
116119

117120
# List of patterns, relative to source directory, that match files and
118121
# directories to ignore when looking for source files.

0 commit comments

Comments
 (0)