You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+83-69Lines changed: 83 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,41 +1,39 @@
1
1
# reveal-jekyll
2
2
3
-
Transforms Markdown files into presentation slides using [reveal.js](#revealjs) and [Jekyll](#jekyll). The theme is based on [Solarized Colors](//github.com/altercation/solarized) (by Ethan Schoonover) containing a light and a dark theme.
3
+
Transforms Markdown files into presentation slides using [reveal.js](#revealjs) and [Jekyll](#jekyll). The theme is based on [Solarized Colors](https://github.com/altercation/solarized) (by Ethan Schoonover) containing a light and a dark theme.
4
4
**reveal-jekyll** is ready for [GitHub Pages](https://pages.github.com/) :octocat:.
Try the **[DEMO presentation](http://gh.tasmo.de/reveal-jekyll/)** (how to use Jekyll written in German).
8
+
Try the **[DEMO presentation](https://gh.tasmo.de/reveal-jekyll/)** (how to use Jekyll written in German).
9
9
10
-
## Howto
10
+
## Get reveal-jekyll
11
11
12
-
### Get reveal-jekyll
12
+
### Hosting on Github Pages
13
13
14
-
#### Hosting on Github Pages
14
+
Follow the instructions on [get started with GitHub Pages](https://pages.github.com/).
15
15
16
-
Follow the instructions on [get started with GitHub Pages](//pages.github.com/).
16
+
#### As a User or Organization Site
17
17
18
-
##### As a User or Organization Site
18
+
To set up a user or organization site `https://${yourname}.github.io/`, fork [reveal-jekyll](https://github.com/tasmo/reveal-jekyll) and name your fork with your user or organization name like `${yourname}.github.io`. Your site will build off the master branch.
19
19
20
-
To set up a user or organization site `https://${yourname}.github.io/`, fork [reveal-jekyll](//github.com/tasmo/reveal-jekyll) and name your fork with your user or organisation name like `${yourname}.github.io`. Your site will build off the master branch.
21
-
22
-
##### As a Project Site
20
+
#### As a Project Site
23
21
24
22
To set up a [project site](https://help.github.com/articles/user-organization-and-project-pages/#project-pages)`https://${yourname}.github.io/${projectname}`:
25
23
26
24
- Fork as above, but name your fork with whatever `${projectname}` you want.
27
25
- Your site will build from the `gh-pages` branch, so you should [set that as the default branch](https://help.github.com/articles/setting-the-default-branch/).
28
26
- In [\_config.yml](./_config.yml) in your `gh-pages` branch, change `baseurl: ""` to `baseurl: /${projectname}`. This is [needed](https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/) to construct asset include and internal link URLs correctly when you are serving your site from a non-root path.
29
27
30
-
#####For an Existing Repository
28
+
#### For an Existing Repository
31
29
32
30
- clone your repository
33
31
- go into it
34
-
- add [reveal-jekyll](//github.com/tasmo/reveal-jekyll) as an upstream remote
32
+
- add [reveal-jekyll](https://github.com/tasmo/reveal-jekyll) as an upstream remote
35
33
- create an empty branch named `gh-pages`
36
34
- delete all cached files of new `gh-pages` branch from git
37
35
- clean the directory from uncached files
38
-
- merge [reveal-jekyll](//github.com/tasmo/reveal-jekyll)/master with your `${repository}/gh-pages`
36
+
- merge [reveal-jekyll](https://github.com/tasmo/reveal-jekyll)/master with your `${repository}/gh-pages`
…or just download the [zip file](//github.com/tasmo/reveal-jekyll/archive/master.zip).
58
+
…or just download the [zip file](https://github.com/tasmo/reveal-jekyll/archive/master.zip).
61
59
62
60
Make sure you have a `Gemfile` in the root of your project containing at least:
63
61
@@ -67,17 +65,19 @@ source "https://rubygems.org"
67
65
gem 'github-pages'
68
66
```
69
67
70
-
Install [Bundler](http://bundler.io/) and the dependencies:
68
+
Install [Bundler](https://bundler.io/) and the dependencies:
71
69
72
70
```shell
73
71
gem install bundler \
74
72
bundle install
75
73
```
76
74
77
-
### Write your slides
75
+
---
76
+
77
+
## Write Your Slides
78
78
79
-
Put your Markdown slides in the `_posts` folder.
80
-
Name the files in order with pattern `YEAR-MONTH-DAY-TITLE.md` like:
79
+
Put your Markdown slides in the `_posts` folder[like in any Jekyll](https://jekyllrb.com/docs/posts/) instance.
80
+
Name the files in numbered order or dated following a pattern like `YEAR-MONTH-DAY-TITLE.md`:
81
81
82
82
```text
83
83
2014-1-1-start.md
@@ -89,7 +89,7 @@ Name the files in order with pattern `YEAR-MONTH-DAY-TITLE.md` like:
89
89
2014-9-9-very-last-slide.md
90
90
```
91
91
92
-
Write the slide's header in [Front-matter](http://jekyllrb.com/docs/frontmatter/) and put the Markdown formatted content below. In the header you need at least the `layout: slide` attribute:
92
+
Write the slide's header in [Front-matter](https://jekyllrb.com/docs/frontmatter/) and put the Markdown formatted content below. In the header you need at least the `layout: slide` attribute:
93
93
94
94
```markdown
95
95
---
@@ -100,7 +100,7 @@ title:
100
100
MARKDOWN_FOMATTED_SLIDE_CONTENT
101
101
```
102
102
103
-
###Personalize
103
+
## Personalize
104
104
105
105
In the `_config.yml` give your slide show an name, author's name and a description:
106
106
@@ -110,7 +110,7 @@ author: Thomas Friese
110
110
description: Reveal.js for Jekyll with Solarized Color theme
111
111
```
112
112
113
-
### Start your slide show
113
+
## Start Your Slide Show
114
114
115
115
On GitHub Pages you are done. Just watch `https://YOUR_GITHUB_NAME.github.io/`.
116
116
@@ -120,41 +120,41 @@ An your local machine run:
120
120
bundle exec jekyll serve
121
121
```
122
122
123
-
…and go to `http://127.0.0.1:4000/`.
123
+
…and go to `https://127.0.0.1:4000/`.
124
124
125
125
---
126
126
127
-
## [reveal.js](http://lab.hakim.se/reveal-js/)
127
+
# [reveal.js](https://lab.hakim.se/reveal-js/)
128
128
129
129
A framework for easily creating beautiful presentations using HTML.
130
130
131
-
[reveal.js](//github.com/hakimel/reveal.js) comes with a broad range of features including [nested slides](//github.com/hakimel/reveal.js#markup), [markdown contents](//github.com/hakimel/reveal.js#markdown), [PDF export](//github.com/hakimel/reveal.js#pdf-export), [speaker notes](//github.com/hakimel/reveal.js#speaker-notes) and a [JavaScript API](//github.com/hakimel/reveal.js#api). It's best viewed in a browser with support for CSS 3D transforms but [fallbacks](//github.com/hakimel/reveal.js/wiki/Browser-Support) are available to make sure your presentation can still be viewed elsewhere.
131
+
[reveal.js](https://github.com/hakimel/reveal.js) comes with a broad range of features including [nested slides](https://github.com/hakimel/reveal.js#markup), [markdown contents](https://github.com/hakimel/reveal.js#markdown), [PDF export](https://github.com/hakimel/reveal.js#pdf-export), [speaker notes](https://github.com/hakimel/reveal.js#speaker-notes) and a [JavaScript API](https://github.com/hakimel/reveal.js#api). It's best viewed in a browser with support for CSS 3D transforms but [fallbacks](https://github.com/hakimel/reveal.js/wiki/Browser-Support) are available to make sure your presentation can still be viewed elsewhere.
132
132
133
-
### Links for reveal.js:
133
+
## Links for reveal.js:
134
134
135
135
- [Installation](#installation): Step-by-step instructions for getting reveal.js running on your computer.
136
-
- [Changelog](//github.com/hakimel/reveal.js/releases): Up-to-date version history.
137
-
- [Examples](//github.com/hakimel/reveal.js/wiki/Example-Presentations): Presentations created with reveal.js, add your own!
138
-
- [Browser Support](//github.com/hakimel/reveal.js/wiki/Browser-Support): Explanation of browser support and fallbacks.
139
-
- [Instructions](//github.com/hakimel/reveal.js#instructions) How to use reveal.js.
[Jekyll](//github.com/jekyll/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](http://pages.github.com), which you can use to host sites right from your GitHub repositories.
144
+
[Jekyll](https://github.com/jekyll/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](https://pages.github.com), which you can use to host sites right from your GitHub repositories.
145
145
146
-
### Links for Jekyll:
146
+
## Links for Jekyll:
147
147
148
-
- [Getting Started](//github.com/jekyll/jekyll#getting-started) If you don't know Jekyll yet.
Attributes to the slide `<section>` elements are written in the [Front-matter](http://jekyllrb.com/docs/frontmatter/):
157
+
Attributes to the slide `<section>` elements are written in the [Front-matter](https://jekyllrb.com/docs/frontmatter/):
158
158
159
159
```markdown
160
160
---
@@ -167,13 +167,13 @@ data:
167
167
---
168
168
```
169
169
170
-
### Fragments
170
+
## Fragments
171
171
172
172
Markdown fragments must be covered in a HTML block element using the attribute `markdown="1"`:
173
173
174
174
```html
175
175
<div markdown="1" class="fragment">
176
-
## Markdown Heading
176
+
# Markdown Heading
177
177
178
178
Fragment 1 text
179
179
</div>
@@ -184,7 +184,7 @@ Fragment 2 text
184
184
185
185
Fragments can be nested.
186
186
187
-
### Vertical slides
187
+
## Vertical Slides
188
188
189
189
For vertical scrolling you need to leave the `title:` blank. All content on vertical slides must be wrapped in HTML `<section>` blocks:
190
190
@@ -195,24 +195,24 @@ title:
195
195
---
196
196
197
197
<section markdown="1">
198
-
## Top Slide
198
+
# Top Slide
199
199
</section>
200
200
<section markdown="1">
201
-
## Bottom Slide
201
+
# Bottom Slide
202
202
</section>
203
203
```
204
204
205
-
### Configuration
205
+
## Configuration
206
206
207
207
All options for the reveal.js presentation are available in the `_config.yml` as sub keys of `reveal:`.
208
208
209
209
The configuration will be built in the `<script />` block at the bottom of the `index.html` presentation file.
210
210
211
-
### Code syntax highlighting
211
+
## Code Syntax Highlighting
212
212
213
-
reveal-jekyll uses [kramdown](//github.com/gettalong/kramdown) for Markdown rendering and [rouge](//github.com/jneen/rouge) for syntax highlighting. Below is an example with CoffeeScript code that will be syntax highlighted:
213
+
reveal-jekyll uses [Kramdown](https://github.com/gettalong/kramdown) for Markdown rendering and [Rouge]([//github.com/jneen/rouge](https://github.com/rouge-ruby/rouge)) for syntax highlighting. To insert a highlighted code block surround the code with the [Liquid](https://shopify.github.io/liquid/) tag `highlight`:
214
214
215
-
```coffee
215
+
```liquid
216
216
{% highlight coffee %}
217
217
# Objects:
218
218
math =
@@ -222,7 +222,19 @@ math =
222
222
{% endhighlight %}
223
223
```
224
224
225
-
### Slide numbers
225
+
To use the [Reveal.js's preferred method](https://revealjs.com/code/) via [highlight.js](https://highlightjs.org/) it is possible to surround the code with HTML nodes `pre` and `code` using the class `language-*` adding optional `data` tags:
You can show slide numbers by selecting a format in the `_config.yml` file:
228
240
@@ -237,7 +249,7 @@ slideNumber:
237
249
format: "c/t"
238
250
```
239
251
240
-
### Speaker notes
252
+
## Speaker Notes
241
253
242
254
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.
243
255
@@ -255,13 +267,13 @@ Oh hey, these are some notes. They'll be hidden in your presentation, but you ca
255
267
</aside>
256
268
```
257
269
258
-
When used locally, this feature requires that reveal.js [runs from a local web server](//github.com/hakimel/reveal.js#full-setup).
270
+
When used locally, this feature requires that reveal.js [runs from a local web server](https://github.com/hakimel/reveal.js#full-setup).
@@ -274,7 +286,7 @@ When used locally, this feature requires that reveal.js [runs from a local web s
274
286
- Sass: CSS extension language (Ruby)
275
287
- CoffeeScript: compiling to JavaScript (Ruby)
276
288
277
-
### Running reveal.js:
289
+
## Running reveal.js:
278
290
279
291
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:
280
292
@@ -305,18 +317,20 @@ You can add your own extensions using the same syntax. The following properties
305
317
- **callback**: [optional] Function to execute when the script has loaded
306
318
- **condition**: [optional] Function which must return true for the script to be loaded
Copyright (C) 2020 Hakim El Hattab, https://hakim.se
314
328
315
-
[reveal-jekyll](//github.com/tasmo/reveal-jekyll) contains the third party fonts
316
-
- [Open Sans](https://www.google.com/fonts/specimen/Open+Sans) ([Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)),
317
-
- [Droid Serif](https://www.google.com/fonts/specimen/Droid+Serif) ([Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)),
318
-
- [Font Awesome](//github.com/FortAwesome/Font-Awesome) ([License: SIL OFL 1.1](http://fontawesome.io/license/))
319
-
and the color scheme [Solarized Colors](//github.com/altercation/solarized) ([MIT License](//github.com/altercation/solarized/blob/master/LICENSE)).
329
+
[reveal-jekyll](https://github.com/tasmo/reveal-jekyll) contains the third party fonts
330
+
- [Open Sans](https://www.google.com/fonts/specimen/Open+Sans) ([Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)),
331
+
- [Droid Serif](https://www.google.com/fonts/specimen/Droid+Serif) ([Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)),
332
+
- [Font Awesome](https://github.com/FortAwesome/Font-Awesome) ([License: SIL OFL 1.1](https://fontawesome.io/license/))
333
+
and the color scheme [Solarized Colors](https://github.com/altercation/solarized) ([MIT License](https://github.com/altercation/solarized/blob/master/LICENSE)).
0 commit comments