Skip to main content

An MkDocs plugin to process configuration items with Jinja2

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_jconfig_plugin-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_jconfig_plugin-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_jconfig_plugin-0.1.1.tar.gz.

File metadata

  • Download URL: mkdocs_jconfig_plugin-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for mkdocs_jconfig_plugin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 76548949683b666820d58d15220605fc2c4766aeb45f4f40dc13df71fe40e808
MD5 6dcb47556f60d8d49b0f9380c66b4098
BLAKE2b-256 ff6dcbb0d4723579374b6e8d50e4fe8a4b35bb5002c24d23902fe521bd151d89

See more details on using hashes here.

File details

Details for the file mkdocs_jconfig_plugin-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_jconfig_plugin-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c88626521c448bd883793ef88a9638dc4039a9d9e14b4080eefe555e6f31d78c
MD5 56e914dac6af3520cdf1a521946925b5
BLAKE2b-256 66d57c242e5317bb18eea0b877a91a92b006468e175699cdf840aee2d49b0890

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page