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.
Number of links to show in the nav head before folding extra items into a More dropdown.
Seconds an on-disk cached inventory stays fresh before the client revalidates it with Ook (0 disables the fast path).
Base URL of the Ook API that hosts the intersphinx inventory cache service (without a trailing slash).
Whether to prefetch intersphinx inventories from Ook's inventory cache service.
The origin base URL for the link-check service.
Maximum time (seconds) to wait for link-check results from the service.
Base URL of the Ook API that hosts the link-check service (without a trailing slash).
Whether link-check service degradation fails the build.
Whether to check links with Ook's link-check service instead of Sphinx's built-in linkcheck builder.
Project title.
Redirects defined in the [sphinx.redirects] TOML configuration.
Content of the user's reStructuredText epilog, or an empty string if not set.
Path to the user's reStructuredText epilog file, if set.
Whether to show a "Last updated" timestamp at the bottom of each page derived from Git commit dates.
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)append_nitpick_ignore_regex(nitpick_ignore_regex)disable_primary_sidebars(html_sidebars)extend_exclude_patterns(exclude_patterns)Extend Sphinx
exclude_patternswith the "exclude" configuration from the sphinx TOML table.extend_intersphinx_mapping(mapping)Extend the
intersphinx_mappingdictionary with configured projects.load(toml_content)set_edit_on_github(html_theme_options, ...)Configure the Edit on GitHub functionality, if possible.
Attributes Documentation
- automodapi_toctreedirm#
- 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 “”.
- conf: ConfigRoot = <dataclasses._MISSING_TYPE object>#
- copyright#
The copyright statement.
Default is
""if not set.
- 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.
- header_links_before_dropdown#
Number of links to show in the nav head before folding extra items into a More dropdown.
- intersphinx_cache_disk_cache_ttl#
Seconds an on-disk cached inventory stays fresh before the client revalidates it with Ook (0 disables the fast path).
- intersphinx_cache_service_url#
Base URL of the Ook API that hosts the intersphinx inventory cache service (without a trailing slash).
- intersphinx_cache_use_service#
Whether to prefetch intersphinx inventories from Ook’s inventory cache service.
- linkcheck_origin_base_url#
The origin base URL for the link-check service.
The origin is the
[sphinx.linkcheck] origin_base_urloverride if set; otherwise it is the project’s base URL. Either way it is normalized (lowercased host, trailing slash stripped) to match the service’s origin normalization.Noneif neither is available.
- linkcheck_poll_budget#
Maximum time (seconds) to wait for link-check results from the service.
- linkcheck_service_url#
Base URL of the Ook API that hosts the link-check service (without a trailing slash).
- linkcheck_strict#
Whether link-check service degradation fails the build.
- linkcheck_use_service#
Whether to check links with Ook’s link-check service instead of Sphinx’s built-in linkcheck builder.
- nitpicky#
- project#
Project title.
- redirects#
Redirects defined in the [sphinx.redirects] TOML configuration.
- rst_epilog#
Content of the user’s reStructuredText epilog, or an empty string if not set.
- rst_epilog_path#
Path to the user’s reStructuredText epilog file, if set.
- show_last_updated#
Whether to show a “Last updated” timestamp at the bottom of each page derived from Git commit dates.
- 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 “Latest”.
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_exclude_patterns(exclude_patterns)#
Extend Sphinx
exclude_patternswith the “exclude” configuration from the sphinx TOML table.
- extend_intersphinx_mapping(mapping)#
Extend the
intersphinx_mappingdictionary with configured projects.
- classmethod find_and_load()#
- Return type:
- set_edit_on_github(html_theme_options, html_context)#
Configure the Edit on GitHub functionality, if possible.
- Parameters:
html_theme_options (
MutableMapping[str,Any])html_context (
MutableMapping[str,Any])
- Return type: