CLI tool to generate beautiful standalone HTML presentations from Markdown.
Project description
show-off
Reveal.js is great, but managing presentations with it can be a hassle. You have to drag around a dist/ directory, set up local HTTP servers just to preview your slides, deal with broken relative paths for images, and fight with CSS for custom layouts.
show-off is a simple Python CLI that takes a single Markdown file and compiles it into a completely standalone, beautiful HTML slideshow.
No directories to manage, no CDNs to fetch, and everything—including your images, styles, and diagrams—is packed into a single offline-ready file that you can share and present anywhere.
Dependencies
- Python:
>= 3.8 - Python Libraries:
PyYAML>=6.0(automatically installed via pip) - Diagram Engines:
- PlantUML: Automatically detects if the local
plantumlexecutable is installed in your system path and compiles diagrams 100% offline. If localplantumlis not found, it gracefully falls back to the onlineplantuml.comAPI (which requires an internet connection during compilation). - Mermaid: Completely offline-ready. On the first diagram compilation, the compiler downloads
mermaid.min.jsto~/.show-off/mermaid.min.jsand caches it. It is then inline-embedded directly into your HTML presentation.
- PlantUML: Automatically detects if the local
Installation
Install it directly via pip:
pip install show-off
Or clone the repository and install it locally:
git clone https://github.com/reharish/show-off.git
cd show-off
pip3 install -e . --break-system-packages
Getting Started
To get started quickly, create a plain Markdown file without any complex layouts or images.
1. Create a plain.md file
Write your slide content in a file named plain.md:
---
title: "Simple Presentation"
theme: white
transition: slide
---
# My Presentation 🚀
## Welcome
This is a simple presentation created with show-off.
## Features
- Easy to use
- Plain Markdown
- HTML & CSS styling
2. Compile your presentation
Run the following command to compile your slideshow:
show-off plain.md
This will compile the markdown and output a single, standalone plain.html file in the same directory. Open plain.html directly in your browser to view your presentation!
Advanced Usage
For more advanced slideshows, you can use frontmatter headers, custom layouts, diagrams, and speaker notes.
1. Frontmatter Configuration
You can customize the slideshow using the YAML block at the top of your Markdown file:
---
title: "My Presentation"
theme: dracula # reveal.js theme (dracula, moon, night, solarized, etc.)
transition: slide # transition effect (slide, fade, zoom)
eyeCatchy: true # set to false to fallback to plain reveal.js styling
revealConfig:
controls: true # show navigation arrows
progress: true # show bottom progress bar
slideNumber: true # show slide page numbers
css: | # write inline CSS styles to override anything
.reveal h2 {
color: #38bdf8 !important;
}
---
2. Slide Separators
By default, slides are split automatically by H1 (#) and H2 (##) headers.
Alternatively, you can configure manual horizontal and vertical slide separators in your frontmatter:
slideSeparator: "^---$"
slideSeparatorVertical: "^--$"
3. Custom Layouts
Since the output is compiled to HTML, you can drop inline HTML elements (like flexbox/grid divs) directly into your Markdown for complex multi-column layouts:
## Two Column Layout
<div style="display: flex; gap: 20px;">
<div style="flex: 1; text-align: left; background: rgba(0,0,0,0.02); padding: 20px; border-radius: 10px;">
<h3>Left Column</h3>
<p>Using standard HTML and inline styles, you can create grid layouts easily.</p>
</div>
<div style="flex: 1; text-align: left; background: rgba(0,0,0,0.02); padding: 20px; border-radius: 10px;">
<h3>Right Column</h3>
<p>No complex markdown tricks required.</p>
</div>
</div>
4. Diagrams Support
You can render PlantUML or Mermaid diagrams directly inside your slides using markdown code blocks.
PlantUML Diagram
@startuml
Alice -> Bob: Hello Bob
Bob -> Alice: Hello Alice
@enduml
Mermaid Diagram
graph TD
A[Start] --> B[Process]
B --> C[End]
Mermaid diagrams automatically adapt to your presentation colors (using dynamic brightness detection) to ensure high contrast and readability on both light and dark slides.
5. Speaker Notes
Add speaker notes inside an <aside class="notes"> tag. Press the S key on your keyboard while presenting to open the Speaker View window:
## Slide Title
Slide content here...
<aside class="notes">
Here are some speaker notes. You can see them only in the speaker view window.
</aside>
6. Initializing a Template
Generate a starting presentation template demonstrating layouts, fragments, and styles:
show-off init
This generates slides.md and a sample image inside an assets/ folder in your current directory.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file show_off-1.4.0.tar.gz.
File metadata
- Download URL: show_off-1.4.0.tar.gz
- Upload date:
- Size: 727.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
369d5208f4b88e2d932e68e1b07994c5cd9f30c8cc45159b06f75ce01166b11a
|
|
| MD5 |
cc8f878e6e31fb7c4d86ea3fa2a27174
|
|
| BLAKE2b-256 |
9f45361463605815d6be60507a4ff52468e5fe60c85e304366de3691b0bea463
|
File details
Details for the file show_off-1.4.0-py3-none-any.whl.
File metadata
- Download URL: show_off-1.4.0-py3-none-any.whl
- Upload date:
- Size: 759.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0eeb270058bed2aeee8e6b4e80d0b13c89c04f9a4b6f25d78683faa6e01e987
|
|
| MD5 |
eaeaccd460ed204719da737dccff180c
|
|
| BLAKE2b-256 |
629421c96920523a5666a48da55aabaecd2fa88af855813a07a20381a5268546
|