summaryrefslogtreecommitdiff
path: root/sphinx/ext/graphviz.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-02 20:51:18 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-02 21:33:34 +0900
commitce2f9c2b944ee7f38906da1a50691e6bfd0dbde3 (patch)
tree04d279cd560980ddc0f1a3a7fccda006138a18dc /sphinx/ext/graphviz.py
parentbcc0ffbd18fcc4d5bbd5b18e94cd1e3ef50e6a26 (diff)
downloadsphinx-git-ce2f9c2b944ee7f38906da1a50691e6bfd0dbde3.tar.gz
Close #5124: graphviz: :graphviz_dot: option is renamed to :layout:
Diffstat (limited to 'sphinx/ext/graphviz.py')
-rw-r--r--sphinx/ext/graphviz.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py
index c602869cd..ab45b55fc 100644
--- a/sphinx/ext/graphviz.py
+++ b/sphinx/ext/graphviz.py
@@ -127,7 +127,8 @@ class Graphviz(SphinxDirective):
'alt': directives.unchanged,
'align': align_spec,
'caption': directives.unchanged,
- 'graphviz_dot': directives.unchanged,
+ 'layout': directives.unchanged,
+ 'graphviz_dot': directives.unchanged, # an old alias of `layout` option
'name': directives.unchanged,
}
@@ -161,6 +162,8 @@ class Graphviz(SphinxDirective):
if 'graphviz_dot' in self.options:
node['options']['graphviz_dot'] = self.options['graphviz_dot']
+ if 'layout' in self.options:
+ node['options']['graphviz_dot'] = self.options['layout']
if 'alt' in self.options:
node['alt'] = self.options['alt']
if 'align' in self.options: