output
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| BuildOutput mkdocs_mknodes.generator.output Everything a build function produced, independent of the site engine. |
||
| NavItem mkdocs_mknodes.generator.output An entry of the site navigation. |
||
| Script mkdocs_mknodes.generator.output A JavaScript file to include in every page. |
||
| SiteMetadata mkdocs_mknodes.generator.output Site-level metadata inferred from the project. |
š DocStrings¶
Engine-neutral result of running a MkNodes build function.
BuildOutput
dataclass
¶
Everything a build function produced, independent of the site engine.
Writers (see mkdocs_mknodes.writers) turn this into the input of a concrete
static site generator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pages
|
dict[str, str]
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
<class 'dict'>
|
assets
|
dict[str, str | bytes]
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
<class 'dict'>
|
nav
|
list[NavItem]
|
Built-in mutable sequence. If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified. |
<dynamic>
|
markdown_extensions
|
dict[str, dict[str, Any]]
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
<class 'dict'>
|
extra_css
|
list[str]
|
Built-in mutable sequence. If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified. |
<dynamic>
|
extra_javascript
|
list[Script]
|
Built-in mutable sequence. If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified. |
<dynamic>
|
templates
|
dict[str, str]
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
<class 'dict'>
|
extra
|
dict[str, Any]
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
<class 'dict'>
|
metadata
|
SiteMetadata
|
Site-level metadata inferred from the project. |
<dynamic>
|
edit_paths
|
dict[str, str]
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
<class 'dict'>
|
Source code in mkdocs_mknodes/generator/output.py
assets
class-attribute
instance-attribute
¶
Static files: path relative to the docs root -> content (CSS, JS, images, ...).
edit_paths
class-attribute
instance-attribute
¶
Page path -> repository path of the source that generated it.
extra
class-attribute
instance-attribute
¶
Theme variables (extra in MkDocs / Zensical configs).
extra_css
class-attribute
instance-attribute
¶
Stylesheets: URLs or paths relative to the docs root (contained in assets).
extra_javascript
class-attribute
instance-attribute
¶
extra_javascript: list[Script] = dataclasses.field(default_factory=list)
Scripts: URLs or paths relative to the docs root (contained in assets).
markdown_extensions
class-attribute
instance-attribute
¶
Python-Markdown extensions required by the pages: name -> config.
metadata
class-attribute
instance-attribute
¶
metadata: SiteMetadata = dataclasses.field(default_factory=SiteMetadata)
Site metadata inferred from the project.
nav
class-attribute
instance-attribute
¶
nav: list[NavItem] = dataclasses.field(default_factory=list)
Navigation tree.
pages
class-attribute
instance-attribute
¶
Markdown pages: path relative to the docs root -> Markdown.
templates
class-attribute
instance-attribute
¶
Theme template overrides (Material-style Jinja blocks): filename -> template.
NavItem
dataclass
¶
An entry of the site navigation.
Either a link to a page / URL (target set) or a section (children set).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
|
required |
target
|
str | None
|
Page path (relative to the docs root) or an external URL. |
None
|
children
|
list[NavItem]
|
Built-in mutable sequence. If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified. |
<dynamic>
|
Source code in mkdocs_mknodes/generator/output.py
target
class-attribute
instance-attribute
¶
Page path (relative to the docs root) or an external URL.
Script
dataclass
¶
A JavaScript file to include in every page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
URL or path relative to the docs root. |
required |
defer
|
bool
|
|
False
|
async_
|
bool
|
|
False
|
typ
|
str | None
|
|
None
|
Source code in mkdocs_mknodes/generator/output.py
SiteMetadata
dataclass
¶
Site-level metadata inferred from the project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
site_name
|
str | None
|
|
None
|
site_description
|
str | None
|
|
None
|
site_author
|
str | None
|
|
None
|
repo_url
|
str | None
|
|
None
|
copyright
|
str | None
|
|
None
|
social
|
list[dict[str, str]]
|
Built-in mutable sequence. If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified. |
<dynamic>
|