Docs: write sphinx warnings to log file in html directory

This commit is contained in:
neofelis2X
2025-01-22 20:43:50 +01:00
parent 6038fc2709
commit 06e8b9917b

View File

@@ -1156,7 +1156,10 @@ def cmd_sphinx(options, args):
pwd2 = pushDir(sphinxDir)
buildDir = os.path.join(sphinxDir, 'build')
htmlDir = os.path.join(phoenixDir(), 'docs', 'html')
runcmd('{} -m sphinx -b html -d {}/doctrees . {}'.format(PYTHON, buildDir, htmlDir))
sphinx_log = os.path.join(htmlDir, 'warnings', 'sphinx_warnings.log')
runcmd('{} -m sphinx --builder html --color --warning-file {} \
--doctree-dir {}/doctrees . {}'.format(PYTHON, sphinx_log, buildDir, htmlDir))
del pwd2
msg('Postprocessing sphinx output...')