Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-reveal

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-reveal

A Reveal.js generator for Yeoman

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
53
increased by194.44%
Maintainers
1
Weekly downloads
 
Created
Source

Reveal.js generator Dependency Status devDependency Status

A Yeoman generator for the awesome Reveal.js presentation framework.

Usage

Install: npm install -g generator-reveal

Make a new directory, and cd into it:

mkdir my-new-project && cd $_

Run yo reveal and start building your presentation.

After all files are created you can view your slides with grunt:

grunt server

Then, create further slides with yo reveal:slide more-content. See below for available options.

Generators

Available generators:

Slide

Generates a Slide file.

Example:

yo reveal:slide "Slide Title"

Produces slides/slide-title.html:

<section>
    <h2>Slide Title</h2>

    <p>This is a new slide</p>
</section>

And the slide filename will be added to your slides/list.json file.

[
    "index.md",
    "slide-title.html"
]
Vertical Slides

In order to add vertical slides, you can nest an array inside slides/list.json

[
    "index.md",
    [
        "vertical-html.html",
        "vertical-markdown.md"
    ],
    [
        "vertical-html-2.html",
        "vertical-markdown-2.md"
    ],
    "the-end.md"
]
Options
Markdown

Invoked with --markdown

yo reveal:slide "Slide Title" --markdown

Produces slides/slide-title.md

## Slide Title

This is a new slide
Mardown with (Data-)Attributes

Invoked with --markdown --attributes

yo reveal:slide "Slide Title" --markdown --attributes

adds a slide object with an attr key to your slides/list.json file. Attributes will be passed to section element containing the markdown.

[
    "index.md",
    {
        "filename": "slide-title.md",
        "attr": {
            "data-background": "#ff0000"
        }
    }
]
<section data-markdown="slides/slide-title.md" data-background="#ff0000"></section>
Speaker Notes

Invoked with --notes

yo reveal:slide "Slide Title" --notes

Produces slides/slide-title.html:

<section>
    <h2>Slide Title</h2>

    <p>This is a new slide</p>

    <aside class="notes">
        Put your speaker notes here.
        You can see them pressing 's'.
    </aside>
</section>

For markdown, just add --markdown.

License

MIT License

Keywords

FAQs

Package last updated on 19 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc