Skip to content

Instantly share code, notes, and snippets.

@willfurnass
Created June 1, 2017 11:21
Show Gist options
  • Save willfurnass/1b151bcb4da72900325fb6de222a830c to your computer and use it in GitHub Desktop.
Save willfurnass/1b151bcb4da72900325fb6de222a830c to your computer and use it in GitHub Desktop.
Separating Reveal.js from your presentation content using git subrepo

Initialise a git repository:

cd somedir
git init

Install git subrepo if you haven't done so already:

https://github.com/ingydotnet/git-subrepo#installation

Add reveal.js as a subrepo:

git subrepo clone https://github.com/hakimel/reveal.js.git reveal.js -b master 

Copy the index HTML page from the Reveal.js subtree to the current directory, fixing up relative links in the file along the way:

sed  's/\(css\|lib\|js\|plugin\)\//reveal.js\/\1\//' reveal.js/index.html > index.html 

Check that you can view your presentation:

python3 -m http.server -b 127.0.0.1 8080
firefox http://127.0.0.1:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment