File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
import os
13
13
import warnings
14
+ from collections import ChainMap
14
15
15
16
from os import path
16
17
@@ -157,6 +158,16 @@ def check_sphinx_version(expected_version):
157
158
158
159
del ptypes , key , val , _units_and_physical_types
159
160
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
+
160
171
# -- Project information ------------------------------------------------------
161
172
162
173
# There are two options for replacing |today|: either, you set today to some
You can’t perform that action at this time.
0 commit comments