mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
graphviz: Don't use document.current_source
This commit is contained in:
parent
4fcc64423d
commit
00f476040e
@ -156,9 +156,7 @@ class Graphviz(SphinxDirective):
|
|||||||
line=self.lineno)]
|
line=self.lineno)]
|
||||||
node = graphviz()
|
node = graphviz()
|
||||||
node['code'] = dotcode
|
node['code'] = dotcode
|
||||||
node['options'] = {
|
node['options'] = {'docname': self.env.docname}
|
||||||
'docname': path.splitext(self.state.document.current_source)[0],
|
|
||||||
}
|
|
||||||
|
|
||||||
if 'graphviz_dot' in self.options:
|
if 'graphviz_dot' in self.options:
|
||||||
node['options']['graphviz_dot'] = self.options['graphviz_dot']
|
node['options']['graphviz_dot'] = self.options['graphviz_dot']
|
||||||
|
Loading…
Reference in New Issue
Block a user