Skip to content

Reveal.js Presentations

This directory contains reveal.js presentations generated from markdown files using pandoc.

How to Create a New Presentation

  1. Create a markdown file with your presentation content.
  2. Create a YAML configuration file (e.g., presentation.yaml) with the following content:
# yaml for building presentation
input-file: ./path/to/your/markdown/file.md
from: markdown
to: revealjs
output-file: ./path/to/output/file.html
standalone: true
variables:
  revealjs-url: https://unpkg.com/reveal.js@^4
  1. Run pandoc with the configuration file:
cd /home/callumt/Dropbox/Medicine/00_Garden
pandock -d docs/garden/talks/your-presentation-folder/presentation.yaml

Important Notes

  • The revealjs-url variable in the YAML file is crucial to prevent double slashes in URLs.
  • If you encounter any issues with double slashes in the generated HTML files, you can run the fix_reveal_urls.sh script to fix them:
./fix_reveal_urls.sh

Scripts

  • update_yaml_files.sh: Updates all YAML files to include the revealjs-url variable.
  • fix_reveal_urls.sh: Fixes double slashes in reveal.js URLs in HTML files.