Skip to content

Configuration

mkdocs_exporter.config.Config

The plugin's configuration.

Source code in mkdocs_exporter/config.py
38
39
40
41
42
43
44
45
46
47
48
49
50
51
class Config(BaseConfig):
  """The plugin's configuration."""

  theme = c.Optional(c.Theme(default=None))
  """Override the theme used by your MkDocs instance."""

  formats = c.SubConfig(FormatsConfig)
  """The formats to generate."""

  buttons = c.ListOfItems(c.SubConfig(ButtonConfig), default=[])
  """The buttons to add."""

  logging = c.SubConfig(LoggingConfig)
  """The logging configuration."""

buttons = c.ListOfItems(c.SubConfig(ButtonConfig), default=[])

The buttons to add.

formats = c.SubConfig(FormatsConfig)

The formats to generate.

logging = c.SubConfig(LoggingConfig)

The logging configuration.

theme = c.Optional(c.Theme(default=None))

Override the theme used by your MkDocs instance.

mkdocs_exporter.config.ButtonConfig

The configuration of a button.

Source code in mkdocs_exporter/config.py
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class ButtonConfig(BaseConfig):
  """The configuration of a button."""

  enabled = c.Type((bool, Callable), default=True)
  """Is the button enabled?"""

  title = c.Type((str, Callable))
  """The button's title."""

  icon = c.Type((str, Callable))
  """The button's icon (typically, an SVG element)."""

  attributes = c.Type((dict, Callable), default={})
  """Some extra attributes to add to the button."""

attributes = c.Type((dict, Callable), default={})

Some extra attributes to add to the button.

enabled = c.Type((bool, Callable), default=True)

Is the button enabled?

icon = c.Type((str, Callable))

The button's icon (typically, an SVG element).

title = c.Type((str, Callable))

The button's title.

mkdocs_exporter.config.FormatsConfig

Source code in mkdocs_exporter/config.py
 9
10
11
12
class FormatsConfig(BaseConfig):

  pdf = c.SubConfig(PDFFormatConfig)
  """The PDF format configuration."""

pdf = c.SubConfig(PDFFormatConfig)

The PDF format configuration.

mkdocs_exporter.config.LoggingConfig

The logging configuration.

Source code in mkdocs_exporter/config.py
31
32
33
34
35
class LoggingConfig(BaseConfig):
  """The logging configuration."""

  level = c.Choice(['debug', 'info', 'warning', 'error', 'critical'], default='info')
  """The log level."""

level = c.Choice(['debug', 'info', 'warning', 'error', 'critical'], default='info')

The log level.