Configuration¶
The options of the plugin, set in mkdocs.yml (or in zensical.toml, see Zensical):
plugins:
- exporter:
formats:
pdf:
...
buttons:
- ...
The options of PDF documents (formats.pdf) are described in PDF.
exporter ¶
The options of the plugin (plugins: - exporter:).
theme = c.Optional(c.Theme(default=None))
¶
The theme whose adjustments are applied to documents (the website's theme by
default), e.g. material for a theme derived from Material for MkDocs.
formats = c.SubConfig(FormatsConfig)
¶
The formats of documents.
buttons = c.ListOfItems(c.SubConfig(ButtonConfig), default=[])
¶
Buttons added at the top of every page.
logging = c.SubConfig(LoggingConfig)
¶
The messages logged by the plugin.
buttons[] ¶
A button added at the top of pages (buttons[]): a built-in one (preset),
whose options can be changed, or one of your own. Each option can be a callable
computing it from the page.
preset = c.Optional(c.Choice(tuple(PRESETS)))
¶
A built-in button, giving the other options their defaults: download and
view (download the page's PDF document, or open it in a new tab),
download-book and view-book (the same for the first book including the
page).
enabled = c.Optional(c.Type((bool, CALLABLE)))
¶
Is the button enabled? Always by default; with a preset, when the page has a
PDF document (download, view) or is part of a book (download-book,
view-book).
title = c.Optional(c.Type((str, CALLABLE)))
¶
The button's title (its tooltip with Material for MkDocs, its text with other themes), required without a preset.
icon = c.Optional(c.Type((str, CALLABLE)))
¶
The name of a Material for MkDocs icon (e.g. material-file-download-outline),
required without a preset; other themes don't show icons.
attributes = c.Optional(c.Type((dict, CALLABLE)))
¶
Attributes of the button's link (e.g. href, target, download; class
replaces the theme's classes), added to those of the preset (null removes
one).