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.
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.
Format of the MathJax output in the HTML build.
Relative path or URL to the MathJax bundle.
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.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.
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.
-
mathjax_relpath:
str
= 'https://cdn.jsdelivr.net/npm/mathjax@2'# Relative path or URL to the MathJax bundle.
-
project_name:
str
= 'The LSST Science Pipelines'# Name of the Doxygen project (used in the HTML output).
-
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:
DoxygenConfiguration
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.
- render()#
Render the Doxygen configuration file.
- Returns:
config_content – Text content of a doxygen configuration file.
- Return type:
str