summaryrefslogtreecommitdiff
path: root/sphinx/ext/extlinks.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-03-08 17:03:00 +0100
committerGeorg Brandl <georg@python.org>2015-03-08 17:03:00 +0100
commitb5c2279e05b3f18b660b29c8bd0989fbb8a1582a (patch)
treebf4f1390758c6e807e7d816fe1f869a6ce7b7ea2 /sphinx/ext/extlinks.py
parentba9dcaac5120f58c3cc0bc455b4beceab3a4abd9 (diff)
downloadsphinx-git-b5c2279e05b3f18b660b29c8bd0989fbb8a1582a.tar.gz
ext: pep8 fixes
Diffstat (limited to 'sphinx/ext/extlinks.py')
-rw-r--r--sphinx/ext/extlinks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/ext/extlinks.py b/sphinx/ext/extlinks.py
index f593dcaae..c9a3f3641 100644
--- a/sphinx/ext/extlinks.py
+++ b/sphinx/ext/extlinks.py
@@ -52,10 +52,12 @@ def make_link_role(base_url, prefix):
return [pnode], []
return role
+
def setup_link_roles(app):
for name, (base_url, prefix) in iteritems(app.config.extlinks):
app.add_role(name, make_link_role(base_url, prefix))
+
def setup(app):
app.add_config_value('extlinks', {}, 'env')
app.connect('builder-inited', setup_link_roles)