Skip to main content

A CLI tool for managing Reveal.js presentation packages

Project description

RevealPack

A CLI tool for managing Reveal.js presentation packages.

Commands

  • revealpack init [--destination PATH]: Initialize the file structure and copy config.json and assets/styles to the specified destination.
  • revealpack setup: Setup the environment for building presentations.
  • revealpack build: Build the presentation package.
  • revealpack serve: Serve the presentation for live editing.
  • revealpack package: Package the presentation as an executable.

Usage

  1. Initialize the Project:

    revealpack init --destination /path/to/your/project
    

    This command creates the necessary directory structure and copies the initial configuration and styles files to the specified destination.

  2. Setup the Environment:

    revealpack setup
    

    This command sets up the environment for building Reveal.js presentations. It reads the config.json file, creates necessary directories, downloads and installs Reveal.js packages, checks the theme, and generates the necessary templates for the build step.

  3. Build the Presentation:

    revealpack build
    

    This command builds the presentation package. It compiles the styles, processes the slide files, and generates the final HTML files in the build directory.

  4. Serve the Presentation:

    revealpack serve
    

    This command starts a live server for the current presentations, allowing for real-time editing and viewing.

  5. Package the Presentation:

    revealpack package
    

    This command packages the presentation as an executable for distribution.

Configuration

The main configuration file is config.json. Here are some key configuration options:

  • info: Information about the project (e.g., title, version, authors).
  • directories: Configuration for directory structure used in the project.
  • packages: Configuration for Reveal.js and associated plugins.
  • theme: Path to the custom theme CSS file.
  • reveal_template: Name of the Jinja2 template file for generating the presentation HTML.
  • toc_template: Path to the Jinja2 template file for generating the table of contents HTML.
  • logging: Logging level for setup and build processes.
  • highlight_theme: Path to the highlight.js theme CSS file.
  • custom_scripts: Array of custom JavaScript files to include in the presentation.
  • force_plugin_download: Boolean to force re-download of plugins.
  • reveal_configurations: Configuration options for Reveal.js.

Dependencies

Ensure you have the necessary dependencies installed. These are listed in the requirements.txt file. You can install them using:

pip install -r requirements.txt

Directory Structure

Here is an example of the directory structure after running revealpack init and revealpack setup:

your-project-directory/
├── config.json
├── assets/
│   └── styles/
│       ├── revealpack.scss
│       └── ... (other styles)
├── source/
│   ├── lib/
│   │   └── ... (libraries and assets)
│   ├── decks/
│   │   └── your-presentation/
│   │       ├── slide1.html
│   │       ├── slide2.html
│   │       ├── ...
│   │       └── presentation.json
│   ├── cached/
│   │   └── ... (cached packages)
│   ├── reveal_template.html
│   └── toc_template.html
└── dist/
    └── ... (build output)

Example

To see a complete example and detailed usage, refer to the example.md file.

Documentation

For more detailed documentation on configuration options, slide options, and more, refer to the following files:

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

revealpack-1.0.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

RevealPack-1.0.0-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file revealpack-1.0.0.tar.gz.

File metadata

  • Download URL: revealpack-1.0.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for revealpack-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c5074116be5ff9c211414affa72a7086580bbd78c9a54b2c2536057776043968
MD5 7249fcf7cfc76b65580d43a9d92ea0a2
BLAKE2b-256 3df096c8ae5ee635f8c974b27eafb9ee17dae51e21b5ccaf32550636770c8d32

See more details on using hashes here.

File details

Details for the file RevealPack-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: RevealPack-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for RevealPack-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68eff4e8fc0ec45870fcdb01dfe8c0e276de7adcbb1e366453a89343d6c66883
MD5 ce085d88c0a4d189a5e1bcdd8d1c10ae
BLAKE2b-256 0a60fb9f8a3fc5e21d4ed3ad7a4172119c43bb4a31310406034851a9907be4a2

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