diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-02 18:37:20 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-02 18:37:20 +0900 |
commit | ac9e9c0745f0001b3db30611a9a5c298634c3e08 (patch) | |
tree | 7a976fe0ad7f38c1ac182a61580982193e9d58cb /sphinx/ext/graphviz.py | |
parent | 245b464fac15a0fa2a2ce5ba9e23f032c311b68a (diff) | |
parent | be971c6d385b42524e0660f788abf6399877bc30 (diff) | |
download | sphinx-git-ac9e9c0745f0001b3db30611a9a5c298634c3e08.tar.gz |
Merge branch '1.8' into 2.0
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 9827d8531..c602869cd 100644 --- a/sphinx/ext/graphviz.py +++ b/sphinx/ext/graphviz.py @@ -196,9 +196,7 @@ class GraphvizSimple(SphinxDirective): node = graphviz() node['code'] = '%s %s {\n%s\n}\n' % \ (self.name, self.arguments[0], '\n'.join(self.content)) - 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'] if 'alt' in self.options: |