Skip to content

Commit 2beb8b0

Browse files
committed
Add support for linking usernames.
Closes jaraco/skeleton#144
1 parent 0c326f3 commit 2beb8b0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,13 @@
4545
# Preserve authored syntax for defaults
4646
autodoc_preserve_defaults = True
4747

48+
# Add support for linking usernames, PyPI projects, Wikipedia pages
49+
github_url = 'https://github.com/'
50+
extlinks = {
51+
'user': (f'{github_url}%s', '@%s'),
52+
'pypi': ('https://pypi.org/project/%s', '%s'),
53+
'wiki': ('https://wikipedia.org/wiki/%s', '%s'),
54+
}
55+
extensions += ['sphinx.ext.extlinks']
56+
4857
# local

0 commit comments

Comments
 (0)