Skip to content

Commit c25a9fa

Browse files
committed
🎨 Set intersphinx and napoleon options
1 parent ef862aa commit c25a9fa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/_sources/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
from github.GithubException import RateLimitExceededException, \
2626
UnknownObjectException
2727
import m2r
28+
from nipype import __version__ as _nipype_version
2829
import semver
29-
from sphinx.ext.autodoc import FunctionDocumenter
3030
from pybtex.plugin import register_plugin
3131

3232
sys.path.append(os.path.dirname(__file__))
@@ -171,6 +171,12 @@ def yaml_to_rst(path):
171171
bib.endswith('.bib')]
172172
bibtex_default_style = 'cpac_docs_style'
173173

174+
intersphinx_mapping = {
175+
'nipype': (f'https://nipype.readthedocs.io/en/{_nipype_version}/', None),
176+
'python': ('https://docs.python.org/3', None)}
177+
178+
napoleon_preprocess_types = True
179+
174180
# Add any paths that contain templates here, relative to this directory.
175181
templates_path = ['_templates']
176182

0 commit comments

Comments
 (0)