Skip to content

Commit f0805eb

Browse files
committed
combined alias
Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
1 parent c1cb5b7 commit f0805eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sphinx_astropy/conf/v1.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import os
1313
import warnings
14+
from collections import ChainMap
1415

1516
from os import path
1617

@@ -157,6 +158,16 @@ def check_sphinx_version(expected_version):
157158

158159
del ptypes, key, val, _units_and_physical_types
159160

161+
162+
# Convenient collection of all of astropy's options for numpydoc xref.
163+
# In packages all the astropy additions can be turned on with
164+
# ``numpydoc_xref_aliases.update(numpydoc_xref_astropy_aliases)``
165+
# (if astropy is in the intersphinx mapping).
166+
numpydoc_xref_astropy_aliases = ChainMap( # important at the top
167+
numpydoc_xref_aliases_astropy_glossary,
168+
numpydoc_xref_aliases_astropy_physical_type
169+
)
170+
160171
# -- Project information ------------------------------------------------------
161172

162173
# There are two options for replacing |today|: either, you set today to some

0 commit comments

Comments
 (0)