mkdocs-revealjs
Embed one or more Reveal.js presentations directly inside MkDocs Markdown pages, with light/dark theme synchronization and native integration with other MkDocs plugins.
Documentation & live demos: https://rod2ik.gitlab.io/mkdocs-revealjs/
Modes
A page-wide presentation uses the canonical mode:
---
revealjs:
mode: diapo
---
A Reveal.js evaluation powered by mkdocs-superquiz uses:
---
revealjs:
mode: diapo.eval
---
There is intentionally no legacy presentation: syntax in 0.10.0.
Accepted mode aliases
| Canonical | Accepted aliases |
|---|---|
diapo |
diaporama, presentation, diapo.presentation, diapo.normal |
diapo.eval |
eval, evaluation, exam, examen, assessment, diapo.evaluation, diapo.exam, diapo.examen, diapo.assessment |
Documentation uses only the canonical forms after this table.
Multiple decks in one Markdown page
Use explicit deck blocks. Five or more = are accepted; the canonical form is:
Ordinary MkDocs content.
=====
# Slide 1
---
# Slide 2
=====/
Ordinary MkDocs content again.
Each block may start with local front matter:
=====
---
mode: diapo.eval
id: algebra-test
revealjs:
transition: fade
superquiz:
randomize: all
---
...slides...
=====/
id is optional. Missing identifiers are generated as diapo1, diapo2, eval1, eval2, ...
Optional Markdown imports with mkdocs-macros-plugin
Install the optional extra and enable macros before superquiz/revealjs:
pip install "mkdocs-revealjs[macros]"
plugins:
- macros
- superquiz
- revealjs
Then import all explicit decks from another Markdown file at the exact insertion point:
{{ diapo("slides/demo.md") }}
Alias:
{{ include_diapo("slides/demo.md") }}
Select one explicitly named deck with a fragment:
{{ diapo("slides/demo.md#algebra-test") }}
Relative paths are resolved from the current Markdown source file. A leading / means the MkDocs docs_dir root, never the operating-system root. Imports may not escape docs_dir.
Configuration scopes
Reveal.js values resolve from least to most local:
built-in defaults < mkdocs.yml < page front matter < deck-local front matter
SuperQuiz adds its own per-type and per-question layers. An explicit deck is a scope: a diapo.eval deck owns its own evaluation session; an explicit normal diapo deck keeps its questions embedded even inside a page-level SuperQuiz evaluation.
Highlights
- multiple independent Reveal.js decks per page;
- horizontal and vertical slides;
- Material light/dark synchronization, including Android Reveal Scroll View backgrounds;
- Reveal.js, Highlight.js and Mermaid light/dark theming;
- server-side compatibility islands for MkDocs extensions;
- native
mkdocs-superquiz,mkdocs-maths-admonitions, XTables and TikZJax integration; - fragments, notes, auto-animate and Reveal.js options;
- optional
diapo()/include_diapo()macros; diapo.evalsessions with global SuperQuiz validation, scoring, timer and question navigation.
Development
yarn dev
yarn dev:lan
yarn build
yarn build:full
yarn bfc
yarn dev:lan binds MkDocs to 0.0.0.0:8000 for testing from a real phone on the same LAN.
License
GNU GPL-3.0-or-later.
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 mkdocs_revealjs-0.10.1.tar.gz.
File metadata
- Download URL: mkdocs_revealjs-0.10.1.tar.gz
- Upload date:
- Size: 63.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37189b9f706a9a2770ca6fd3fb78f301e5c77cf5b9fe241e71d49f0d5972f4bc
|
|
| MD5 |
f02dbf7336c975f5858719f47b99fa8e
|
|
| BLAKE2b-256 |
d9fb34d1c38b669b67d5346f84979fd904a1fb169a3af98fe8315ce364875c7d
|
File details
Details for the file mkdocs_revealjs-0.10.1-py3-none-any.whl.
File metadata
- Download URL: mkdocs_revealjs-0.10.1-py3-none-any.whl
- Upload date:
- Size: 54.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f092dad53678c9ebc4635ccb8ccb477593c75df21ba0e3e943b7d6ac148ddb7
|
|
| MD5 |
65dee409c1311fb9e1914f754ce911b2
|
|
| BLAKE2b-256 |
e54fd60ededa5a131039a534825637beda320866788b4a3ee3fce52bacb1da2f
|