Skip to content

Commit

Permalink
Make pre-commit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 18, 2023
1 parent 2f14fea commit 31d2f9c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# pylint: disable=invalid-name, redefined-builtin, missing-module-docstring

# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
Expand Down Expand Up @@ -46,7 +48,7 @@
"sphinx.ext.napoleon",
"myst_parser",
"breathe",
]
]

source_suffix = {".rst": "restructuredtext", ".md": "markdown"}

Expand Down Expand Up @@ -86,7 +88,7 @@
"collapse_navigation": False,
"navigation_depth": 4,
"prev_next_buttons_location": None, # no navigation buttons
}
}

# -- Doxygen integration with Breathe -----------------------------------------

Expand All @@ -109,7 +111,7 @@

subprocess.check_call(
["doxygen", "Doxyfile"], stdout=subprocess.PIPE, cwd=doc_dir, env=env
)
)

cpp_api_index_target = doc_dir / "cpp_api/api.rst"

Expand All @@ -119,10 +121,10 @@
stdout=subprocess.PIPE,
cwd=doc_dir,
env=env,
)
)

if not cpp_api_index_target.exists():
shutil.copyfile(doc_dir / "cpp_api.rst", cpp_api_index_target)
shutil.copyfile(doc_dir / "cpp_api.rst", cpp_api_index_target)

print("Done with c++ API doc generation")

Expand All @@ -144,7 +146,7 @@
"py_api",
"../python",
"*test_*.py", # exclude tests
]
)
]
)

print("Done with python API doc generation")

0 comments on commit 31d2f9c

Please sign in to comment.