[Python-modules-commits] [sphinx-celery] 05/06: Adds github_user, sha and github_branch extlinks
Christopher Stuart Hoskin
mans0954 at moszumanska.debian.org
Fri Aug 18 07:00:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
mans0954 pushed a commit to tag v1.2.0
in repository sphinx-celery.
commit 1a751b6ed0c3752de994462eb6ca6d0467e91a04
Author: Ask Solem <ask at celeryproject.org>
Date: Wed Apr 13 17:07:13 2016 -0700
Adds github_user, sha and github_branch extlinks
---
sphinx_celery/conf.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/sphinx_celery/conf.py b/sphinx_celery/conf.py
index b7f8517..198122a 100644
--- a/sphinx_celery/conf.py
+++ b/sphinx_celery/conf.py
@@ -147,6 +147,7 @@ def build_config(
exclude_intersphinx=frozenset(),
spelling_lang='en_US',
spelling_show_suggestions=True,
+ extlinks=None,
**kwargs):
add_paths(config_file, path_additions)
if configure_django_settings or django_settings:
@@ -155,6 +156,19 @@ def build_config(
description = description or package.__doc__
author = author or package.__author__
author_name = author_name or author
+ extlinks = extlinks or {}
+
+ extlinks.setdefault('sha', (
+ 'https://github.com/{0}/commit/%s'.format(github_project),
+ 'GitHub SHA',
+ ))
+ extlinks.setdefault('github_branch', (
+ 'https://github.com/{0}/tree/%s'.format(github_project),
+ 'GitHub branch',
+ ))
+ extlinks.setdefault('github_user', (
+ 'https://github.com/%s/', 'GitHub user',
+ ))
if not canonical_dev_url:
canonical_dev_url = '/'.join([
@@ -312,5 +326,8 @@ def build_config(
# -- spelling
spelling_lang=spelling_lang,
spelling_show_suggestions=spelling_show_suggestions,
+
+ # -- extlinks
+ extlinks=extlinks,
)
return dict(conf, **kwargs)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx-celery.git
More information about the Python-modules-commits
mailing list