Add support to Bulma css framework in Mkdocs
Project description
Mkdocs Bulma Classes Plugin
Add support to Bulma CSS framework in Mkdocs.
Inspired by mkdocs-bootstrap-tables-plugin.
This plugin inject first in the Markdown of the page and then in the raw html elements produced by Mkdocs from Markdown all necessary classes for styling with Bulma framework. I'll try to follow in the most pedantic way the last CommonMark specification released before supporting other versions.
Table of Contents:
How to Install
Use pip to install the plugin (or use your preferred dep manager for Python, like Poetry for me):
pip install mkdocs-bulma-classes-plugin
How to use
Activate the plugin in your mkdocs.yml
config file:
plugins:
- bulma-classes
If you have no
plugins
entry in your config file yet, you'll likely also want to add thesearch
plugin. MkDocs enables it by default if there is noplugins
entry set.
You doesn't need to do anything. When you build your docs with Mkdocs, after HTML page generation, this pluging inject in your tags the proper CSS class for Bulma. For example, your # Heading 1
will produce the following HTML code:
<h1 id="heading-1">Heading 1</h1>
but enabling this plugin will produce this:
<h1 id="heading-1" class="title is-1">Heading 1</h1>
necessary for Bulma to render this title:
For more info, look at docs.
See also
Take a look at my Bulma Theme for Mkdocs.
Contributing
Contributions are welcome.
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
File details
Details for the file mkdocs_bulma_classes_plugin-1.0.0b7.tar.gz
.
File metadata
- Download URL: mkdocs_bulma_classes_plugin-1.0.0b7.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45aa07b62e7ffb94db411aec6bbc99c73599faaffe4112d999f72f12c12a0f23 |
|
MD5 | 07f12d0951562635a66ce61bf869154a |
|
BLAKE2b-256 | aaa107faa72d4c5f28df5552e0c13f6998f91c9bad52684961ecbc1e0771b05c |
File details
Details for the file mkdocs_bulma_classes_plugin-1.0.0b7-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_bulma_classes_plugin-1.0.0b7-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf5f912cdd668c2d8bda2ba81259a55b7ed4e2fdcccdaace1f9d651c0bae91b8 |
|
MD5 | 1bbdfe9085f6c69212a7573346ddad2c |
|
BLAKE2b-256 | 232cf7fef161fcfa26d1b0bb7dc9b6aa20067def11824a038913f0456719577b |