Transforms Markdown files into presentation slides using reveal.js and Jekyll. The theme is based on Solarized Colors (by Ethan Schoonover) containing a light and a dark theme.
reveal-jekyll is ready for GitHub Pages .
Try the DEMO presentation (how to use Jekyll written in German).
Follow the instructions on get started with GitHub Pages.
Fork reveal-jekyll and name it with your user or organisation name like <yourname>.github.io
.
- clone your repository
- go into it
- add reveal-jekyll as an upstream remote
- create an empty branch named
gh-pages
- delete all cached files of new
gh-pages
branch from git - clean the directory from uncached files
- merge reveal-jekyll/master with your
<repository>/gh-pages
git clone [email protected]/<yourname>/<repository>.git
cd <repository>
git remote add upstream https://github.com/tasmo/reveal-jekyll.git
git checkout --orphan gh-pages
git rm --cached -r .
git clean -fdx
git merge upstream/master
Install RubyGems for your system.
Clone reveal-jekyll with submodule reveal.js (recommended):
git clone --recursive --depth 1 https://github.com/tasmo/reveal-jekyll.git
…or just download the zip file.
Make sure you have a Gemfile
in the root of your project containing at least:
source "https://rubygems.org"
gem 'github-pages'
Install Bundler and the dependencies:
gem install bundler \
bundle install
Put your Markdown slides in the _posts folder.
Name the files in order with pattern N-N-N-TITLE.md
like:
1-1-1-start.md
1-1-1-intro.md
…
3-1-2-third-topic-second-slide.md
…
9-9-8-end.md
9-9-9-very-last-slide.md
Write the slide's header in Front-matter and put the Markdown formatted content below. In the header you need at least the layout: slide
attribute:
---
layout: slide
title:
---
MARKDOWN_FOMATTED_SLIDE_CONTENT
In the _config.yml
give your slide show an name, author's name and a description:
title: reveal-jekyll
author: Thomas Friese
description: Reveal.js for Jekyll with Solarized Color theme
On GitHub Pages you are done. Just watch https://YOUR_GITHUB_NAME.github.io/
.
An your local machine run:
bundle exec jekyll serve
…and go to http://127.0.0.1:4000/
.
A framework for easily creating beautiful presentations using HTML.
reveal.js comes with a broad range of features including nested slides, markdown contents, PDF export, speaker notes and a JavaScript API. It's best viewed in a browser with support for CSS 3D transforms but fallbacks are available to make sure your presentation can still be viewed elsewhere.
- Installation: Step-by-step instructions for getting reveal.js running on your computer.
- Changelog: Up-to-date version history.
- Examples: Presentations created with reveal.js, add your own!
- Browser Support: Explanation of browser support and fallbacks.
- Instructions How to use reveal.js.
- MIT License
Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites. Think of it like a file-based CMS, without all the complexity. Jekyll takes your content, renders Markdown and Liquid templates, and spits out a complete, static website ready to be served by Apache, Nginx or another web server. Jekyll is the engine behind GitHub Pages, which you can use to host sites right from your GitHub repositories.
- Getting Started If you don't know Jekyll yet.
- Runtime Dependencies
- MIT License
- Contributors
Attributes to the slide <section>
elements are written in the Front-matter:
---
layout: slide
title: Background Transitions
data:
transition: linear
background: 'red'
background-transition: slide
---
Markdown fragments must be covered in a HTML block element using the attribute markdown="1"
:
<div markdown="1" class="fragment">
## Markdown Heading
Fragment 1 text
</div>
<div markdown="1" class="fragment">
Fragment 2 text
</div>
Fragments can be nested.
For vertical scrolling you need to leave the title:
blank. All content on vertical slides must be wrapped in HTML <section>
blocks:
---
layout: slide
title:
---
<section markdown="1">
## Top Slide
</section>
<section markdown="1">
## Bottom Slide
</section>
All options for the reveal.js presentation are available in the _config.yml
as sub keys of reveal:
.
The configuration will be built in the <script />
block at the bottom of the index.html
presentation file.
reveal-jekyll uses kramdown for Markdown rendering and rouge for syntax highlighting. Below is an example with CoffeeScript code that will be syntax highlighted:
{% highlight coffee %}
# Objects:
math =
root: Math.sqrt
square: square
cube: (x) -> x * square x
{% endhighlight %}
You can show slide numbers by selecting a format in the _config.yml
file:
slideNumber:
# Slide number formatting can be configured using these variables:
# "h.v": horizontal . vertical slide number (default)
# "h/v": horizontal / vertical slide number
# "c": flattened slide number
# "c/t": flattened slide number / total slides
# "none": don't show slide numbers
format: "c/t"
reveal.js comes with a speaker notes plug-in which can be used to present per-slide notes in a separate browser window. The notes window also gives you a preview of the next upcoming slide so it may be helpful even if you haven't written any notes. Press the 's' key on your keyboard to open the notes window.
Notes are defined by appending an <aside>
element to a slide as seen below. You can add the markdown="1"
attribute to the aside element if you prefer writing notes using Markdown:
---
layout: slide
---
Slide text...
<aside class="notes" markdown="1">
Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).
</aside>
When used locally, this feature requires that reveal.js runs from a local web server.
- Commander: Command-line interface constructor (Ruby)
- Colorator: Colorizes command line output (Ruby)
- Classifier: Generating related posts (Ruby)
- Directory Watcher: Auto-regeneration of sites (Ruby)
- Kramdown: Default Markdown engine (Ruby)
- Liquid: Templating system (Ruby)
- Pygments.rb: Syntax highlighting (Ruby/Python)
- Safe YAML: YAML Parser built for security (Ruby)
- Sass: CSS extension language (Ruby)
- CoffeeScript: compiling to JavaScript (Ruby)
Reveal.js doesn't rely on any third party scripts to work but a few optional libraries are included by default. These libraries are loaded as dependencies in the order they appear, for example:
Reveal.initialize({
dependencies: [
// Cross-browser shim that fully implements classList - //github.com/eligrey/classList.js/
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
// Zoom in and out with Alt+click
{ src: 'plugin/zoom-js/zoom.js', async: true },
// Speaker notes
{ src: 'plugin/notes/notes.js', async: true },
// Remote control your reveal.js presentation using a touch device
{ src: 'plugin/remotes/remotes.js', async: true },
// MathJax
{ src: 'plugin/math/math.js', async: true }
]
});
You can add your own extensions using the same syntax. The following properties are available for each dependency object:
- src: Path to the script to load
- async: [optional] Flags if the script should load after reveal.js has started, defaults to false
- callback: [optional] Function to execute when the script has loaded
- condition: [optional] Function which must return true for the script to be loaded
reveal.js: MIT licensed
Copyright (C) 2016 Hakim El Hattab, http://hakim.se
reveal-jekyll contains the third party fonts
- Open Sans (Apache License, version 2.0),
- Droid Serif (Apache License, version 2.0),
- Font Awesome (License: SIL OFL 1.1) and the color scheme Solarized Colors (MIT License).
reveal-jekyll: MIT licensed
Copyright (C) 2016 Thomas Friese, http://tasmo.rocks