summaryrefslogtreecommitdiff
path: root/sphinx/ext/linkcode.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-03 16:39:30 +0200
committerGeorg Brandl <georg@python.org>2014-09-03 16:39:30 +0200
commitfc680f1e25959ccc0e210dd6d5070dca360208c7 (patch)
tree4a5e542712eb5e38e0601a337e4b64ad5f6a91db /sphinx/ext/linkcode.py
parentb6594d18d1923c6f9858b3adce9fccf883fe8023 (diff)
downloadsphinx-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.py2
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__