Skip to content

Commit

Permalink
Debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtv committed Mar 30, 2024
1 parent a8772e0 commit c086f8d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@
sys.path.insert(0, Path(__file__).parents[1].absolute())


read_the_docs_build = os.environ.get('READTHEDOCS') == 'True'

if read_the_docs_build:
if os.environ.get('READTHEDOCS', '').strip() == 'True':
parent_dir = Path.cwd().parent.absolute()
# C++20: Replace -std=c++17 with -std=c++20.
check_call(
[parent_dir / 'configure', 'CXXFLAGS=-std=c++17 -O0'], cwd=parent_dir)
check_call('doxygen', cwd=(parent_dir / 'doc'))

print(f"*** READTHEDOCS='{os.environ.get('READTHEDOCS')}' ***") # XXX: DEBUG
print(f"*** READTHEDOCS_PROJECT='{os.environ.get('READTHEDOCS_PROJECT')}' ***") # XXX: DEBUG
print(f"*** READTHEDOCS_VERSION='{os.environ.get('READTHEDOCS_VERSION')}' ***") # XXX: DEBUG
print(f"*** READTHEDOCS_VERSION_NAME='{os.environ.get('READTHEDOCS_VERSION_NAME')}' ***") # XXX: DEBUG
print(f"*** READTHEDOCS_OUTPUT='{os.environ.get('READTHEDOCS_OUTPUT')}' ***") # XXX: DEBUG

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down

0 comments on commit c086f8d

Please sign in to comment.