diff options
author | Georg Brandl <georg@python.org> | 2014-09-22 14:51:47 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-22 14:51:47 +0200 |
commit | 31452fc64d550f526d3a6c4dfbb1121873896503 (patch) | |
tree | 1b259d36d3f105e8b0971acb1f838f89110595e1 /sphinx/ext/linkcode.py | |
parent | 905cbf853d5fe8fa911ec8fc81dc31134f4e5ba2 (diff) | |
download | sphinx-git-31452fc64d550f526d3a6c4dfbb1121873896503.tar.gz |
[WIP] parallel read
Diffstat (limited to 'sphinx/ext/linkcode.py')
-rw-r--r-- | sphinx/ext/linkcode.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/ext/linkcode.py b/sphinx/ext/linkcode.py index a0b4d0da5..b11fff096 100644 --- a/sphinx/ext/linkcode.py +++ b/sphinx/ext/linkcode.py @@ -16,9 +16,11 @@ from sphinx import addnodes from sphinx.locale import _ from sphinx.errors import SphinxError + class LinkcodeError(SphinxError): category = "linkcode error" + def doctree_read(app, doctree): env = app.builder.env @@ -68,7 +70,8 @@ def doctree_read(app, doctree): classes=['viewcode-link']) signode += onlynode + def setup(app): app.connect('doctree-read', doctree_read) app.add_config_value('linkcode_resolve', None, '') - return {'version': sphinx.__version__} + return {'version': sphinx.__version__, 'parallel_read_safe': False} |