diff options
Diffstat (limited to 'doc/python_api/sphinx_doc_gen.py')
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index c75a2cd73d3..af1cccf0c46 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -440,25 +440,30 @@ if ARGS.sphinx_build: if ARGS.log: SPHINX_BUILD_LOG = os.path.join(ARGS.output_dir, ".sphinx-build.log") - SPHINX_BUILD = ["sphinx-build", - "-w", SPHINX_BUILD_LOG, - SPHINX_IN, SPHINX_OUT] + SPHINX_BUILD = [ + "sphinx-build", + "-w", SPHINX_BUILD_LOG, + SPHINX_IN, SPHINX_OUT, + ] # pdf build if ARGS.sphinx_build_pdf: SPHINX_OUT_PDF = os.path.join(ARGS.output_dir, "sphinx-out_pdf") - SPHINX_BUILD_PDF = ["sphinx-build", - "-b", "latex", - SPHINX_IN, SPHINX_OUT_PDF] + SPHINX_BUILD_PDF = [ + "sphinx-build", + "-b", "latex", + SPHINX_IN, SPHINX_OUT_PDF, + ] SPHINX_MAKE_PDF = ["make", "-C", SPHINX_OUT_PDF] SPHINX_MAKE_PDF_STDOUT = None if ARGS.log: SPHINX_BUILD_PDF_LOG = os.path.join(ARGS.output_dir, ".sphinx-build_pdf.log") - SPHINX_BUILD_PDF = ["sphinx-build", "-b", "latex", - "-w", SPHINX_BUILD_PDF_LOG, - SPHINX_IN, SPHINX_OUT_PDF] - + SPHINX_BUILD_PDF = [ + "sphinx-build", "-b", "latex", + "-w", SPHINX_BUILD_PDF_LOG, + SPHINX_IN, SPHINX_OUT_PDF, + ] sphinx_make_pdf_log = os.path.join(ARGS.output_dir, ".latex_make.log") SPHINX_MAKE_PDF_STDOUT = open(sphinx_make_pdf_log, "w", encoding="utf-8") |