DocumenteerConfig#
- class documenteer.conf.DocumenteerConfig(conf)#
Bases:
object
Configuration from a documenteer.toml file.
- Parameters:
conf (
ConfigRoot
) –
Attributes Summary
- rtype:
Base root URL for the site.
The copyright statement.
The project's GitHub repository.
Number of links to show in the nav head before folding extra items into a More dropdown.
- 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:
disable_primary_sidebars
(html_sidebars)- param html_sidebars:
extend_intersphinx_mapping
(mapping)Extend the
intersphinx_mapping
dictionary with configured projects.- rtype:
load
(toml_content)- param toml_content:
set_edit_on_github
(html_theme_options, ...)Configures the Edit on GitHub functionality, if possible.
Attributes Documentation
- base_url#
Base root URL for the site.
The URL is obtained in this order:
The
base_url
field 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.toml
From importlib if the project.python table is set
Default is None.
- header_links_before_dropdown#
Number of links to show in the nav head before folding extra items into a More dropdown.
- Return type:
- 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.toml
From 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)#
- disable_primary_sidebars(html_sidebars)#
- Parameters:
html_sidebars (
MutableMapping
[str
,List
[str
]]) –- Return type:
- extend_intersphinx_mapping(mapping)#
Extend the
intersphinx_mapping
dictionary with configured projects.
- classmethod find_and_load()#
- Return type:
- set_edit_on_github(html_theme_options, html_context)#
Configures the Edit on GitHub functionality, if possible.
- Parameters:
html_theme_options (
MutableMapping
[str
,Any
]) –html_context (
MutableMapping
[str
,Any
]) –
- Return type: