rst2reveal

rst2reveal is a docutils writer that allows you to write your presentations using rst and convert them to reveal-js with a simple:

python3 rst2reveal.py input.rst > output.html

Try it on this demo!

Features

rst2reveal supports both regular slides and vertical slides.

Try pressing down!

Vertical slides

rst2reveal supports vertical slides -- just use a different header level in your rst file.

(Only two header levels are supported.)

Keep going down!

Lists

  • Lists
  • are
  • supported
  1. Numbered
  2. lists
  3. too

Keep going down!

Code

You can also show snippets of code:

# here's a factorial function in Python 3

def factorial(n):
    """Calculate the factorial recursively"""
    if n == 0:
        return 1
    else:
        return n * factorial(n-1)
-- and here's the same in in Haskell

factorial 0 = 1
factorial n = n * fac (n-1)

Keep going down!

Images

Images are supported too:

http://www.python.org/community/logos/python-powered-w-200x80.png

Great, now go right.

Dependencies

You will need:

  • Python 3
  • docutils
  • reveal-js (rst2reveal will generate only the main html file)

The End

Clone it and improve it!