DocumenteerConfig#
- class documenteer.conf.DocumenteerConfig(conf)#
Bases:
objectConfiguration from a documenteer.toml file.
- Parameters:
conf (
ConfigRoot) –
Attributes Summary
Base root URL for the site.
The copyright statement.
The project's GitHub repository.
- rtype:
Project title.
Content of the user's reStructuredText epilog, or an empty string if not set.
Path to the user's reStructuredText epilog file, if set.
The project's version.
Methods Summary
append_extensions(extensions)Append user-configured extensions to an existing list.
append_linkcheck_ignore(link_patterns)Append URL patterns for sphinx.linkcheck.ignore to existing patterns.
append_nitpick_ignore(nitpick_ignore)- param nitpick_ignore:
append_nitpick_ignore_regex(nitpick_ignore_regex)- param nitpick_ignore_regex:
extend_intersphinx_mapping(mapping)Extend the
intersphinx_mappingdictionary with configured projects.- rtype:
load(toml_content)- param toml_content:
Attributes Documentation
- base_url#
Base root URL for the site.
The URL is obtained in this order:
The
base_urlfield of the[project]table in documenteer.toml.From importlib.metadata if
[project.python]is set in documenteer.toml.Default is “”.
- Return type:
- github_url#
The project’s GitHub repository.
The GitHub URL is obtained in this order:
The project.github_url field in
documenteer.tomlFrom importlib if the project.python table is set
Default is None.
- rst_epilog#
Content of the user’s reStructuredText epilog, or an empty string if not set.
- Return type:
- rst_epilog_path#
Path to the user’s reStructuredText epilog file, if set.
- version#
The project’s version.
The version is obtained in this order:
project.version field in
documenteer.tomlFrom importlib if the project.python table is set
Default is None.
Methods Documentation
- append_extensions(extensions)#
Append user-configured extensions to an existing list.
- append_linkcheck_ignore(link_patterns)#
Append URL patterns for sphinx.linkcheck.ignore to existing patterns.
- append_nitpick_ignore(nitpick_ignore)#
- append_nitpick_ignore_regex(nitpick_ignore_regex)#
- extend_intersphinx_mapping(mapping)#
Extend the
intersphinx_mappingdictionary with configured projects.
- classmethod find_and_load()#
- Return type: