Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.15 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.15 KB

mkdocs-jconfig-plugin

This MkDocs plugin allows to process configuration variables using Jinja templates.

Installation

Install the package with pip:

pip install mkdocs-jconfig-plugin

Activate the plugin in mkdocs.yml:

plugins:
  - search
  - calendar
  - jconfig

Configuration

The plugin can be configured in the plugins section of mkdocs.yml as follows:

plugins:
  - search
  - calendar
  - jconfig:
      items:
        - copyright

The plugin supports the following configuration options:

Option Description
items The configuration variables to process. Defaults to [].

Typical usage

This plugin is useful when you want to automatically adjust the year in the copyright:

copyright: copyright {{ cal.today.year }} The Authors

plugins:
  - search
  - calendar
  - jconfig:
      items:
        - copyright

Note that you need to activate the calendar plugin for this to work.