starterlog-theme 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -8
- data/_layouts/slide.html +105 -0
- data/_pages/profile/index.html +1 -1
- data/_pages/start/index.html +7 -2
- data/assets/modules/reveal.js/.gitignore +13 -0
- data/assets/modules/reveal.js/.travis.yml +5 -0
- data/assets/modules/reveal.js/CONTRIBUTING.md +23 -0
- data/assets/modules/reveal.js/Gruntfile.js +187 -0
- data/assets/modules/reveal.js/LICENSE +19 -0
- data/assets/modules/reveal.js/README.md +1185 -0
- data/assets/modules/reveal.js/bower.json +27 -0
- data/assets/modules/reveal.js/css/print/paper.css +203 -0
- data/assets/modules/reveal.js/css/print/pdf.css +171 -0
- data/assets/modules/reveal.js/css/reveal.css +1365 -0
- data/assets/modules/reveal.js/css/reveal.scss +1446 -0
- data/assets/modules/reveal.js/css/theme/README.md +21 -0
- data/assets/modules/reveal.js/css/theme/beige.css +296 -0
- data/assets/modules/reveal.js/css/theme/black.css +292 -0
- data/assets/modules/reveal.js/css/theme/blood.css +315 -0
- data/assets/modules/reveal.js/css/theme/league.css +298 -0
- data/assets/modules/reveal.js/css/theme/moon.css +296 -0
- data/assets/modules/reveal.js/css/theme/night.css +290 -0
- data/assets/modules/reveal.js/css/theme/serif.css +292 -0
- data/assets/modules/reveal.js/css/theme/simple.css +295 -0
- data/assets/modules/reveal.js/css/theme/sky.css +299 -0
- data/assets/modules/reveal.js/css/theme/solarized.css +296 -0
- data/assets/modules/reveal.js/css/theme/source/beige.scss +39 -0
- data/assets/modules/reveal.js/css/theme/source/black.scss +49 -0
- data/assets/modules/reveal.js/css/theme/source/blood.scss +78 -0
- data/assets/modules/reveal.js/css/theme/source/league.scss +34 -0
- data/assets/modules/reveal.js/css/theme/source/moon.scss +57 -0
- data/assets/modules/reveal.js/css/theme/source/night.scss +34 -0
- data/assets/modules/reveal.js/css/theme/source/serif.scss +35 -0
- data/assets/modules/reveal.js/css/theme/source/simple.scss +43 -0
- data/assets/modules/reveal.js/css/theme/source/sky.scss +46 -0
- data/assets/modules/reveal.js/css/theme/source/solarized.scss +63 -0
- data/assets/modules/reveal.js/css/theme/source/white.scss +49 -0
- data/assets/modules/reveal.js/css/theme/template/mixins.scss +29 -0
- data/assets/modules/reveal.js/css/theme/template/settings.scss +43 -0
- data/assets/modules/reveal.js/css/theme/template/theme.scss +352 -0
- data/assets/modules/reveal.js/css/theme/white.css +292 -0
- data/assets/modules/reveal.js/demo.html +410 -0
- data/assets/modules/reveal.js/index.html +50 -0
- data/assets/modules/reveal.js/js/reveal.js +4961 -0
- data/assets/modules/reveal.js/lib/css/zenburn.css +80 -0
- data/assets/modules/reveal.js/lib/font/league-gothic/LICENSE +2 -0
- data/assets/modules/reveal.js/lib/font/league-gothic/league-gothic.css +10 -0
- data/assets/modules/reveal.js/lib/font/league-gothic/league-gothic.eot +0 -0
- data/assets/modules/reveal.js/lib/font/league-gothic/league-gothic.ttf +0 -0
- data/assets/modules/reveal.js/lib/font/league-gothic/league-gothic.woff +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/LICENSE +45 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- data/assets/modules/reveal.js/lib/js/classList.js +2 -0
- data/assets/modules/reveal.js/lib/js/head.min.js +9 -0
- data/assets/modules/reveal.js/lib/js/html5shiv.js +7 -0
- data/assets/modules/reveal.js/package.json +45 -0
- data/assets/modules/reveal.js/plugin/highlight/highlight.js +78 -0
- data/assets/modules/reveal.js/plugin/markdown/example.html +129 -0
- data/assets/modules/reveal.js/plugin/markdown/example.md +31 -0
- data/assets/modules/reveal.js/plugin/markdown/markdown.js +411 -0
- data/assets/modules/reveal.js/plugin/markdown/marked.js +6 -0
- data/assets/modules/reveal.js/plugin/math/math.js +67 -0
- data/assets/modules/reveal.js/plugin/multiplex/client.js +13 -0
- data/assets/modules/reveal.js/plugin/multiplex/index.js +64 -0
- data/assets/modules/reveal.js/plugin/multiplex/master.js +31 -0
- data/assets/modules/reveal.js/plugin/multiplex/package.json +19 -0
- data/assets/modules/reveal.js/plugin/notes-server/client.js +65 -0
- data/assets/modules/reveal.js/plugin/notes-server/index.js +69 -0
- data/assets/modules/reveal.js/plugin/notes-server/notes.html +585 -0
- data/assets/modules/reveal.js/plugin/notes/notes.html +609 -0
- data/assets/modules/reveal.js/plugin/notes/notes.js +145 -0
- data/assets/modules/reveal.js/plugin/print-pdf/print-pdf.js +51 -0
- data/assets/modules/reveal.js/plugin/search/search.js +196 -0
- data/assets/modules/reveal.js/plugin/zoom-js/zoom.js +288 -0
- data/assets/modules/reveal.js/test/examples/assets/image1.png +0 -0
- data/assets/modules/reveal.js/test/examples/assets/image2.png +0 -0
- data/assets/modules/reveal.js/test/examples/barebones.html +41 -0
- data/assets/modules/reveal.js/test/examples/embedded-media.html +49 -0
- data/assets/modules/reveal.js/test/examples/math.html +185 -0
- data/assets/modules/reveal.js/test/examples/slide-backgrounds.html +144 -0
- data/assets/modules/reveal.js/test/examples/slide-transitions.html +101 -0
- data/assets/modules/reveal.js/test/qunit-1.12.0.css +244 -0
- data/assets/modules/reveal.js/test/qunit-1.12.0.js +2212 -0
- data/assets/modules/reveal.js/test/simple.md +12 -0
- data/assets/modules/reveal.js/test/test-markdown-element-attributes.html +134 -0
- data/assets/modules/reveal.js/test/test-markdown-element-attributes.js +46 -0
- data/assets/modules/reveal.js/test/test-markdown-external.html +36 -0
- data/assets/modules/reveal.js/test/test-markdown-external.js +24 -0
- data/assets/modules/reveal.js/test/test-markdown-options.html +41 -0
- data/assets/modules/reveal.js/test/test-markdown-options.js +26 -0
- data/assets/modules/reveal.js/test/test-markdown-slide-attributes.html +128 -0
- data/assets/modules/reveal.js/test/test-markdown-slide-attributes.js +47 -0
- data/assets/modules/reveal.js/test/test-markdown.html +52 -0
- data/assets/modules/reveal.js/test/test-markdown.js +15 -0
- data/assets/modules/reveal.js/test/test-pdf.html +83 -0
- data/assets/modules/reveal.js/test/test-pdf.js +15 -0
- data/assets/modules/reveal.js/test/test.html +86 -0
- data/assets/modules/reveal.js/test/test.js +597 -0
- metadata +117 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c8e08b64e16460ab23378e9cf9fce91e22e0ff4
|
4
|
+
data.tar.gz: cf136ee87cdfe856cb71df04db78f838dd2354dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3726207decdaa10e3cb7f24844fbcff1fb4ad24842be464bc5b0db5469008e6946bd8cc536cb6029ecb5ad9f43cf3040b9eebe06b73abf28f5a425a9deda4116
|
7
|
+
data.tar.gz: 58904c1a91c82358ebcbec6972c111fb20351feefca792edf482ad9dd541e35fbc62429b4ecc14fc124cc579d76f869364763e9a2d85d02528c3d92067d2042f
|
data/README.md
CHANGED
@@ -64,34 +64,76 @@ Core components such as bootstrap, font-awesome, jquery, and lunr.js were used t
|
|
64
64
|
assets ## FONTS, IMAGES, SCRIPTS, STYLES
|
65
65
|
fonts
|
66
66
|
images
|
67
|
+
modules
|
68
|
+
reveal.js
|
67
69
|
scripts
|
68
70
|
styles
|
69
71
|
|
70
|
-
|
72
|
+
|
73
|
+
## HTML Presentations
|
74
|
+
|
75
|
+
Reveal.js is now included in the theme and allows you to create HTML presentations directly in your Jekyll site as a simple Post using HTML and Markdown syntax.
|
76
|
+
|
77
|
+
In the Front Matter of any Jekyll Post on your site, simply use the slide layout and specify the reveal.js theme you wish to use.
|
78
|
+
|
79
|
+
EXAMPLE:
|
80
|
+
|
81
|
+
---
|
82
|
+
layout: slide
|
83
|
+
title: Sample Presentation
|
84
|
+
description: A presentation slide for how to use reveal.js in Jekyll
|
85
|
+
theme: white
|
86
|
+
transition: slide
|
87
|
+
date: 2017-01-03 00:00:00 -0600
|
88
|
+
categories: presentation
|
89
|
+
---
|
71
90
|
|
72
91
|
<hr>
|
92
|
+
|
93
|
+
### Reveal.js HTML Presentations
|
94
|
+
|
95
|
+
![Alt text](./docs/images/slide.png?raw=true "Presentations")
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
## Additional Screenshots
|
100
|
+
|
101
|
+
<hr>
|
102
|
+
|
73
103
|
### Home Page
|
74
|
-
|
104
|
+
|
105
|
+
![Alt text](./docs/images/home.png?raw=true "Home Page")
|
75
106
|
|
76
107
|
<hr>
|
108
|
+
|
77
109
|
### Palette
|
78
|
-
|
110
|
+
|
111
|
+
![Alt text](./docs/images/palette.png?raw=true "Palette")
|
79
112
|
|
80
113
|
<hr>
|
114
|
+
|
81
115
|
### Custom Bootstrap Theme
|
82
|
-
|
116
|
+
|
117
|
+
![Alt text](./docs/images/theme.png?raw=true "Custom Theme")
|
83
118
|
|
84
119
|
<hr>
|
120
|
+
|
85
121
|
### Lunr Search
|
86
|
-
|
122
|
+
|
123
|
+
![Alt text](./docs/images/search.png?raw=true "Lunr Search")
|
87
124
|
|
88
125
|
<hr>
|
126
|
+
|
89
127
|
### Search Results
|
90
|
-
|
128
|
+
|
129
|
+
![Alt text](./docs/images/search-results.png?raw=true "Search Results")
|
91
130
|
|
92
131
|
<hr>
|
132
|
+
|
93
133
|
### Static Page Templates
|
94
|
-
|
134
|
+
|
135
|
+
![Alt text](./docs/images/about.png?raw=true "About")
|
136
|
+
|
95
137
|
|
96
138
|
|
97
139
|
<br>
|
@@ -104,4 +146,6 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/gadget
|
|
104
146
|
|
105
147
|
To set up your environment to develop this theme, run `bundle install`.
|
106
148
|
|
107
|
-
You theme is setup just like a normal Jekyll site!
|
149
|
+
You theme is setup just like a normal Jekyll site!
|
150
|
+
|
151
|
+
To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to this theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
data/_layouts/slide.html
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
|
6
|
+
<title>
|
7
|
+
{% if page.title %}
|
8
|
+
{{ page.title }} | {{ site.title }}
|
9
|
+
{% else %}
|
10
|
+
{{ site.title }}
|
11
|
+
{% endif %}
|
12
|
+
</title>
|
13
|
+
|
14
|
+
<!--<meta name="author" content="{{ site.author }}" />-->
|
15
|
+
|
16
|
+
<!-- Description -->
|
17
|
+
{% if page.description %}
|
18
|
+
<meta name="description" content="{{ page.description }}" />
|
19
|
+
{% else %}
|
20
|
+
<meta name="description" content="{{ site.description }}" />
|
21
|
+
{% endif %}
|
22
|
+
|
23
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
24
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
25
|
+
|
26
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" />
|
27
|
+
<link rel="stylesheet" href="{{ "/assets/styles/font-awesome.css" | prepend: site.baseurl }}"/>
|
28
|
+
<link rel="stylesheet" href="{{ "/assets/modules/reveal.js/css/reveal.css" | prepend: site.baseurl }}"/>
|
29
|
+
|
30
|
+
{%if page.theme %}
|
31
|
+
<link rel="stylesheet" href="{{ "/assets/modules/reveal.js/css/theme/" | prepend: site.baseurl | append: page.theme | append: '.css' }}" id="theme"/>
|
32
|
+
{% else %}
|
33
|
+
<link rel="stylesheet" href="{{ "/assets/modules/reveal.js/css/theme/solarized.css" | prepend: site.baseurl }}" id="theme"/>
|
34
|
+
{% endif %}
|
35
|
+
|
36
|
+
<!-- Code syntax highlighting -->
|
37
|
+
<link rel="stylesheet" href="{{ "/assets/modules/reveal.js/lib/css/zenburn.css" | prepend: site.baseurl }}"/>
|
38
|
+
|
39
|
+
<!-- Printing and PDF exports -->
|
40
|
+
<script>
|
41
|
+
var link = document.createElement( 'link' );
|
42
|
+
link.rel = 'stylesheet';
|
43
|
+
link.type = 'text/css';
|
44
|
+
link.href = window.location.search.match( /print-pdf/gi ) ? '{{ "/assets/modules/reveal.js/css/print/pdf.css" | prepend: site.baseurl }}' : '{{ "/reveal.js/css/print/paper.css" | prepend: site.baseurl }}';
|
45
|
+
document.getElementsByTagName( 'head' )[0].appendChild( link );
|
46
|
+
</script>
|
47
|
+
|
48
|
+
<link rel="apple-touch-icon" href="{{ "/apple-touch-icon.png" | prepend: site.baseurl }}" />
|
49
|
+
|
50
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"/>
|
51
|
+
|
52
|
+
<!--[if lt IE 9]>
|
53
|
+
<script src="lib/js/html5shiv.js"></script>
|
54
|
+
<![endif]-->
|
55
|
+
<style>
|
56
|
+
.home {
|
57
|
+
color: #50514F;
|
58
|
+
font-family: verdana;
|
59
|
+
font-size: 100%;
|
60
|
+
padding-left: 20px;
|
61
|
+
}
|
62
|
+
</style>
|
63
|
+
</head>
|
64
|
+
|
65
|
+
<body>
|
66
|
+
<div>
|
67
|
+
<p>
|
68
|
+
<a class="home" href="/"><i class="fa fa-2x fa-home"></i></a>
|
69
|
+
</p>
|
70
|
+
</div>
|
71
|
+
<div class="reveal">
|
72
|
+
<div class="slides">
|
73
|
+
{{ content }}
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
<script type="text/javascript" src="{{ "/assets/modules/reveal.js/lib/js/head.min.js" | prepend: site.baseurl }}"></script>
|
78
|
+
<script type="text/javascript" src="{{ "/assets/modules/reveal.js/js/reveal.js" | prepend: site.baseurl }}"></script>
|
79
|
+
<script type="text/javascript" >
|
80
|
+
// Full list of configuration options available at:
|
81
|
+
// https://github.com/hakimel/reveal.js#configuration
|
82
|
+
Reveal.initialize({
|
83
|
+
controls: true,
|
84
|
+
progress: true,
|
85
|
+
history: true,
|
86
|
+
center: true,
|
87
|
+
{%if page.transition %}
|
88
|
+
transition: '{{page.transition}}',
|
89
|
+
{% else %}
|
90
|
+
transition: 'slide', // none/fade/slide/convex/concave/zoom
|
91
|
+
{% endif %}
|
92
|
+
// Optional reveal.js plugins
|
93
|
+
dependencies: [
|
94
|
+
{ src: '{{ "/assets/modules/reveal.js/lib/js/classList.js" | prepend: site.baseurl }}', condition: function() { return !document.body.classList; } },
|
95
|
+
{ src: '{{ "/assets/modules/reveal.js/plugin/markdown/marked.js" | prepend: site.baseurl }}', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
96
|
+
{ src: '{{ "/assets/modules/reveal.js/plugin/markdown/markdown.js" | prepend: site.baseurl }}', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
97
|
+
{ src: '{{ "/assets/modules/reveal.js/plugin/highlight/highlight.js" | prepend: site.baseurl }}', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
|
98
|
+
{ src: '{{ "/assets/modules/reveal.js/plugin/zoom-js/zoom.js" | prepend: site.baseurl }}', async: true },
|
99
|
+
{ src: '{{ "/assets/modules/reveal.js/plugin/notes/notes.js" | prepend: site.baseurl }}', async: true }
|
100
|
+
]
|
101
|
+
});
|
102
|
+
</script>
|
103
|
+
|
104
|
+
</body>
|
105
|
+
</html>
|
data/_pages/profile/index.html
CHANGED
@@ -13,7 +13,7 @@ permalink: /profile/
|
|
13
13
|
<img class="featurette-image img-circle img-responsive img-center" src="http://placehold.it/256x256">
|
14
14
|
<br>
|
15
15
|
<h2 class="featurette-heading">John Smith
|
16
|
-
<span class="text-muted">
|
16
|
+
<span class="text-muted">Practitioner</span>
|
17
17
|
</h2>
|
18
18
|
<span style="padding:25px">
|
19
19
|
<p class="lead"> <em>Bio</em> <br>Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
|
data/_pages/start/index.html
CHANGED
@@ -45,6 +45,7 @@ permalink: /start/
|
|
45
45
|
default.html
|
46
46
|
page.html
|
47
47
|
post.html
|
48
|
+
slide.html
|
48
49
|
|
49
50
|
_pages ## PAGES DIRECTORY FOR STATIC PAGES (html)
|
50
51
|
about
|
@@ -69,8 +70,9 @@ permalink: /start/
|
|
69
70
|
_plugins ## PLUGINS DIRECTORY
|
70
71
|
|
71
72
|
_posts ## POSTS DIRECTORY (markdown)
|
72
|
-
|
73
|
-
|
73
|
+
2017-01-01-what-is-bacon-ipsum.md
|
74
|
+
2017-01-02-what-is-lorem-ipsum.md
|
75
|
+
2017-01-03-sample-presentation.md
|
74
76
|
|
75
77
|
_sass ## SASS DIRECTORY
|
76
78
|
|
@@ -83,6 +85,9 @@ permalink: /start/
|
|
83
85
|
camp.jpg
|
84
86
|
starterlog.png
|
85
87
|
|
88
|
+
modules
|
89
|
+
reveal.js ## HTML PRESENTATION FRAMEWORK
|
90
|
+
|
86
91
|
scripts
|
87
92
|
bootstrap.js ## BOOTSTRAP CORE LIBRARY
|
88
93
|
fullscreensearch.js ## FULL SCREEN SEARCH UI
|
@@ -0,0 +1,23 @@
|
|
1
|
+
## Contributing
|
2
|
+
|
3
|
+
Please keep the [issue tracker](http://github.com/hakimel/reveal.js/issues) limited to **bug reports**, **feature requests** and **pull requests**.
|
4
|
+
|
5
|
+
|
6
|
+
### Personal Support
|
7
|
+
If you have personal support or setup questions the best place to ask those are [StackOverflow](http://stackoverflow.com/questions/tagged/reveal.js).
|
8
|
+
|
9
|
+
|
10
|
+
### Bug Reports
|
11
|
+
When reporting a bug make sure to include information about which browser and operating system you are on as well as the necessary steps to reproduce the issue. If possible please include a link to a sample presentation where the bug can be tested.
|
12
|
+
|
13
|
+
|
14
|
+
### Pull Requests
|
15
|
+
- Should follow the coding style of the file you work in, most importantly:
|
16
|
+
- Tabs to indent
|
17
|
+
- Single-quoted strings
|
18
|
+
- Should be made towards the **dev branch**
|
19
|
+
- Should be submitted from a feature/topic branch (not your master)
|
20
|
+
|
21
|
+
|
22
|
+
### Plugins
|
23
|
+
Please do not submit plugins as pull requests. They should be maintained in their own separate repository. More information here: https://github.com/hakimel/reveal.js/wiki/Plugin-Guidelines
|
@@ -0,0 +1,187 @@
|
|
1
|
+
/* global module:false */
|
2
|
+
module.exports = function(grunt) {
|
3
|
+
var port = grunt.option('port') || 8000;
|
4
|
+
var root = grunt.option('root') || '.';
|
5
|
+
|
6
|
+
if (!Array.isArray(root)) root = [root];
|
7
|
+
|
8
|
+
// Project configuration
|
9
|
+
grunt.initConfig({
|
10
|
+
pkg: grunt.file.readJSON('package.json'),
|
11
|
+
meta: {
|
12
|
+
banner:
|
13
|
+
'/*!\n' +
|
14
|
+
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
|
15
|
+
' * http://lab.hakim.se/reveal-js\n' +
|
16
|
+
' * MIT licensed\n' +
|
17
|
+
' *\n' +
|
18
|
+
' * Copyright (C) 2016 Hakim El Hattab, http://hakim.se\n' +
|
19
|
+
' */'
|
20
|
+
},
|
21
|
+
|
22
|
+
qunit: {
|
23
|
+
files: [ 'test/*.html' ]
|
24
|
+
},
|
25
|
+
|
26
|
+
uglify: {
|
27
|
+
options: {
|
28
|
+
banner: '<%= meta.banner %>\n'
|
29
|
+
},
|
30
|
+
build: {
|
31
|
+
src: 'js/reveal.js',
|
32
|
+
dest: 'js/reveal.min.js'
|
33
|
+
}
|
34
|
+
},
|
35
|
+
|
36
|
+
sass: {
|
37
|
+
core: {
|
38
|
+
files: {
|
39
|
+
'css/reveal.css': 'css/reveal.scss',
|
40
|
+
}
|
41
|
+
},
|
42
|
+
themes: {
|
43
|
+
files: [
|
44
|
+
{
|
45
|
+
expand: true,
|
46
|
+
cwd: 'css/theme/source',
|
47
|
+
src: ['*.scss'],
|
48
|
+
dest: 'css/theme',
|
49
|
+
ext: '.css'
|
50
|
+
}
|
51
|
+
]
|
52
|
+
}
|
53
|
+
},
|
54
|
+
|
55
|
+
autoprefixer: {
|
56
|
+
dist: {
|
57
|
+
src: 'css/reveal.css'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
|
61
|
+
cssmin: {
|
62
|
+
compress: {
|
63
|
+
files: {
|
64
|
+
'css/reveal.min.css': [ 'css/reveal.css' ]
|
65
|
+
}
|
66
|
+
}
|
67
|
+
},
|
68
|
+
|
69
|
+
jshint: {
|
70
|
+
options: {
|
71
|
+
curly: false,
|
72
|
+
eqeqeq: true,
|
73
|
+
immed: true,
|
74
|
+
esnext: true,
|
75
|
+
latedef: true,
|
76
|
+
newcap: true,
|
77
|
+
noarg: true,
|
78
|
+
sub: true,
|
79
|
+
undef: true,
|
80
|
+
eqnull: true,
|
81
|
+
browser: true,
|
82
|
+
expr: true,
|
83
|
+
globals: {
|
84
|
+
head: false,
|
85
|
+
module: false,
|
86
|
+
console: false,
|
87
|
+
unescape: false,
|
88
|
+
define: false,
|
89
|
+
exports: false
|
90
|
+
}
|
91
|
+
},
|
92
|
+
files: [ 'Gruntfile.js', 'js/reveal.js' ]
|
93
|
+
},
|
94
|
+
|
95
|
+
connect: {
|
96
|
+
server: {
|
97
|
+
options: {
|
98
|
+
port: port,
|
99
|
+
base: root,
|
100
|
+
livereload: true,
|
101
|
+
open: true
|
102
|
+
}
|
103
|
+
},
|
104
|
+
|
105
|
+
},
|
106
|
+
|
107
|
+
zip: {
|
108
|
+
'reveal-js-presentation.zip': [
|
109
|
+
'index.html',
|
110
|
+
'css/**',
|
111
|
+
'js/**',
|
112
|
+
'lib/**',
|
113
|
+
'images/**',
|
114
|
+
'plugin/**',
|
115
|
+
'**.md'
|
116
|
+
]
|
117
|
+
},
|
118
|
+
|
119
|
+
watch: {
|
120
|
+
js: {
|
121
|
+
files: [ 'Gruntfile.js', 'js/reveal.js' ],
|
122
|
+
tasks: 'js'
|
123
|
+
},
|
124
|
+
theme: {
|
125
|
+
files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
|
126
|
+
tasks: 'css-themes'
|
127
|
+
},
|
128
|
+
css: {
|
129
|
+
files: [ 'css/reveal.scss' ],
|
130
|
+
tasks: 'css-core'
|
131
|
+
},
|
132
|
+
html: {
|
133
|
+
files: root.map(path => path + '/*.html')
|
134
|
+
},
|
135
|
+
markdown: {
|
136
|
+
files: root.map(path => path + '/*.md')
|
137
|
+
},
|
138
|
+
options: {
|
139
|
+
livereload: true
|
140
|
+
}
|
141
|
+
},
|
142
|
+
|
143
|
+
retire: {
|
144
|
+
js: ['js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js'],
|
145
|
+
node: ['.'],
|
146
|
+
options: {}
|
147
|
+
}
|
148
|
+
|
149
|
+
});
|
150
|
+
|
151
|
+
// Dependencies
|
152
|
+
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
|
153
|
+
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
|
154
|
+
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
|
155
|
+
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
|
156
|
+
grunt.loadNpmTasks( 'grunt-contrib-watch' );
|
157
|
+
grunt.loadNpmTasks( 'grunt-sass' );
|
158
|
+
grunt.loadNpmTasks( 'grunt-contrib-connect' );
|
159
|
+
grunt.loadNpmTasks( 'grunt-autoprefixer' );
|
160
|
+
grunt.loadNpmTasks( 'grunt-zip' );
|
161
|
+
grunt.loadNpmTasks( 'grunt-retire' );
|
162
|
+
|
163
|
+
// Default task
|
164
|
+
grunt.registerTask( 'default', [ 'css', 'js' ] );
|
165
|
+
|
166
|
+
// JS task
|
167
|
+
grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] );
|
168
|
+
|
169
|
+
// Theme CSS
|
170
|
+
grunt.registerTask( 'css-themes', [ 'sass:themes' ] );
|
171
|
+
|
172
|
+
// Core framework CSS
|
173
|
+
grunt.registerTask( 'css-core', [ 'sass:core', 'autoprefixer', 'cssmin' ] );
|
174
|
+
|
175
|
+
// All CSS
|
176
|
+
grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] );
|
177
|
+
|
178
|
+
// Package presentation to archive
|
179
|
+
grunt.registerTask( 'package', [ 'default', 'zip' ] );
|
180
|
+
|
181
|
+
// Serve presentation locally
|
182
|
+
grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
|
183
|
+
|
184
|
+
// Run tests
|
185
|
+
grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
|
186
|
+
|
187
|
+
};
|