A plugin for MkDocs that enables beautiful slide presentations within your documentation.
pip install mkdocs-slides- Add the plugin to your
mkdocs.yml:
plugins:
- slides- Create a slide deck in your markdown:
```slides
title: My Presentation
url_stub: my-pres
nav:
- slides/presentation/*.mdYou can customize the plugin behavior in your mkdocs.yml:
plugins:
- slides:
font_size: "28px" # Default font size for slides
template: "layouts/slide_template.html" # Custom slide templateTo use a custom template:
- Create a
layoutsdirectory in your docs root - Copy the default template as a starting point:
mkdir -p layouts
cp $(python -c "import mkdocs_slides; import os; print(os.path.join(os.path.dirname(mkdocs_slides.__file__), 'templates', 'slide_template.html'))") layouts/slide_template.html- Modify the template to suit your needs
- Reference it in your
mkdocs.yml
For full documentation, visit the plugin documentation.
This project is licensed under the MIT License - see the LICENSE file for details.