Skip to main content

A reveal.js helper tool

Project description

Deveal is an helper tool for using the marvelous reveal.js presentation framework.

It provides the ability to

  • create a new presentation

  • split presentation into multiple files

  • easily parameterize the presentation (title, theme, custom css, …)

  • build presentation into a single index.html file

  • watch for presentation updates while editing the source files

Deveal is developped in Python 3 and mainly relies on the wonderful Jinja2, PyYaml and watchdog packages.

Installation

Use the pip installation tool

pip install deveal

The dependencies will be automatically installed.

Usage

Deveal is a command line tool. It must be used from within a terminal.

Run the following command to get help

deveal --help

deveal new

The deveal new command creates a new presentation. As it creates the presentation directory itself, the command must be run in the upper directory where the new presentation will be created

(example below for creating a new presentation named “mynewpresent”)

deveal new mynewpresent

This command creates the minimal required files in the presentation directory

  • the deveal-index.html template file

  • the deveal.yaml configuration file

A deveal.css file for optional custom styles and a sections directory with an example presentation are also created

The deveal-index.html file is the template for the presentation. It a Jinja2 template rendered throught the deveal build command, using the variables contained in the deveal.yaml file. Unless you want to modify the reveal.js configuration, you should not have to modify this template.

The deveal.yaml file contains the configuration for the presentation. It should contains the folling expected variables:

  • reveal_path : The path or URL to the installed reveal.js framework (”https://cdn.jsdelivr.net/npm/reveal.js@3.6.0” if not defined)

  • reveal_theme : The theme to use for (“black” if not defined)

  • content_files : The ordered array of files containing the parts of the presentation

  • custom_css : The path to the custom css file if any

Any other variable defined in this file is made available as a Jinja2 variable for the template file. This may be useful if you plan to customize the template.

deveal build

The deveal build command builds the presentation as a single index.html file using the deveal-index.html and deveal.yaml files

deveal build

The obtained index.html file is the presentation itself that can be open throught a web browser.

deveal watch

The deveal watch command watches for files changes in the presentation directory and subdirectories. If a change is detected, a build is automatically triggered. Type Ctrl+C to stop watching.

deveal watch

Tips

  • For an easier writing and maintenance of the presentation, it is encouraged to split the presentation into multiple files (for example title.html, part1.html, part2.html, …)

  • it is encouraged to put the graphics used in the presentation in a dedicated subdirectory (named “graphics” for example)

Authors

Deveal is developed by Jean-Christophe Fabre

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

deveal-1.1.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

deveal-1.1.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file deveal-1.1.1.tar.gz.

File metadata

  • Download URL: deveal-1.1.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for deveal-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fb4d87cff0e7016abc8e6f9e535ac9cca37d864ed4a3cb0bd291fb0596d1b662
MD5 e81a583b1008374a78f4ed2dae595218
BLAKE2b-256 8a9ec7e0c20844fa558aa869d5093ae40dc8a7798613085f84a1fc82f55108e7

See more details on using hashes here.

File details

Details for the file deveal-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: deveal-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for deveal-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc295ba9b97693c3638f5e1a0a1041fbe94349644fe8e7df31a59af3ee41607e
MD5 6990fb9cf46aa8c8703dd0aff7c14a99
BLAKE2b-256 eb2a425b0156adcd13e9e8bae99d60b771d1fe8938e6630d2ea7597c78914ebd

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