MkDocs Kuma Uptime Badge Plugin
A tiny MkDocs plugin that converts shorthand placeholders to full Uptime Kuma badge links during the build.
Installation
Using pip:
pip install mkdocs-kuma-uptime-badge
Using Poetry:
poetry add mkdocs-kuma-uptime-badge
For development:
# Clone the repository
git clone https://github.com/culturepulse/mkdocs-kuma-uptime-badge.git
cd mkdocs-kuma-uptime-badge
# Install with Poetry (recommended)
poetry install
# Or with pip
pip install -e .
Usage
- Add the plugin to your
mkdocs.yml:
plugins:
- search
- kuma-uptime-badge:
base_url: https://your-kuma-instance.example.com
- In your Markdown files, use the shorthand syntax:
{{uptime id=1}} # Basic status badge
{{uptime id=2 type=uptime hours=24}} # Uptime badge for the last 24 hours
{{uptime id=3 type=ping hours=720 label="30" labelSuffix="d"}} # Ping badge with custom label
These will be converted to full Markdown image links during the build:



Syntax
The general syntax for the shorthand is:
{{uptime id=<monitorID> [type=<badgeType>] [hours=<int>] [key=value ...]}}
Where:
id(required): The monitor ID from Uptime Kumatype(optional): The badge type, one of:status(default)uptimepingavg-responsecert-expresponse
hours(optional): Duration in hours, only used foruptime,ping,avg-response, andresponsebadge types- Additional key-value pairs: Any other parameters will be added as query string parameters to the badge URL
Examples
Status Badge
{{uptime id=1}}
{{uptime id=1 type=status}}
{{uptime id=1 upLabel="Online" downLabel="Offline"}}
{{uptime id=1 upColor="green" downColor="red"}}
Uptime Badge
{{uptime id=1 type=uptime hours=24}}
{{uptime id=1 type=uptime hours=720 label="30" labelSuffix="d"}}
{{uptime id=1 type=uptime hours=24 color="blue"}}
Ping Badge
{{uptime id=1 type=ping hours=24}}
{{uptime id=1 type=ping hours=24 labelPrefix="Average" label="Ping" labelSuffix=""}}
Certificate Expiry Badge
{{uptime id=1 type=cert-exp}}
{{uptime id=1 type=cert-exp warnDays=14 downDays=7}}
Badge Styles
{{uptime id=1 style=flat}} # Default
{{uptime id=1 style=flat-square}}
{{uptime id=1 style=plastic}}
{{uptime id=1 style=for-the-badge}}
{{uptime id=1 style=social}}
Configuration
The plugin supports the following configuration options:
base_url: The base URL of your Uptime Kuma instance (default:https://kuma.intra)
Made with ❤️ and ☕️ by CulturePulse development team
Metadata
Release files for mkdocs-kuma-uptime-badge 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs_kuma_uptime_badge-0.1.0.tar.gz | 3.2 kB | With provenance | Details for mkdocs_kuma_uptime_badge-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_kuma_uptime_badge-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_kuma_uptime_badge-0.1.0-py3-none-any.whl |
Total release size: 7.5 kB
Release files / mkdocs_kuma_uptime_badge-0.1.0.tar.gz
| Download URL | mkdocs_kuma_uptime_badge-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c37245015923b2c105c1c2dacaec800cc86c1b78dddf2192cbb5a9591f52e3f4
|
|
BLAKE2b-256 checksum How to use checksums |
81722e5e93846549022cac2266c4cb026fb9999b61f07fc50e200b28b9521d60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 14, 2025.
Transparency logRelease files / mkdocs_kuma_uptime_badge-0.1.0-py3-none-any.whl
| Download URL | mkdocs_kuma_uptime_badge-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92d289fd98123b300b57fba75e4939665c9f731c891b6bd386005ea0428c80bb
|
|
BLAKE2b-256 checksum How to use checksums |
4b6deaf30fb3c4494cbdb2c1bbcadcfb25b1c36fdfb9f2b1939fa7045a127940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 14, 2025.
Transparency logSecurity for mkdocs-kuma-uptime-badge 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mkdocs_kuma_uptime_badge-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 14, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.