MkDocs Plugin
Project description
MkDocs-htmlextradata-plugin
Плагин MkDocs, который вводит дополнительную переменную extradata
в html-шаблон. Данная переменная попадает в контекст страницы, если файл .yml называется так же ка странца .md
Установка
Установите пакет с помощью pip или poetry:
pip install htmlextradata
or
poetry add htmlextradata
Включите плагин в вашем "mkdocs.yml`:
plugins:
- search
- htmlextradata
или
plugins:
- search
- htmlextradata:
data: path/to/datafiles
По умолчанию он будет искать в папке, где хранится ваш mkdocs.yml, и в папке docs другую папку с именем _extradata (т.е. ./docs/_extradata/mtrs.yaml), доступную в шаблоне как {{ extradata }}, если есть страница с таким именем.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
htmlextradata-0.1.4.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for htmlextradata-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e2affff76c2c15b5e4e1da9dc5df18145d04bf6393012ec6028051a793f0af |
|
MD5 | 6d93c43477a16304015ae4131c4a5bd8 |
|
BLAKE2b-256 | 4f89995d7eab0716677be4aff64be0e4e608d55a5c298f788c122ff7ba97fdda |