crystal-lang / crystal-presents

Playground for creating crystal presentations with live coding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creative Commons License

Crystal Presentations

This is a crystal playground that uses Reveal.js to build awesome presentations capable of running crystal code.

The slides are splitted across multiple files.

Writing slides

Fork/clone and write your own slides in ./slides. Use the normal git branching so you can update the slide engine in the future. This will also promote sharing the slides (if you wish).

Create .html and .md files for each slide in ./slides folder. Slides will appear in alphabetical order.

Numbering them as:

  1. 010-
  2. 020-

will allow you to easy put slides in between ;-). Use ./bin/add [Slide title] to create this files automatically.

In a .md file you can use ````playground` to include a interactive playground snippet.

Compile slides

$ ./bin/build-slides
$ crystal play

Open http://localhost:8080/workbook/playground/slides.

Live reload

Start a crystal playground in a terminal and run ./bin/watch. It will look for changes in ./slides compile them and reload the current chrome tab.

$ crystal play
$ ./bin/watch

./bin/watch Requirements

PDF Export

Compile the slides with ./bin/build-slides --no-playground. This will embed the playground snippets as plain source code, better for printing.

Open http://localhost:8080/workbook/playground/slides?print-pdf. Read more in Reveal.js - PDF Export section.

About

Playground for creating crystal presentations with live coding

License:Creative Commons Attribution Share Alike 4.0 International


Languages

Language:CSS 48.6%Language:JavaScript 44.0%Language:HTML 6.6%Language:Crystal 0.6%Language:Shell 0.0%