1.0.66 • Published 4 months ago

@farberg/reveal-template v1.0.66

Weekly downloads
114
License
Apache License 2....
Repository
-
Last release
4 months ago

reveal-template

This is a helper package to simplify the generation of reveal.js presentations using Markdown files only. It contains a set of (optional) reveal plugins to simplify the creation of lectures.

It is primarily used by myself so it is quite opinionated and makes certains assumptions on the structure of the lecture. Markdown files should follow a certain naming pattern:

  • Single level: 00 - Introduction.md, 01 - Bla.md, etc.
  • Two level: 00 - Introduction.md, 01 - Topic 1.md, 01a - Sub-Topic 1.md, 01b - Sub-Topic 1.md, 02 - Topic 2, etc.

The resulting files can be published on any web server and do not require server-side components. Everything is rendered by the browser.

Requirements and Installation

To use this project, node.js and npm are required.

Create a new lecture:

  • Create a new folder and initialize an empty node.js project (e.g., npm init --yes)
  • Add this package as a dependency (npm i @farberg/reveal-template)
  • Read the documentation below

Usage

  1. Create a file package.json describing your presentation (e.g., like this one).
  2. Create an HTML file (e.g., index.html, see npm.html for an example)
  3. Create your presentation in Markdown
    • See this file for an example).
    • Using npm (npm install @farberg/reveal-template), see npm.html for an example.

Plugins

Click on the link for documentation

Tested and working

NameDescription
reveal-plugin-dir-tree.jsCreate a zip from existing files for download and display a tree of files
reveal-plugin-html-example.jsRenders a code example as innerHTML of a target element
reveal-plugin-prefix-with-base-url.jsPrefixes the pages base URL to an element's inner Text. Optionally converts it to inline code.
reveal-plugin-show-attribution.jsShows credits on the lower right corner
reveal-plugin-show-code-snippets.jsShows a code snippet after loading it from a file.
reveal-plugin-show-qr-code.jsDisplay a QR code and link to the presentation on the slides slides
reveal-plugin-show-title.jsCreate a title slide automatically
reveal-plugin-show-toc.jsCreate a table of contents automatically (run npx dennis_generate_toc > generated_toc.html to generate)

Non-functional, untested or in development

NameDescription
reveal-plugin-modify-font-size.jsAdd keybindings + and - to change base font size
reveal-plugin-toggle-solutions.jsShow of hide solutions

Conversion to PDF

Run npx dennis_generate_pdfs to create PDFs. Requires a running Docker daemon.

Local Development

To start developing on this repository:

  • Check out this repository (git clone https://github.com/pfisterer/reveal-template.git)
  • Run npm install to install required dependencies
  • Start a web server from the root directory (e.g., npx http-server -p 5500)
  • Open http://localhost:5500/docs/local-dev.html

Publish a new version (maintainers only)

# Bump version in `package.json`

# Run this command to publish on npm
npm publish --access public
1.0.66

4 months ago

1.0.62

10 months ago

1.0.61

10 months ago

1.0.60

10 months ago

1.0.65

5 months ago

1.0.64

5 months ago

1.0.63

5 months ago

1.0.55

12 months ago

1.0.59

12 months ago

1.0.58

12 months ago

1.0.57

12 months ago

1.0.56

12 months ago

1.0.54

1 year ago

1.0.51

1 year ago

1.0.53

1 year ago

1.0.52

1 year ago

1.0.50

2 years ago

1.0.48

2 years ago

1.0.47

2 years ago

1.0.49

2 years ago

1.0.46

3 years ago

1.0.45

3 years ago

1.0.44

3 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.39

3 years ago

1.0.40

3 years ago

1.0.38

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.33

3 years ago

1.0.29

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago