TechnoteSphinxConfig#
- class technote.main.TechnoteSphinxConfig(factory, toml, metadata, root_filename)#
Bases:
objectA class that configures Sphinx in
conf.pyto build a technote.- Parameters:
factory (
Factory)toml (
TechnoteToml)metadata (
TechnoteMetadata)root_filename (
Path)
Attributes Summary
A plaintext expression of the author or authors.
The TechnoteJinjaContext that provides metadata to the HTML templates.
The metadata for the technote.
The nitpicky boolean flag.
Path to the root content document.
The title of the document set via technote.toml metadata, or None if the document's H1 should be used.
The parse
technote.tomlfile.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_ignoreitems from sphinx.nitpick_ignore.append_nitpick_ignore_regex(nitpick_ignore_regex)Append
nitpick_ignore_regexitems from sphinx.nitpick_ignore.extend_intersphinx_mapping(mapping)Extend the
intersphinx_mappingdictionary with configured projects.load()Create a TechnoteSphinxConfig from the current directory.
Attributes Documentation
- author#
A plaintext expression of the author or authors.
- jinja_context#
The TechnoteJinjaContext that provides metadata to the HTML templates.
-
metadata:
TechnoteMetadata= <dataclasses._MISSING_TYPE object># The metadata for the technote.
This metadata is principally obtained from the
technote.tomlsettings file, but is augmented from content within the technote itself and from external sources.
- nitpicky#
The nitpicky boolean flag.
-
root_filename:
Path= <dataclasses._MISSING_TYPE object># Path to the root content document.
Typically either
index.md,index.rst, orindex.ipynb.
- title#
The title of the document set via technote.toml metadata, or None if the document’s H1 should be used.
-
toml:
TechnoteToml= <dataclasses._MISSING_TYPE object># The parse
technote.tomlfile.
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_ignoreitems from sphinx.nitpick_ignore.
- append_nitpick_ignore_regex(nitpick_ignore_regex)#
Append
nitpick_ignore_regexitems from sphinx.nitpick_ignore.
- extend_intersphinx_mapping(mapping)#
Extend the
intersphinx_mappingdictionary with configured projects.
- classmethod load()#
Create a TechnoteSphinxConfig from the current directory.
- Return type: