Skip to content

Commit

Permalink
Fix #6028: graphviz: Ensure the graphviz filenames are reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Feb 27, 2019
1 parent 836d65f commit 49bd372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -21,6 +21,7 @@ Bugs fixed
* #6046: LaTeX: ``TypeError`` is raised when invalid latex_elements given
* #6019: imgconverter: Including multipage PDF fails
* #6047: autodoc: ``autofunction`` emits a warning for method objects
* #6028: graphviz: Ensure the graphviz filenames are reproducible

Testing
--------
Expand Down
4 changes: 1 addition & 3 deletions sphinx/ext/graphviz.py
Expand Up @@ -194,9 +194,7 @@ def run(self):
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:
Expand Down

0 comments on commit 49bd372

Please sign in to comment.