π A reveal.js cli
Based on reveal.js.
- Easy to setup. No cloning repositories. No template files.
- Markdown files as slides content.
- Sync sliding between clients.
- Auto reload when markdown file changes.
- Speaker view.
- Theme config.
- Inline html.
- Use
\r?\n----\r?\nas horizontal slides separator. - Use
\r?\n---\r?\nas vertical slides separator. - Use
^Note:as speaker notes separator. - Use
<!-- .slide: data-background="#ff0000" -->to customize slide styles. - Use
<!-- .element: style="width: 60%;" -->to customize element styles. - Use
<!-- .element: class="fragment" -->to create fragment.
npx @vivaxy/reveal server --markdown /path/to/presentation.md
Space: NextUp,Down,Left,Right: Navigationk,j,h,l: Navigationf: Full-screens: Show slide noteso: Toggle overview.(Period,b,vor/): Turn screen blackEsc: Escape from full-screen, or toggle overviewalt + Left Click: Toggle zoomp,n: Previous and next
reveal server \
--markdown ./ppt/reveal.md \
--theme solarized \
--highlight-theme solarized-light \
--transition slide \
--port 8080 \
--watch \
--separator '^\r?\n----\r?\n$' \
--separator-vertical '^\r?\n---\r?\n$' \
--separator-notes '^Note:' \
--width 1440 \
--height 900 \
--log-level 2 \
--script 'custom.js'| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--markdown |
string | β | N/A | markdown file |
--theme |
string | β | solarized |
reveal.js theme |
--highlight-theme |
string | β | solarized-light |
highlight.js theme |
--transition |
string | β | slide |
reveal.js transitions styles |
--port |
number | β | 0 |
server port |
--watch |
boolean | β | false |
reload when markdown changed |
--separator |
string | β | ^\r?\n----\r?\n$ |
horizontal slides separator |
--separator-vertical |
string | β | ^\r?\n---\r?\n$ |
vertical slides separator |
--separator-notes |
string | β | ^Note: |
speaker notes separator |
--width |
number | β | 1440 | slide width |
--height |
number | β | 900 | slide height |
--log-level |
number/string | β | 2 |
log output level |
--script |
string | β | '' | insert custom script before head |
Used to print as pdf files.
Add ?print-pdf&showNotes=true, like: http://127.0.0.1:3000/?print-pdf#/.
Press Ctrl/Command + p to open print dialog.
Usually, print-pdf is used with showNotes, like http://127.0.0.1:3000/?print-pdf&showNotes=separate-page#/
Show speakers notes.
Add ?showNotes=true, like: http://127.0.0.1:3000/?showNotes=true#/.
node >= v12
See CHANGELOG.md.
