DoxygenConfiguration¶
- class documenteer.stackdocs.doxygen.DoxygenConfiguration(include_paths=<factory>, inputs=<factory>, image_paths=<factory>, excludes=<factory>, recursive=True, file_patterns=<factory>, exclude_patterns=<factory>, exclude_symbols=<factory>, project_name='The LSST Science Pipelines', project_brief='C++ API Reference', output_directory=<factory>, generate_html=True, generate_latex=False, tagfile=<factory>, tagfiles=<factory>, generate_xml=True, html_output=<factory>, use_mathjax=True, mathjax_format='HTML-CSS', mathjax_relpath='https://cdn.jsdelivr.net/npm/mathjax@2', xml_output=<factory>, xml_programlisting=False, create_subdirs=False, full_path_names=True, strip_from_path=<factory>, quiet=True, warnings=True, warn_if_undocumented=True, warn_if_doc_error=True, warn_no_paramdoc=False, warn_as_error=False, warn_format='$file:$line: $text', warn_logfile=None)¶
Bases:
object
A restricted Doxygen configuration.
Rather than accomodating arbitrary Doxygen configurations, this class maintains the key configurations that are required for a Doxygen build that is intended to be incorporated into a Sphinx build. As such, this configuration file may ignore some configuration values when parsing a raw configuration file.
Notes
See http://www.doxygen.nl/manual/config.html for more details about Doxygen configurations.
- Parameters:
recursive (
bool
, default:True
)project_name (
str
, default:'The LSST Science Pipelines'
)project_brief (
str
, default:'C++ API Reference'
)output_directory (
Path
, default:<factory>
)generate_html (
bool
, default:True
)generate_latex (
bool
, default:False
)tagfile (
Path
, default:<factory>
)generate_xml (
bool
, default:True
)html_output (
Path
, default:<factory>
)use_mathjax (
bool
, default:True
)mathjax_format (
str
, default:'HTML-CSS'
)mathjax_relpath (
str
, default:'https://cdn.jsdelivr.net/npm/mathjax@2'
)xml_output (
Path
, default:<factory>
)xml_programlisting (
bool
, default:False
)create_subdirs (
bool
, default:False
)full_path_names (
bool
, default:True
)quiet (
bool
, default:True
)warnings (
bool
, default:True
)warn_if_undocumented (
bool
, default:True
)warn_if_doc_error (
bool
, default:True
)warn_no_paramdoc (
bool
, default:False
)warn_as_error (
bool
, default:False
)warn_format (
str
, default:'$file:$line: $text'
)
Attributes Summary
Whether Doxygen should create subdirectories.
Absolute file paths that match these patterns are excluded from the Doxygen build.
Symbols to exclude from the Doxygen build, such as namespace, function, or class names.
File or directory paths to be excluded from the inputs.
File extensions to include from the directories described by
inputs
.Doxygen keeps the full path of each file, rather than stripping it.
Whether or not to generate HTML output.
Whether or not to generate LaTeX output.
Whether or not ot generate XML output.
Directory where the HTML build will be put.
Paths that contain images.
Paths to other Doxygen configuration files.
Individual paths to be input into the doxygen build.
Format of the MathJax output in the HTML build.
Relative path or URL to the MathJax bundle.
Directory where Doxygen output will be generated, by default.
Brief description (subtile) of the project.
Name of the Doxygen project (used in the HTML output).
Turn off messages generated to standard output by Doxygen.
Whether or not directories listed in
inputs
should be searched recursively.Path prefixes to strip from path names.
Whether or not to generate LaTeX output.
The TAGFILES tag can be used to specify one or more tag files.
Enable MathJax to render math, rather than LaTeX.
Treat warnings are errors.
Format for warning and error messages.
Warn about potential errors in the documentation.
Warn about undocumented members.
Print errors and warnings to a log file.
Warn about functions that are documented but don't have documentation for their parameters or return value.
Enable warnings printed to standard error.
Directory to output XML build products into.
Whether to include the program listing in the XML output.
Methods Summary
from_doxygen_conf
(conf_text, root_dir)Create a new DoxygenConfiguration from the the content of a
doxygen.conf
ordoxygen.conf.in
file.render
()Render the Doxygen configuration file.
Attributes Documentation
-
create_subdirs:
bool
= False¶ Whether Doxygen should create subdirectories.
This should be NO for breathe/exhale to work.
-
exclude_patterns:
List
[str
] = <dataclasses._MISSING_TYPE object>¶ Absolute file paths that match these patterns are excluded from the Doxygen build.
Pybind11 wrappers are excluded because Doxygen doesn’t handle them correctly.
-
exclude_symbols:
List
[str
] = <dataclasses._MISSING_TYPE object>¶ Symbols to exclude from the Doxygen build, such as namespace, function, or class names.
-
excludes:
List
[Path
] = <dataclasses._MISSING_TYPE object>¶ File or directory paths to be excluded from the inputs.
-
file_patterns:
List
[str
] = <dataclasses._MISSING_TYPE object>¶ File extensions to include from the directories described by
inputs
.
-
include_paths:
List
[Path
] = <dataclasses._MISSING_TYPE object>¶ Paths to other Doxygen configuration files.
This attribute is rendered as both the
@INCLUDE_PATH
andINCLUDE
doxygen configurations.
-
inputs:
List
[Path
] = <dataclasses._MISSING_TYPE object>¶ Individual paths to be input into the doxygen build.
-
mathjax_relpath:
str
= 'https://cdn.jsdelivr.net/npm/mathjax@2'¶ Relative path or URL to the MathJax bundle.
-
output_directory:
Path
= <dataclasses._MISSING_TYPE object>¶ Directory where Doxygen output will be generated, by default.
-
project_name:
str
= 'The LSST Science Pipelines'¶ Name of the Doxygen project (used in the HTML output).
-
strip_from_path:
List
[Path
] = <dataclasses._MISSING_TYPE object>¶ Path prefixes to strip from path names.
-
tagfiles:
List
[str
] = <dataclasses._MISSING_TYPE object>¶ The TAGFILES tag can be used to specify one or more tag files.
For each tag file the location of the external documentation should be added. The format of a tag file without this location is as follows: TAGFILES = file1 file2 … Adding location for the tag files is done as follows: TAGFILES = file1=loc1 “file2 = loc2” … where loc1 and loc2 can be relative or absolute paths or URLs. See the section “Linking to external documentation” for more information about the use of tag files. Note: Each tag file must have a unique name (where the name does NOT include the path). If a tag file is not located in the directory in which doxygen is run, you must also specify the path to the tagfile here.
-
warn_if_undocumented:
bool
= True¶ Warn about undocumented members.
If EXTRACT_ALL is set to YES then this flag will automatically be disabled.
-
warn_logfile:
Optional
[Path
] = None¶ Print errors and warnings to a log file.
If left blank the output is written to standard error (stderr).
-
warn_no_paramdoc:
bool
= False¶ Warn about functions that are documented but don’t have documentation for their parameters or return value.
If set to NO, doxygen will only warn about wrong or incomplete parameter documentation, but not about the absence of documentation.
Methods Documentation
- classmethod from_doxygen_conf(conf_text, root_dir)¶
Create a new DoxygenConfiguration from the the content of a
doxygen.conf
ordoxygen.conf.in
file.- Parameters:
- Returns:
doxygen_configuration – A DoxygenConfiguration instance populated with configurations parsed from
doxygen_conf
.- Return type:
Notes
Only select tags from the Doxygen configuration file are parsed and incorporated into the DoxygenConfiguration instance:
INPUT
EXCLUDE
EXCLUDE_PATTERNS
EXCLUDE_SYMBOLS
IMAGE_PATH
These are the only tags that individual packages should need to configure with respect to a stack-wide Doxygen build.