Add badges to your mkdocs page
Project description
mkdocs-badges
This package allows you to add badges to your mkdocs site.
Documentation
This README is just a short intro to the package.
For a quick start and detailed information please see the documentation.
The documentation is also available in the docs
folder of the source code and can be built localy with MkDocs.
Testing
The documentation also serves as a test of the plugin.
A hidden test page is available at /test
.
Build the documentation with the latest source code:
pip install . && mkdocs serve -t <theme>
Themes that sould work are mkdocs
, readthedocs
, and material
.
Unit tests
The github repository now contains some unit test. You can run them against the current code with the following command (issued in the root directory of the repository):
pip install . && python -m unittest
Notable changes
0.4.0
- Now requires MkDocs 1.4 or newer
- Updated the layout rules for badges. This should better handle oversized contents (like images or very long texts).
Version 0.3.4
- Added single element badges
Version 0.3.3
- Added tags badges
Version 0.3.1
- Better error handling, fixed a crash
- Started adding unit tests
Version 0.3.0
- Breaking changes to the badges formats. See the migration guide
- Added support for reference links
Version 0.2.0
- Each badge now needs to be the only thing on its line
- Badges inside code blocks are no longer parsed
- The
|end
at the end of custom badges is no longer neccessary. A simple|
is enough. This shorter form is recommended from now on. - Documentation is now in the
docs
folder in the form of a mkdocs website - Added link badges
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
Hashes for mkdocs_badges-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bf6e544b7c9f2a34bdb62266719b5f8e1cd362e81a5e7e707529ada18d6ed03 |
|
MD5 | 59cc180147abb97ff4bc3e81b17bfcbd |
|
BLAKE2b-256 | b82120e6d8c1fc91b8d2c4cf5bfcd6f259f5968abf1528603b9ae0b3403f1e77 |