I'm new to all this web development things (I only know to do things in local). I did a presentation using reveal.js and I would like to be able to see it online (on my phone for example). I know that I should host it but I don't really know how to do it. I try to do it using slide (the online editor of reveal.js), but I can't add script and this kind of stuff (I'm using highcharts inside my presentation). If you could give me some advice, procedures it will be nice.
Create a new repository on GitHub
Let’s call it reveal_HelloWorld
Clone it on your local machine:
git clone [email protected]:yourusername/reveal_HelloWorld.git
Clone reveal.js on your local machine:
git clone [email protected]:hakimel/reveal.js.git
Move the content of reveal.js
folder into the reveal_HelloWorld
folder
Modify the index.html
file
Create and switch to a new branch
git checkout -b 'gh-pages'
Push
git push
From the GitHub website repo settings:
You are done.
The slides are published at yourusername.github.io/reveal_HelloWorld
.
Source: How to deploy Reveal.js presentations on Github
Screencast: https://vimeo.com/241196662
Credit: Angelo Basile
Nowadays (October, 2016) you don't need to create a specific branch (gh-pages) anymore. Create your repo then select 'Settings -> Options'. There is a 'GitHub Pages' panel where you can set any branch to be published as web pages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With