mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 18:52:25 +01:00
Add doxygen and graphviz support
This commit is contained in:
parent
9353afec99
commit
751e39c35b
@ -7,6 +7,9 @@ python:
|
|||||||
- docs
|
- docs
|
||||||
build:
|
build:
|
||||||
os: ubuntu-22.04
|
os: ubuntu-22.04
|
||||||
|
apt_packages:
|
||||||
|
- doxygen
|
||||||
|
- graphviz
|
||||||
tools:
|
tools:
|
||||||
python: "3.11"
|
python: "3.11"
|
||||||
sphinx:
|
sphinx:
|
||||||
|
6
Doxyfile
6
Doxyfile
@ -57,7 +57,7 @@ PROJECT_BRIEF = "Popular C++ unit testing framework"
|
|||||||
# entered, it will be relative to the location where doxygen was started. If
|
# entered, it will be relative to the location where doxygen was started. If
|
||||||
# left blank the current directory will be used.
|
# left blank the current directory will be used.
|
||||||
|
|
||||||
OUTPUT_DIRECTORY = docs/doxygen
|
OUTPUT_DIRECTORY = docs/build/doxygen
|
||||||
|
|
||||||
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
||||||
# directories (in 2 levels) under the output directory of each output format and
|
# directories (in 2 levels) under the output directory of each output format and
|
||||||
@ -1088,7 +1088,7 @@ IGNORE_PREFIX =
|
|||||||
# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
|
# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
|
|
||||||
GENERATE_HTML = YES
|
GENERATE_HTML = NO
|
||||||
|
|
||||||
# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
|
# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
|
||||||
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
||||||
@ -1946,7 +1946,7 @@ MAN_LINKS = NO
|
|||||||
# captures the structure of the code including all documentation.
|
# captures the structure of the code including all documentation.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
GENERATE_XML = NO
|
GENERATE_XML = YES
|
||||||
|
|
||||||
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
|
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
|
||||||
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
||||||
|
27
docs/conf.py
27
docs/conf.py
@ -1,3 +1,9 @@
|
|||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
from sphinx.application import Sphinx
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
project = 'Catch2'
|
project = 'Catch2'
|
||||||
copyright = '2023, Martin Hořeňovský'
|
copyright = '2023, Martin Hořeňovský'
|
||||||
author = 'Martin Hořeňovský'
|
author = 'Martin Hořeňovský'
|
||||||
@ -19,11 +25,28 @@ exclude_patterns = [
|
|||||||
]
|
]
|
||||||
source_suffix = [".md"]
|
source_suffix = [".md"]
|
||||||
|
|
||||||
|
|
||||||
html_theme = 'furo'
|
html_theme = 'furo'
|
||||||
#html_static_path = ['_static']
|
# html_static_path = ['_static']
|
||||||
|
|
||||||
myst_enable_extensions = [
|
myst_enable_extensions = [
|
||||||
"tasklist",
|
"tasklist",
|
||||||
"colon_fence",
|
"colon_fence",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
breathe_projects = {
|
||||||
|
"Catch2": "build/doxygen/xml",
|
||||||
|
}
|
||||||
|
breathe_default_project = "Catch2"
|
||||||
|
|
||||||
|
|
||||||
|
def generate_doxygen_xml(app: Sphinx):
|
||||||
|
"""
|
||||||
|
Run the doxygen commands
|
||||||
|
"""
|
||||||
|
os.chdir(Path(app.confdir).parent)
|
||||||
|
subprocess.run(["doxygen"])
|
||||||
|
|
||||||
|
|
||||||
|
def setup(app: Sphinx):
|
||||||
|
# Add hook for building doxygen xml when needed
|
||||||
|
app.connect("builder-inited", generate_doxygen_xml)
|
||||||
|
Loading…
Reference in New Issue
Block a user