Skip to content

Commit bbc56c2

Browse files
authored
Merge pull request #7 from tasmo/highlight.js
Adds highlight.js
2 parents f33a7b7 + eac2f14 commit bbc56c2

File tree

256 files changed

+37102
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+37102
-98
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ trim_trailing_whitespace = true
99
insert_final_newline = false
1010
charset = utf-8
1111

12-
[*.{json,js,css,scss,yml,htm,html}]
12+
[*.{json,js,css,scss,yml}]
1313
indent_style = space
1414
indent_size = 2
1515

README.md

Lines changed: 83 additions & 69 deletions
Large diffs are not rendered by default.

_config.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ timezone: Europe/Berlin
22
future: false
33
# Set baseurl to the base path of the site eg "/mytalk"
44
baseurl: ""
5-
# The allowed values are 'rouge', 'pygments' or null.
6-
highlighter: rouge
7-
# markdown - Valid options are [ maruku | rdiscount | kramdown | redcarpet ]
5+
highlighter: ""
86
markdown: kramdown
97
lsi: false
108
permalink: "/:title"
@@ -304,15 +302,16 @@ reveal:
304302
exclude: [
305303
"Gemfile",
306304
"Gemfile.lock",
305+
"default.nix",
307306
"vendor",
308307
"README.md",
309308
"LICENSE",
310-
"reveal.js/test",
311-
"reveal.js/index.html",
312-
"reveal.js/README.md",
313-
"reveal.js/bower.json",
314-
"reveal.js/Gruntfile.js",
315309
"reveal.js/CONTRIBUTING.md",
316310
"reveal.js/LICENSE",
317-
"reveal.js/package.json"
311+
"reveal.js/README.md",
312+
"reveal.js/gulpfile.js",
313+
"reveal.js/index.html",
314+
"reveal.js/package-lock.json",
315+
"reveal.js/package.json",
316+
"reveal.js/test"
318317
]

_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
1212

1313
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style.css">
14+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/highlight/base16/solarized-light.css">
1415
<!-- jQuery -->
1516
<script src="{{ site.github.url }}/assets/js/jquery-3.5.1.min.js"></script>
1617

_includes/script.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<script src="{{ site.github.url }}/reveal.js/plugin/notes/notes.js"></script>
44
<script src="{{ site.github.url }}/reveal.js/plugin/search/search.js"></script>
55
<script src="{{ site.github.url }}/reveal.js/plugin/markdown/markdown.js"></script>
6+
<script src="{{ site.github.url }}/reveal.js/plugin/highlight/highlight.js"></script>
67

78
<!-- reveal.js init -->
89
<script>
@@ -13,7 +14,7 @@
1314
{% for attr in site.reveal %}{{attr[0]}}: {% unless {attr[1]} == false or {attr[1]} == true %}'{{attr[1]}}',{% else %}{{attr[1]}},{% endunless %}
1415
{% endfor %}
1516
{% endif %}
16-
plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown ]
17+
plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight ]
1718
});
1819

1920
{% if site.slideNumber.format and site.slideNumber.format != "none" %}

_includes/slide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<section {% if post.slide-id %}id="{{post.slide-id}}"{%endif %} class="step{%if post.classes | size %}{% for class in post.classes %} {{class}}{% endfor %}{% else %} slide{% endif %}" {% unless site.simple-slideshow %}{% for attr in post.data %} data-{{attr[0]}}="{{attr[1]}}"{% endfor %}{% endunless %}>
2-
{% if post.title != "" %}<h1>{{ post.title }}</h1>{% endif %}
2+
{% if post.title != "" %}<h1>{{ post.title }}</h1>{% endif %}
33

4-
{{ post.content }}
4+
{{ post.content }}
55
</section>

_layouts/presentation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html class="{% if site.solarized.theme %}{{site.solarized.theme}}{% else %}dark{% endif %}">
33
<head>
4-
{% include head.html %}
4+
{% include head.html %}
55
</head>
66
<body>
77
<div class="reveal">

_layouts/print.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
{% include head.html %}
4+
{% include head.html %}
55
</head>
66
<body>
7-
<div class="reveal">
8-
{{ content }}
9-
</div>
7+
<div class="reveal">
8+
{{ content }}
9+
</div>
1010
</body>
1111
</html>
1212

_layouts/slide.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
{% include head.html %}
4+
{% include head.html %}
55
</head>
66
<body>
7-
<div class="reveal">
8-
<div class="step">
9-
{{ content }}
10-
</div>
11-
</div>
7+
<div class="reveal">
8+
<div class="slides">
9+
{{ content }}
10+
</div>
11+
</div>
1212
</body>
1313
</html>
1414

_posts/2014-1-1-9-markdown.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ title: Markdown support
55

66
Every Markdown file in `_posts` becomes a single slide in "reveal-jekyll".
77

8-
{% highlight markdown %}
8+
<pre><code class="language-markdown" data-trim data-noescape data-line-numbers="1-4|6">
99
---
1010
layout: slide
1111
title: Markdown support
1212
---
1313

1414
Every Markdown file in `_posts` becomes a single slide in "reveal-jekyll".
15-
{% endhighlight %}
15+
</code></pre>

0 commit comments

Comments
 (0)