diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-27 23:37:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 23:37:23 +0900 |
commit | 321ad49e0304b68371c1442cf49f06d08bbf98ad (patch) | |
tree | fda87f59489ed1fc451de31c753a00913242a549 /sphinx/ext/graphviz.py | |
parent | 8d0d75fea78b265b7c578307f237d3cefa096a6c (diff) | |
parent | 49bd372142899093e2340556ffbe1f927127cafb (diff) | |
download | sphinx-git-321ad49e0304b68371c1442cf49f06d08bbf98ad.tar.gz |
Merge pull request #6111 from tk0miya/6028_make_graphviz_reproducible
Fix #6028: graphviz: Ensure the graphviz filenames are reproducible
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: |