Skip to content

Commit

Permalink
Continue tweaking Breathe.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtv committed Mar 31, 2024
1 parent be5c886 commit 494b0e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ docs: $(DOCS)
reference: reference-stamp
reference-stamp: Doxyfile.in $(REFERENCE_STAMP_DEP)
if [ -x "$(DOXYGEN)" ]; then \
$(MKDIR_P) html; \
$(MKDIR_P) html xml; \
$(DOXYGEN) Doxyfile; \
touch $@; \
echo "*** Wrote documentation to $(pwd)/html/. ***"; \
Expand Down
2 changes: 1 addition & 1 deletion doc/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ docs: $(DOCS)
reference: reference-stamp
reference-stamp: Doxyfile.in $(REFERENCE_STAMP_DEP)
if [ -x "$(DOXYGEN)" ]; then \
$(MKDIR_P) html; \
$(MKDIR_P) html xml; \
$(DOXYGEN) Doxyfile; \
touch $@; \
echo "*** Wrote documentation to $(pwd)/html/. ***"; \
Expand Down
8 changes: 4 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@
# documentation root, make it absolute, like shown here.
sys.path.insert(0, Path(__file__).parents[1].absolute())

breathe_projects = {}
breathe_default_project = 'libpqxx'

if os.environ.get('READTHEDOCS', '').strip() == 'True':
source_dir = Path(__file__).parents[1]
build_dir = Path.cwd().parent.absolute()
# C++23: Upgrade C++ version.
check_call(
[source_dir / 'configure', 'CXXFLAGS=-std=c++20 -O0'], cwd=build_dir)
#check_call('doxygen', cwd=(build_dir / 'doc'))
check_call(['make'], cwd=(build_dir / 'doc'))
check_call('doxygen', cwd=(build_dir / 'doc'))
breathe_projects['libpqxx'] = (build_dir / 'xml')


# -- General configuration ------------------------------------------------
Expand All @@ -45,8 +47,6 @@
# ]
extensions = ['breathe']

breathe_default_project = 'libpqxx'

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down

0 comments on commit 494b0e9

Please sign in to comment.