diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-08-21 21:59:16 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-08-21 21:59:16 +0900 |
| commit | 00f476040e30371044437860ef07cb023b94489a (patch) | |
| tree | e13c51cbd808d9a55188727ea015dde634903370 /sphinx/ext/graphviz.py | |
| parent | 4fcc64423d9f5200c3abaf33d392e94f5f9780ff (diff) | |
| download | sphinx-git-00f476040e30371044437860ef07cb023b94489a.tar.gz | |
graphviz: Don't use document.current_source
Diffstat (limited to 'sphinx/ext/graphviz.py')
| -rw-r--r-- | sphinx/ext/graphviz.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py index a702e6045..cf606f3b7 100644 --- a/sphinx/ext/graphviz.py +++ b/sphinx/ext/graphviz.py @@ -156,9 +156,7 @@ class Graphviz(SphinxDirective): line=self.lineno)] node = graphviz() node['code'] = dotcode - node['options'] = { - 'docname': path.splitext(self.state.document.current_source)[0], - } + node['options'] = {'docname': self.env.docname} if 'graphviz_dot' in self.options: node['options']['graphviz_dot'] = self.options['graphviz_dot'] |
