Skip to content

This plugin adds support for Bootstrap accordions, modals, and cards to your MkDocs site.

Notifications You must be signed in to change notification settings

kdkiss/mkdocs-bootstrap-elements-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MkDocs Bootstrap Elements Plugin

This plugin enhances your MkDocs site with Bootstrap elements, allowing you to easily add accordions, modals, and cards using simple Markdown syntax.

Features

  • Accordion support
  • Modal support
  • Card support
  • Easy-to-use Markdown syntax
  • Customizable styles

Installation

Install the plugin using pip:

pip install mkdocs-bootstrap-elements-plugin

Usage

  1. Add the plugin to your mkdocs.yml:
plugins:
  - search
  - bootstrap_elements
  1. Use the custom syntax in your Markdown files:

Accordion

:::accordion Accordion Title
Accordion content goes here.
:::

Modal

:::modal Modal Title
Modal content goes here.
:::

Card

:::card Card Title
Card content goes here.
:::

Customization

You can customize the appearance of the Bootstrap elements by overriding the default CSS. Create a custom CSS file or use the included ones and add it to your mkdocs.yml. The bootstrap_elements.js file will need to be copied into your mkdocs directory for the accordions to work properly.

extra_css:
  - css/bootstrap_elements.css

extra_javascript:
  - js/bootstrap_elements.js

About

This plugin adds support for Bootstrap accordions, modals, and cards to your MkDocs site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages