Make extlinks more flexible: use string substitution to build the full URL.

This commit is contained in:
Georg Brandl
2010-01-02 20:51:22 +01:00
parent 32437e45bd
commit 6b13a28c11
7 changed files with 34 additions and 12 deletions
+5 -2
View File
@@ -6,7 +6,7 @@ sys.path.append(os.path.abspath('.'))
extensions = ['ext', 'sphinx.ext.autodoc', 'sphinx.ext.jsmath',
'sphinx.ext.coverage', 'sphinx.ext.todo',
'sphinx.ext.autosummary']
'sphinx.ext.autosummary', 'sphinx.ext.extlinks']
jsmath_path = 'dummy.js'
@@ -16,7 +16,7 @@ master_doc = 'contents'
source_suffix = '.txt'
project = 'Sphinx <Tests>'
copyright = '2008, Georg Brandl & Team'
copyright = '2010, Georg Brandl & Team'
# If this is changed, remember to update the versionchanges!
version = '0.6'
release = '0.6alpha1'
@@ -53,6 +53,9 @@ coverage_c_regexes = {'cfunction': r'^PyAPI_FUNC\(.*\)\s+([^_][\w_]+)'}
autosummary_generate = ['autosummary']
extlinks = {'issue': ('http://bugs.python.org/issue%s', 'issue '),
'pyurl': ('http://python.org/%s', None)}
# modify tags from conf.py
tags.add('confpytag')