diff options
author | Matt Iversen <teh.ivo@gmail.com> | 2015-10-18 01:08:00 +1100 |
---|---|---|
committer | Matt Iversen <teh.ivo@gmail.com> | 2015-10-18 01:08:00 +1100 |
commit | d1c2d8ce744cca59b841305a37f5523537fa2316 (patch) | |
tree | 703fc8edf2a70b619d5e669236f12cb6719a778a | |
parent | 348f80c11a16852d71f41e11e73f2582601da90e (diff) | |
download | virtualenv-d1c2d8ce744cca59b841305a37f5523537fa2316.tar.gz |
Make use of extlinks for issue & pull refs
-rw-r--r-- | docs/conf.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index 1d89554..9332aa1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,10 +24,9 @@ sys.path.insert(0, os.path.abspath(os.pardir)) # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc'] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.extlinks'] # Add any paths that contain templates here, relative to this directory. -## FIXME: disabled for now because I haven't figured out how to use this: #templates_path = ['_templates'] # The suffix of source filenames. @@ -74,6 +73,11 @@ unused_docs = [] # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' +extlinks = { + 'issue': ('https://github.com/pypa/virtualenv/issues/%s', '#'), + 'pull': ('https://github.com/pypa/virtualenv/pull/%s', 'PR #'), +} + # Options for HTML output # ----------------------- |