| .github/workflows | Loading last commit info... | |
| docs | ||
| templates | ||
| test | ||
| .gitignore | ||
| CLAUDE.md | ||
| Makefile | ||
| README.md | ||
| org-slidev.el | ||
| ox-slidev.el |
ox-slidev
ox-slidev exports Org files to Slidev Markdown and adds a small command layer for local preview.
The repository currently contains:
ox-slidev.el: the Org export backendorg-slidev.el: user commands for export, preview, and auto-export
Status
This is an MVP. The core workflow is in place:
- Write slides in Org.
- Export to Slidev Markdown.
- Start
slidevfor live preview.
Requirements
- Emacs 27.1+
- Org 9.5+
- Node.js
slidevavailable onPATH, or configureorg-slidev-slidev-executable
Load
Add the repository to load-path, then require the packages:
(add-to-list 'load-path "/path/to/ox-slidev")
(require 'ox-slidev)
(require 'org-slidev)
Basic usage
Open an Org file and run:
M-x org-slidev-insert-starter
M-x org-slidev-export-to-file
M-x org-slidev-preview
M-x org-slidev-stop-server
If you want automatic re-export on save:
M-x org-slidev-auto-export-mode
Read This First
If you want to start writing, read only these two files:
- docs/slidev-correspondence.md Visible result -> Slidev syntax -> Org syntax.
- docs/walkthrough.md
One real deck from metadata to preview, based on
showcase.org.
Everything else is reference material:
- docs/minimal-authoring.md: stable authoring rules
- docs/mapping.md: full mapping contract
- docs/fixtures.md: sample deck index
Recommended Path
- Plain Org first.
- Stable
ox-slidevsyntax only when it removes repetition. - Advanced Slidev-specific syntax only when the deck clearly benefits.
- Raw
export slidevas the last resort.
Minimal example:
#+TITLE: Demo
#+SLIDEV_THEME: seriph
* Intro
Hello Slidev
* Notes
#+begin_notes
Talk track for this slide.
#+end_notes
* Flow
#+begin_clicks at=2
- one
- two
#+end_clicks
Use advanced syntax sparingly:
- headline property drawers for layout/frontmatter, plus
fragmentandclicksfor repeated Slidev patterns slidev:inline links for occasional componentscomponentor rawexport slidevonly when there is no simpler readable form
Starter deck:
- built-in template: starter.org
- insert command:
M-x org-slidev-insert-starter
Demo deck:
- visible demo build now uses showcase.org
- richer regression/demo coverage with realistic presentation content and a broader set of mapped Slidev features
Development
Run tests with:
make test
Run byte compilation with:
make compile
Run the end-to-end Slidev smoke build with:
make smoke
Build a fixed demo directory you can inspect locally:
make demo-build
make demo-serve
Then open http://127.0.0.1:4173.
The built files are written to test/smoke-dist/.
The test suite covers the export backend, command-layer behavior, and fixture-based regression output.