Enable extlink extension. Setup extlink to CouchDB JIRA and Apache Git commits.
This extension allows to create markup-based URLs that points to specific location. For instance, use :issue:`1234` to let sphinx create a direct link to COUCHDB-1234 issue on JIRA tracker. More information about this extension: http://sphinx-doc.org/ext/extlinks.html Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/9a43e0c2 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/9a43e0c2 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/9a43e0c2 Branch: refs/heads/docs Commit: 9a43e0c2cc8482d0b57bc7d7c8177175e1bd0487 Parents: 17ee14c Author: Alexander Shorin <[email protected]> Authored: Mon Dec 3 04:08:52 2012 +0400 Committer: Dave Cottlehuber <[email protected]> Committed: Mon Dec 3 08:47:53 2012 +0100 ---------------------------------------------------------------------- share/doc/src/conf.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/9a43e0c2/share/doc/src/conf.py ---------------------------------------------------------------------- diff --git a/share/doc/src/conf.py b/share/doc/src/conf.py index de4cc01..26974fc 100644 --- a/share/doc/src/conf.py +++ b/share/doc/src/conf.py @@ -12,7 +12,7 @@ import sys, os -extensions = ["sphinx.ext.todo"] +extensions = ["sphinx.ext.todo", "sphinx.ext.extlinks"] source_suffix = ".rst" @@ -81,3 +81,8 @@ texinfo_documents = [( "Databases", True )] + +extlinks = { + 'issue': ('https://issues.apache.org/jira/browse/COUCHDB-%s', 'COUCHDB-'), + 'commit': ('https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=%s', '#') +}
