Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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:

Add reveal.js as a subrepo:

git subrepo clone 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 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment