doc: pass graphviz options in conf.py

easier to maintain the options of sphinx extensions in a single place.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2020-11-19 16:03:29 +08:00
parent cc5864234e
commit 3c0bc49875
2 changed files with 3 additions and 1 deletions

View File

@ -127,7 +127,6 @@ for target in $sphinx_targets; do
case $target in
html)
builder=dirhtml
extra_opt="-D graphviz_output_format=svg"
;;
man)
extra_opt="-t man"

View File

@ -114,6 +114,9 @@ breathe_doxygen_config_options = {
edit_on_github_project = 'ceph/ceph'
edit_on_github_branch = 'master'
# graphviz options
graphviz_output_format = 'svg'
def generate_state_diagram(input_paths, output_path):
sys.path.append(os.path.join(top_level, 'doc', 'scripts'))
from gen_state_diagram import do_filter, StateMachineRenderer