[SCons] Use logging option to adjust Sphinx logging

This commit is contained in:
Ray Speth 2023-09-23 12:39:03 -04:00 committed by Ray Speth
parent 6f95c67936
commit 553d5def17
2 changed files with 3 additions and 1 deletions

View File

@ -332,7 +332,7 @@ jobs:
- name: Build Cantera
run: python3 `which scons` build -j2 debug=n optimize=y use_pch=n
- name: Build documentation
run: python3 `which scons` sphinx doxygen
run: python3 `which scons` sphinx doxygen logging=debug
- name: Ensure 'scons help' options work
run: |
python3 `which scons` help --options

View File

@ -111,6 +111,8 @@ if localenv['doxygen_docs']:
if localenv['sphinx_docs']:
def build_sphinx(target, source, env):
cmd = [env['sphinx_cmd']] + env['sphinx_options'].split()
if env['logging'] == 'debug':
cmd.append('-v')
cmd += ('-b', 'html', '-d', 'build/doc/sphinx/doctrees', 'build/doc/sphinx',
'build/doc/sphinx/html')
code = subprocess.call(cmd, env=env['ENV'])