Skip to content

Commit

Permalink
[SCons] Use logging option to adjust Sphinx logging
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Sep 25, 2023
1 parent 1916f66 commit cc1ba61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions doc/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit cc1ba61

Please sign in to comment.