diff --git a/examples/build-index.sh b/examples/build-index.sh new file mode 100755 index 00000000000..e2dbf766abd --- /dev/null +++ b/examples/build-index.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +rm index.html + +echo "<h1>reveal.js example decks</h1><ul>" >> index.html +for deck in `ls *.html`; do + name="${deck%.html}" + echo "<li><a href='$deck'>$name</a></li>" >> index.html +done +echo "</ul>" >> index.html diff --git a/examples/index.html b/examples/index.html new file mode 100644 index 00000000000..19b49a346d3 --- /dev/null +++ b/examples/index.html @@ -0,0 +1,12 @@ +<h1>reveal.js example decks</h1><ul> +<li><a href='auto-animate.html'>auto-animate</a></li> +<li><a href='backgrounds.html'>backgrounds</a></li> +<li><a href='barebones.html'>barebones</a></li> +<li><a href='index.html'>index</a></li> +<li><a href='layout-helpers.html'>layout-helpers</a></li> +<li><a href='markdown.html'>markdown</a></li> +<li><a href='math.html'>math</a></li> +<li><a href='media.html'>media</a></li> +<li><a href='multiple-presentations.html'>multiple-presentations</a></li> +<li><a href='transitions.html'>transitions</a></li> +</ul> diff --git a/index.html b/index.html index 2097df32e21..ea5ce1be18e 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,13 @@ <body> <div class="reveal"> <div class="slides"> - <section>Slide 1</section> + <section> + <h1>Slide 1</h1> + <ol> + <li><a href="examples/">Examples</a></li> + <li><a href="https://revealjs.com/">revealjs.com</a></li> + </ol> + </section> <section>Slide 2</section> </div> </div>