Skip to content

Commit df25f1c

Browse files
committed
add sphinx extlinks
1 parent d532ed9 commit df25f1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/sphinx/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def __getattr__(cls, name):
4747
'sphinx.ext.autodoc',
4848
'sphinx.ext.mathjax',
4949
'sphinx.ext.viewcode',
50+
'sphinx.ext.extlinks',
5051
'numpydoc',
5152
'sphinx.ext.autosummary'
5253
]
@@ -246,6 +247,11 @@ def __getattr__(cls, name):
246247
# If false, no module index is generated.
247248
#latex_domain_indices = True
248249

250+
# extlinks alias
251+
extlinks = {'issue': ('https://github.com/pvlib/pvlib-python/issues/%s',
252+
'GH'),
253+
'wiki': ('https://github.com/pvlib/pvlib-python/wiki/%s',
254+
'wiki ')}
249255

250256
# -- Options for manual page output ---------------------------------------
251257

0 commit comments

Comments
 (0)