DjebbZ / revealjs-docpad

Create Reveal.js presentations easily with DocPad.
15 stars 8 forks source link

Reveal.js skeleton for DocPad

Create reveal.js presentations using DocPad.

Description

Gives you everything to directly start writing your reveal.js slides, with an optional menu to navigate between them.

Getting Started

  1. Install DocPad

  2. Clone the project and run the server

    git clone git://github.com/DjebbZ/revealjs-docpad.git
    cd revealjs.docpad
    npm install
    docpad run
  3. Open http://localhost:9778/

  4. Start hacking away by modifying the src directory

Documentation

File structure

Usage

Each slide must have these metadata :

This skeleton can generate a menu for you to easily navigate through your slide. It's activated by default, in the docpad.coffee configuration file, at generateSlidesMenu. Disable it by using false instead. If you use this feature, add the following metadata :

htmlId: '<someId>' must be a unique and valid HTML id for each slide.

Add as many slide files as you need. The content is written in Markdown.

If you want to use vertical slides, wrap each vertical slide content in a <section> tag :

``` 
<section>
    Vertical Slide 1
</section>
<section>
    Vertical Slide 2
</section>
```

Customize the site metadata in docpad.coffee.

Change the Reveal.js options in src/layouts/default.html.coffee.

Known issues

Thanks

License

This skeleton is made "public domain" using the Creative Commons Zero, as such before you publish your website you should place your desired license here and within the LICENSE.md file.

If you are wanting to open-source your website, we suggest using the Creative Commons Attribution License for content and the MIT License for code. In which case you'd probably want to use the following as your license:

Unless stated otherwise, all content is licensed under the [Creative Commons Attribution License](http://creativecommons.org/licenses/by/3.0/) and code licensed under the [MIT License](http://creativecommons.org/licenses/MIT/), © [Your Name](http://your.website)

If you are wanting to close-source your website, we'd suggest using the following:

Copyright [Your Name](http://your.website). All rights reserved.

Other included things such as themes and libraries are likely already licensed by their own invidual licenses, so be sure to respect their licenses too.