Saltar al contenido
MkDocs Primer Theme
Spanish

Referencia

El tema no tiene ninguna API de Python a la que llamar: el paquete que aparece a continuación solo existe para contener las plantillas y el punto de entrada mkdocs.themes. Aquí lo renderiza mkdocstrings, de modo que en cada compilación se pone a prueba cómo trata el tema el marcado de ese plugin.

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