Skip to content

Commit

Permalink
Use exhale to better organize the C++ documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dpw13 committed Feb 6, 2024
1 parent ebceba5 commit 4c74557
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ endif()

if(BUILD_DOCS)
find_package(Doxygen REQUIRED)
find_package(Sphinx REQUIRED breathe)
find_package(Sphinx REQUIRED breathe exhale)
set(DOXYGEN_GENERATE_HTML NO)
set(DOXYGEN_GENERATE_XML YES)

Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
api
4 changes: 0 additions & 4 deletions docs/api_ref.rst

This file was deleted.

22 changes: 22 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
# ones.
extensions = [
'breathe',
'exhale',
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -53,6 +54,27 @@
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']


# Setup the exhale extension
exhale_args = {
# These arguments are required
"containmentFolder": "../../projectm/docs/api",
"rootFileName": "library_root.rst",
"doxygenStripFromPath": "..",
# Heavily encouraged optional argument (see docs)
"rootFileTitle": "ProjectM API",
# Suggested optional arguments
"createTreeView": True,
# TIP: if using the sphinx-bootstrap-theme, you need
# "treeViewIsBootstrap": True,
"exhaleExecutesDoxygen": False,
}

# Tell sphinx what the primary language being documented is.
primary_domain = 'cpp'

# Tell sphinx what the pygments highlight language should be.
highlight_language = 'cpp'

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
building
emscripten
llvm
api_ref
api/library_root

|Windows Build Status| |Linux Build Status| |macOS Build Status|
|Emscripten Build Status| |Android Build Status|
Expand Down

0 comments on commit 4c74557

Please sign in to comment.