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.3.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for htmlextradata-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e948385468ee274601bb01bb58a1cd0290c282eca66b9638d53f4dc053ac73d1 |
|
MD5 | 423a02fb4cbb87d369d190dcf05d94d0 |
|
BLAKE2b-256 | af5c4d9c48dfd3935360b7583fdf0a8ce25dd22192b566ca77c9236b21f9f12a |