composer create-project leadingfellows/revealjs_starterkit -s dev -nv INSTALLATION_DIRECTORY
./serve.sh
./serve.sh --port=8222
Edit the files in subdirectory "custom".
this file must contain HTML section tags, each section being a reveal.js slide.
<section>
<h2>slide 1</h2>
</section>
<section>
<h2>slide 2</h2>
</section>
..
You can include sections in other files like this:
** custom/index.html **
<section>
<h2>slide 1</h2>
</section>
<section data-external-replace="included.html"> </section>
** custom/included.html **
<section>
<h2>slide 2</h2>
</section>
The content of this file will be inserted in the body of the main document. by default we put in there the header and footer
<div id="hidden" style="display:none;">
<div id="header">
<div id="header-left">
<div style="margin-left: 20px; margin-bottom: 20px; font-size: 0.5em;"/>
reveal.js starterkit
</div>
</div>
<div id="header-right">
<div style="margin-left: 20px; margin-bottom: 20px; font-size: 0.5em;"/>
reveal.js starterkit
</div>
</div>
<div id="footer-left">
<div style="margin-left: 20px; margin-bottom: 20px; font-size: 0.5em;"/>
reveal.js starterkit
</div>
</div>
</div>
</div>
this file contains your custom css code
this file contains your custom js code. you can use it to update the document title
//inlined code
console.log("custom javascript code aded to reveal.js");
$( document ).ready(function() {
console.log("set document title");
$(this).attr("title", "Reveal.js starterkit TITLE");
});
clone the repository or use the following command to create the project without installing packages
composer create-project leadingfellows/revealjs_starterkit -s dev -nv --no-install INSTALLATION_DIRECTORY
composer install --no-scripts
cd reveal.js && npm install
composer run relink
npm start -- --port=8222