diff options
author | Georg Brandl <georg@python.org> | 2015-03-08 17:03:00 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-03-08 17:03:00 +0100 |
commit | b5c2279e05b3f18b660b29c8bd0989fbb8a1582a (patch) | |
tree | bf4f1390758c6e807e7d816fe1f869a6ce7b7ea2 /sphinx/ext/extlinks.py | |
parent | ba9dcaac5120f58c3cc0bc455b4beceab3a4abd9 (diff) | |
download | sphinx-git-b5c2279e05b3f18b660b29c8bd0989fbb8a1582a.tar.gz |
ext: pep8 fixes
Diffstat (limited to 'sphinx/ext/extlinks.py')
-rw-r--r-- | sphinx/ext/extlinks.py | 2 |
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) |