Skip to main content

A sphinx theme for generate reveal.js presentation. #sphinxjp

Project description

reveal.js style presentation theme for Sphinx.

Output Sample

output:

http://packages.python.org/sphinxjp.themes.revealjs/

source:

http://packages.python.org/sphinxjp.themes.revealjs/_sources/index.txt

Features

  • provide revealjs directive for reveal.js presetation slide control.

  • provide revealjs theme for render presetation.

Set up

Make environment with pip:

$ pip install sphinxjp.themes.revealjs

Make environment with easy_install:

$ easy_install sphinxjp.themes.revealjs

Convert Usage

setup conf.py with:

extensions = ['sphinxjp.themecore']
html_theme = 'revealjs'
html_use_index = False

and run:

$ make html

Writing Custom Directives

revealjs

This directive crate a slide section for reveal.js.

.. revealjs:: Heads Up

 reveal.js is a framework for easily creating beautiful presentations using HTML. You'll need a browser with support for CSS 3D transforms to see it in its full glory.

Slides can be nested inside of other slides,

.. revealjs::

 .. revealjs:: Vertical Slide1

  vertical slide1

 .. revealjs:: Vertical Slide2

  vertical slide2

 .. revealjs:: Vertical Slide3

  vertical slide3

rv_code

.. revealjs:: Pretty Code

 .. rv_code::

  function linkify( selector ) {
    if( supports3DTransforms ) {

      var nodes = document.querySelectorAll( selector );

      for( var i = 0, len = nodes.length; i < len; i++ ) {
        var node = nodes[i];

        if( !node.className ) ) {
          node.className += ' roll';
        }
      };
    }
  }

rv_small

This directive can be used when writing the text smaller.

.. revealjs:: rv_small smaple

 .. rv_small::

  Created by `tell-k <http://github.com/tell-k>`_ / `@tell-k <http://twitter.com/tell_k>`_

rv_note

This directive can be used when creating some notes for presenter. They’ll be hidden in your presentation, but you can see them if you open the speaker notes window (hit ‘s’ on your keyboard).

.. revealjs:: Heads Up

 reveal.js is a framework for easily creating beautiful presentations using HTML. You'll need a browser with support for CSS 3D transforms to see it in its full glory.

 .. rv_note::

  Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).

Requirement

  • Python 2.7 or later (not support 3.x)

  • Sphinx 1.1.x or later.

  • sphinxjp.themecore 0.1.3 or later

Using

  • Reveal.js

  • jQuery 1.10.2

License

See the LICENSE file for specific terms.

AUTHORS

Sphinx template, css, packaging

  • tell-k <ffk2005 at gmail.com>

History

0.1.0 (Aug 25, 2013)

  • first release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxjp.themes.revealjs-0.1.0.tar.gz (608.7 kB view details)

Uploaded Source

File details

Details for the file sphinxjp.themes.revealjs-0.1.0.tar.gz.

File metadata

File hashes

Hashes for sphinxjp.themes.revealjs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4b1f33ce7d6d18399e19215b8a2e163f2f620f91cc1e1e44d264ac341a5521c5
MD5 1a540044c6baccecb283b3cdffa04e06
BLAKE2b-256 aa1ca84d135243faf9ac0a296acbb680232c2ef1e63103382d93fe0aa2a6bd99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page