Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikzalais/b814ea88bb2c6be59f87305629135939 to your computer and use it in GitHub Desktop.
Save mikzalais/b814ea88bb2c6be59f87305629135939 to your computer and use it in GitHub Desktop.
Using reveal.js as presentation framework for learning resources

inspired by Teaching with open source presentation service Reveal.js

  1. Create a git repository (eg. on github)
  2. Clone it to your desktop _(via ssh)
git clone git@github.com:yourusername/newrepository.git
  1. change into the new directory
cd newrepository/
  1. add reveal.js as submodule and initialize
git submodule add https://github.com/hakimel/reveal.js revealjs
git submodule update --init --recursive
  1. change into the directory of the revealjs submodule and check that initialisation was successfull
cd revealjs/
git log
cd ..

(git log should show the commit messages of the original reveal.js repository)

  1. commit the addition of the submdule and push it upstream
git commit -m "added reveal.js as submodule"
git push
  1. copy the original presentation "start-file" from the submodule to the main repository
cp revealjs/index.html .
  1. edit index.html - add "revealjs" at the start of all relevant paths (css, ja, lib, plugin)
  2. commit the addition of the presentation "start-file" and push it upstream
git commit -m "adding file for presentation/content"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment