Ko-fi button is a simple plugin that let's you add a Ko-fi button with markdown.
Project description
MkDocs Ko-fi Button Plugin
An mkdocs plugin that let's you easily add a Ko-fi buttons with markdown
The plugin looks for jinja style tags like {{ko-fi}}
and replaces it with a Ko-fi button. It is possible to configure the text and color of the button.
Setup
Install the plugin using pip:
pip install mkdocs-ko-fi-button-plugin
Activate the plugin in mkdocs.yml
:
plugins:
- search
- ko-fi-button
Config
text
- The text on the Ko-fi button. Default: "Support Me on Ko-fi".color
- The color of the button in hex format. Default: #29abe0id
- Your Ko-fi ID. Can be found on your Ko-fi profile. Mandatory configuration.
For example:
plugins:
- search
- ko-fi-button:
text: 'My cool text'
color: '#547884'
id: 'my_id'
Advanced config
In case the Ko-fi javascript is changed on the server side it is possible to configure the path and function calls. This will make it possible to still be able to get a working Ko-fi button widget until this plugin has been updated.
javascript_path
- The relative path to the javascript from https://ko-fi.com/. Default: "widgets/widget_2.js"javascript_f1
- The init function. Default: "kofiwidget2.init"javascript_f2
- The draw function. Default: "kofiwidget2.draw"
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
Built Distribution
Close
Hashes for mkdocs-ko-fi-button-plugin-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da8f862d1ca2863c0cd15baaf0b1b0a975bddd6d2f2263e582435dd2c11a167d |
|
MD5 | 510ed60902f6e626a8db0a2e3176999f |
|
BLAKE2b-256 | 473a042b70e7d0e8ebd08ccc7def4d7676b1b582d137d57ea48ab8a2b9e39858 |
Close
Hashes for mkdocs_ko_fi_button_plugin-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d4be67fed7f543e90f832d6f9b322632c8f72b3f12e6bacfcec4b78a5f5b62d |
|
MD5 | c257667aecedc0d8af19d05d471ae83e |
|
BLAKE2b-256 | 125f8cd5062269f1b028d40c37cb5b06132ea30bc85ac1e914f70c791bc7a7d0 |