Skip to content

hackbrightacademy/sphinxcontrib-revealjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sphinxcontrib-revealjs

This is a work in progress.

Features

Use the same *.rst file to generate slides

It's amazing!

Sections automatically create slide breaks

Sections level 1–3 automatically create slide breaks.

There's no way to override this behavior (but we're working on it!).

Manually add slide breaks

Add a Sphinx transition (---) to break a slide:

Slide one

---

Slide two!

You can also disable this feature and use the .. newslide:: directive instead:

Slide one

.. newslide::

Slide two!

Animate content with RevealJS fragment

Make list items appear one at a time:

.. incr:: nest

   - Appears first
     - Appears second
   - Appears third

If you want nested items to appear at the same time as their parent, use item:

.. incr:: item

   - Appears first
     - Appears first too
   - Appears second

Or make entire paragraphs appear one at a time:

Initial contents of the slide.

.. incr:: one

   Then this paragraph and image will appear!

   .. image:: hello.png

Speaker notes

Use .. speaker:: to add speaker notes! During the presentation, press s to open RevealJS's speaker view.

Configuration

revealjs_theme

Name of the Sphinx theme to use.

This is not how you override the RevealJS theme. To do that, use revealjs_theme_options instead.

Defaults to "revealjs".

revealjs_theme_options["revealjs_theme"]

Use this to set the RevealJS theme.

Defaults to "black".

revealjs_break_on_transition

Set to False, if you don't want slides to break on transitions (---).

Defaults to True.

revealjs_newslides_inherit_titles

By default, the .. newslide:: directive will copy the title of its parent section. If you don't want that, set this to False.

Defaults to True.

Directives

  • interslide
  • newslide
  • speaker
  • incremental

Development

Depend on Revealjs (git submodule). See https://git-scm.com/book/en/v2/Git-Tools-Submodules

Clone this repo w/ submodules
$ git clone --recurse-submodules <url for this repo>
Pull upstream changes
$ git submodule update --remote lib/revealjs

About

Turn Sphinx docs ➡️ slide decks. Made with reveal.js ❤️

Resources

License

Stars

Watchers

Forks

Packages

No packages published