diff options
author | Georg Brandl <georg@python.org> | 2014-09-03 16:39:30 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-03 16:39:30 +0200 |
commit | fc680f1e25959ccc0e210dd6d5070dca360208c7 (patch) | |
tree | 4a5e542712eb5e38e0601a337e4b64ad5f6a91db /sphinx/ext/linkcode.py | |
parent | b6594d18d1923c6f9858b3adce9fccf883fe8023 (diff) | |
download | sphinx-git-fc680f1e25959ccc0e210dd6d5070dca360208c7.tar.gz |
Return version from setup() for all sphinx.ext extensions.
Diffstat (limited to 'sphinx/ext/linkcode.py')
-rw-r--r-- | sphinx/ext/linkcode.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/ext/linkcode.py b/sphinx/ext/linkcode.py index 77bd9f28a..bbb0698cd 100644 --- a/sphinx/ext/linkcode.py +++ b/sphinx/ext/linkcode.py @@ -11,6 +11,7 @@ from docutils import nodes +import sphinx from sphinx import addnodes from sphinx.locale import _ from sphinx.errors import SphinxError @@ -70,3 +71,4 @@ def doctree_read(app, doctree): def setup(app): app.connect('doctree-read', doctree_read) app.add_config_value('linkcode_resolve', None, '') + return sphinx.__version__ |