# RevealPack Documentation
Welcome to the RevealPack documentation. RevealPack is a command-line interface (CLI) tool for managing and building multiple Reveal.js presentations.
## Motivation
RevealPack is more than just a Reveal.js presentation starter; it's a comprehensive framework for creating suites of presentations that share themes and resources, such as a lecture series or a multi-day seminar. RevealPack abstracts much of the slide deck creation process, allowing for complete control over individual slides or groups of slides within each presentation.
With RevealPack, you can:
- Create slides individually or group multiple slides in one file.
- Share raw HTML or Markdown slides with others.
- Create section title slides or decorate the `section` tag with YAML headers.
- Serve your presentation during development with live updating for smart automatic rebuilds of changed files.
## Commands
- [`init`](init.md): Initialize the directory structure.
- [`setup`](setup.md): Set up the environment.
- [`build`](build.md): Build the presentations.
- [`serve`](serve.md): Serve the presentations locally.
- [`package`](package.md): Package the presentation for distribution.
- `docs`: View the documentation.
## Installation
### Requirements
- Python >3.9, (>=3.12 recommended)
### Install RevealPack from PyPI
To install RevealPack, run:
```bash
pip install revealpack
```
_Note: Use the appropriate method for your setup, e.g., `pip3` or `python -m pip...`._
## Workflow
### Initial Setup
1. **Choose a Project Directory**: Select a directory for your project. It is recommended to create a Python virtual environment in your chosen directory (`root`) and install RevealPack there, rather than using a global environment.
2. **Initialize the Project**: Navigate your terminal or command window to the root directory, activate your Python 3 environment, and use the `revealpack init` command to initialize the directory for your presentations.
```bash
revealpack init
```
3. **Modify Configuration**: Customize the `config.json` file for your project.
4. **Setup Development Environment**: Set up the presentation development environment with the `revealpack setup` command.
```bash
revealpack setup
```
### Presentation Development Workflow
- **Build Presentations**: Use `revealpack build` to compile your presentations.
```bash
revealpack build
```
The `revealpack build` command converts slide decks located in the specified source directories into individual presentations, handling everything from copying necessary libraries to compiling themes and generating HTML files. This command processes each subdirectory within the presentation root directory, creating a presentation for each.
**Options**:
- `--root <directory>`: Specifies the root directory for the build. Defaults to the current working directory.
- `--clean`: Performs a clean build by removing all contents of the build directory before starting the build process.
- `--decks <file or string>`: Specifies a comma-separated list of deck names or a path to a file containing deck names to be built. If this option is provided, a clean build is automatically performed.
The build process includes injecting custom styles and scripts, compiling SCSS/SASS themes, managing plugins, and generating a table of contents for the presentations. It ensures that all necessary files are included and properly configured, resulting in fully functional Reveal.js presentations.
- **Serve Presentations Locally**: Use `revealpack serve` to start a local server with live reloading for development.
```bash
revealpack serve
```
- **Package Presentations for Distribution**: Use `revealpack package` to package your presentations into a distributable format.
```bash
revealpack package --target-dir <build_directory> [--root <root_directory>] [--no-build] [--clean] [--decks <file_or_string>]
```
The `revealpack package` command prepares your presentations for distribution by copying the built files to a specified destination directory and setting up the necessary project files, including `package.json`, installer configurations for macOS and Windows, and other required assets.
**Options**:
- `--root <directory>`: Specifies the root directory for packaging. Defaults to the current working directory.
- `--target-dir <directory>`: Specifies the directory where the package will be created. Defaults to the directory specified in `config.json` under `directories.package` or `package_output` if not set.
- `--no-build`: Skips the build step. This is useful if the build has already been done and you only want to package the results.
- `--clean`: Performs a clean build before packaging. This ensures that only fresh files are included in the package.
- `--decks <file or string>`: Specifies a comma-separated list of deck names or a path to a file containing deck names to be built and included in the package. If this option is provided, a clean build is automatically performed.
The packaging process includes generating a `package.json` file, setting up installer configurations for both macOS and Windows, and creating a `.gitignore` file and a GitHub Actions workflow to automate the build and release process. This ensures that your presentations are ready to be packaged into standalone applications.
For example, to package your presentations without rebuilding, you would run:
```bash
revealpack package --target-dir path/to/new/package --no-build
```
## Development
For more detailed information on development, see the [Developer's Guide](https://revealpack.readthedocs.io/en/latest/dev/).
Raw data
{
"_id": null,
"home_page": "https://github.com/Khlick/RevealPack",
"name": "RevealPack",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "CLI, Reveal.js, presentation, slides, slide deck, presentation tools, HTML presentations, automation, package manager, documentation, theming, templating, Python, Markdown, web development, JavaScript, build system",
"author": "Khris Griffis, Ph.D.",
"author_email": "khris.griffis.phd@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/99/70/0ab24c2462f32c8502e3c03dae9618a7005e2fcff10cdcf9486d904cd014/revealpack-1.1.0.tar.gz",
"platform": null,
"description": "# RevealPack Documentation\n\nWelcome to the RevealPack documentation. RevealPack is a command-line interface (CLI) tool for managing and building multiple Reveal.js presentations.\n\n## Motivation\n\nRevealPack is more than just a Reveal.js presentation starter; it's a comprehensive framework for creating suites of presentations that share themes and resources, such as a lecture series or a multi-day seminar. RevealPack abstracts much of the slide deck creation process, allowing for complete control over individual slides or groups of slides within each presentation. \n\nWith RevealPack, you can:\n- Create slides individually or group multiple slides in one file.\n- Share raw HTML or Markdown slides with others.\n- Create section title slides or decorate the `section` tag with YAML headers.\n- Serve your presentation during development with live updating for smart automatic rebuilds of changed files.\n\n## Commands\n\n- [`init`](init.md): Initialize the directory structure.\n- [`setup`](setup.md): Set up the environment.\n- [`build`](build.md): Build the presentations.\n- [`serve`](serve.md): Serve the presentations locally.\n- [`package`](package.md): Package the presentation for distribution.\n- `docs`: View the documentation.\n\n## Installation\n\n### Requirements\n\n- Python >3.9, (>=3.12 recommended)\n\n### Install RevealPack from PyPI\n\nTo install RevealPack, run:\n\n```bash\npip install revealpack\n```\n\n_Note: Use the appropriate method for your setup, e.g., `pip3` or `python -m pip...`._\n\n## Workflow\n\n### Initial Setup\n\n1. **Choose a Project Directory**: Select a directory for your project. It is recommended to create a Python virtual environment in your chosen directory (`root`) and install RevealPack there, rather than using a global environment.\n\n2. **Initialize the Project**: Navigate your terminal or command window to the root directory, activate your Python 3 environment, and use the `revealpack init` command to initialize the directory for your presentations.\n\n```bash\nrevealpack init\n```\n\n3. **Modify Configuration**: Customize the `config.json` file for your project.\n\n4. **Setup Development Environment**: Set up the presentation development environment with the `revealpack setup` command.\n\n```bash\nrevealpack setup\n```\n\n### Presentation Development Workflow\n\n- **Build Presentations**: Use `revealpack build` to compile your presentations.\n\n```bash\nrevealpack build\n```\n\n The `revealpack build` command converts slide decks located in the specified source directories into individual presentations, handling everything from copying necessary libraries to compiling themes and generating HTML files. This command processes each subdirectory within the presentation root directory, creating a presentation for each.\n\n **Options**:\n - `--root <directory>`: Specifies the root directory for the build. Defaults to the current working directory.\n - `--clean`: Performs a clean build by removing all contents of the build directory before starting the build process.\n - `--decks <file or string>`: Specifies a comma-separated list of deck names or a path to a file containing deck names to be built. If this option is provided, a clean build is automatically performed.\n\n The build process includes injecting custom styles and scripts, compiling SCSS/SASS themes, managing plugins, and generating a table of contents for the presentations. It ensures that all necessary files are included and properly configured, resulting in fully functional Reveal.js presentations.\n\n- **Serve Presentations Locally**: Use `revealpack serve` to start a local server with live reloading for development.\n\n```bash\nrevealpack serve\n```\n\n- **Package Presentations for Distribution**: Use `revealpack package` to package your presentations into a distributable format.\n\n```bash\nrevealpack package --target-dir <build_directory> [--root <root_directory>] [--no-build] [--clean] [--decks <file_or_string>]\n```\n\n The `revealpack package` command prepares your presentations for distribution by copying the built files to a specified destination directory and setting up the necessary project files, including `package.json`, installer configurations for macOS and Windows, and other required assets.\n\n **Options**:\n - `--root <directory>`: Specifies the root directory for packaging. Defaults to the current working directory.\n - `--target-dir <directory>`: Specifies the directory where the package will be created. Defaults to the directory specified in `config.json` under `directories.package` or `package_output` if not set.\n - `--no-build`: Skips the build step. This is useful if the build has already been done and you only want to package the results.\n - `--clean`: Performs a clean build before packaging. This ensures that only fresh files are included in the package.\n - `--decks <file or string>`: Specifies a comma-separated list of deck names or a path to a file containing deck names to be built and included in the package. If this option is provided, a clean build is automatically performed.\n\n The packaging process includes generating a `package.json` file, setting up installer configurations for both macOS and Windows, and creating a `.gitignore` file and a GitHub Actions workflow to automate the build and release process. This ensures that your presentations are ready to be packaged into standalone applications.\n\nFor example, to package your presentations without rebuilding, you would run:\n\n```bash\nrevealpack package --target-dir path/to/new/package --no-build\n```\n\n## Development\n\nFor more detailed information on development, see the [Developer's Guide](https://revealpack.readthedocs.io/en/latest/dev/).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A CLI tool for managing Reveal.js presentation packages",
"version": "1.1.0",
"project_urls": {
"Documentation": "https://revealpack.readthedocs.io/en/latest/",
"Homepage": "https://github.com/Khlick/RevealPack",
"Issues": "https://github.com/Khlick/RevealPack/issues",
"Repository": "https://github.com/Khlick/RevealPack"
},
"split_keywords": [
"cli",
" reveal.js",
" presentation",
" slides",
" slide deck",
" presentation tools",
" html presentations",
" automation",
" package manager",
" documentation",
" theming",
" templating",
" python",
" markdown",
" web development",
" javascript",
" build system"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6d7a3b6581d1f63b12a69e52df397b7ac8b46e8ec30d5d1e8c3d86b8f39cdc69",
"md5": "19c4292882c30de2672e7b4046ad261b",
"sha256": "aa14cdd9eb877945cd1f461f8d5ee28dfe8ba5fda96f9728cdf393ad774e95be"
},
"downloads": -1,
"filename": "revealpack-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "19c4292882c30de2672e7b4046ad261b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 35327,
"upload_time": "2024-12-10T05:13:11",
"upload_time_iso_8601": "2024-12-10T05:13:11.213327Z",
"url": "https://files.pythonhosted.org/packages/6d/7a/3b6581d1f63b12a69e52df397b7ac8b46e8ec30d5d1e8c3d86b8f39cdc69/revealpack-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "99700ab24c2462f32c8502e3c03dae9618a7005e2fcff10cdcf9486d904cd014",
"md5": "785f9bae422fda8620f336cf01e7d573",
"sha256": "264fa5c7dd63300ca9c816c5f2f9d74b8d2b81ae7d595ea978e007978fc00d6a"
},
"downloads": -1,
"filename": "revealpack-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "785f9bae422fda8620f336cf01e7d573",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 31868,
"upload_time": "2024-12-10T05:13:13",
"upload_time_iso_8601": "2024-12-10T05:13:13.096022Z",
"url": "https://files.pythonhosted.org/packages/99/70/0ab24c2462f32c8502e3c03dae9618a7005e2fcff10cdcf9486d904cd014/revealpack-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-10 05:13:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Khlick",
"github_project": "RevealPack",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "click",
"specs": []
},
{
"name": "beautifulsoup4",
"specs": []
},
{
"name": "jinja2",
"specs": []
},
{
"name": "pyyaml",
"specs": []
},
{
"name": "requests",
"specs": []
},
{
"name": "watchdog",
"specs": []
},
{
"name": "flask",
"specs": []
},
{
"name": "libsass",
"specs": []
},
{
"name": "mkdocs",
"specs": []
},
{
"name": "mkdocs-material",
"specs": []
},
{
"name": "build",
"specs": []
},
{
"name": "twine",
"specs": []
},
{
"name": "mike",
"specs": []
}
],
"lcname": "revealpack"
}