Перейти к содержимому
MkDocs Primer Theme
Russian

Справочник

У темы нет Python API, который можно вызывать, — пакет ниже существует только для того, чтобы содержать шаблоны и точку входа mkdocs.themes. Здесь он отображается с помощью mkdocstrings, чтобы обработка разметки этого плагина темой проверялась при каждой сборке.

The primer MkDocs theme.

This package is templates, CSS and one small script — there is no Python API to call. It exists so that MkDocs can find the theme through the mkdocs.themes entry point declared in pyproject.toml:

[project.entry-points."mkdocs.themes"]
primer = "mkdocs_primer"

MkDocs resolves that entry point to this package's directory and loads mkdocs_theme.yml from it for the theme's default options. Selecting the theme is therefore all the wiring a site needs:

theme:
  name: primer