jekyll-theme-slides 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -0
  3. data/README.md +52 -0
  4. data/_layouts/default.html +12 -0
  5. data/_layouts/reveal.html +103 -0
  6. data/assets/reveal.js/.gitignore +13 -0
  7. data/assets/reveal.js/.travis.yml +7 -0
  8. data/assets/reveal.js/CONTRIBUTING.md +23 -0
  9. data/assets/reveal.js/Gruntfile.js +192 -0
  10. data/assets/reveal.js/LICENSE +19 -0
  11. data/assets/reveal.js/README.md +1264 -0
  12. data/assets/reveal.js/bower.json +27 -0
  13. data/assets/reveal.js/css/print/paper.css +203 -0
  14. data/assets/reveal.js/css/print/pdf.css +178 -0
  15. data/assets/reveal.js/css/reveal.css +1555 -0
  16. data/assets/reveal.js/css/reveal.scss +1717 -0
  17. data/assets/reveal.js/css/theme/README.md +21 -0
  18. data/assets/reveal.js/css/theme/beige.css +268 -0
  19. data/assets/reveal.js/css/theme/black.css +264 -0
  20. data/assets/reveal.js/css/theme/blood.css +287 -0
  21. data/assets/reveal.js/css/theme/league.css +270 -0
  22. data/assets/reveal.js/css/theme/moon.css +268 -0
  23. data/assets/reveal.js/css/theme/night.css +262 -0
  24. data/assets/reveal.js/css/theme/serif.css +264 -0
  25. data/assets/reveal.js/css/theme/simple.css +267 -0
  26. data/assets/reveal.js/css/theme/sky.css +271 -0
  27. data/assets/reveal.js/css/theme/solarized.css +268 -0
  28. data/assets/reveal.js/css/theme/source/beige.scss +39 -0
  29. data/assets/reveal.js/css/theme/source/black.scss +49 -0
  30. data/assets/reveal.js/css/theme/source/blood.scss +78 -0
  31. data/assets/reveal.js/css/theme/source/league.scss +34 -0
  32. data/assets/reveal.js/css/theme/source/moon.scss +57 -0
  33. data/assets/reveal.js/css/theme/source/night.scss +34 -0
  34. data/assets/reveal.js/css/theme/source/serif.scss +35 -0
  35. data/assets/reveal.js/css/theme/source/simple.scss +43 -0
  36. data/assets/reveal.js/css/theme/source/sky.scss +46 -0
  37. data/assets/reveal.js/css/theme/source/solarized.scss +63 -0
  38. data/assets/reveal.js/css/theme/source/white.scss +49 -0
  39. data/assets/reveal.js/css/theme/template/mixins.scss +29 -0
  40. data/assets/reveal.js/css/theme/template/settings.scss +43 -0
  41. data/assets/reveal.js/css/theme/template/theme.scss +316 -0
  42. data/assets/reveal.js/css/theme/white.css +264 -0
  43. data/assets/reveal.js/demo.html +410 -0
  44. data/assets/reveal.js/index.html +49 -0
  45. data/assets/reveal.js/js/reveal.js +5241 -0
  46. data/assets/reveal.js/lib/css/zenburn.css +80 -0
  47. data/assets/reveal.js/lib/font/league-gothic/LICENSE +2 -0
  48. data/assets/reveal.js/lib/font/league-gothic/league-gothic.css +10 -0
  49. data/assets/reveal.js/lib/font/league-gothic/league-gothic.eot +0 -0
  50. data/assets/reveal.js/lib/font/league-gothic/league-gothic.ttf +0 -0
  51. data/assets/reveal.js/lib/font/league-gothic/league-gothic.woff +0 -0
  52. data/assets/reveal.js/lib/font/source-sans-pro/LICENSE +45 -0
  53. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
  54. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
  55. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
  56. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
  57. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
  58. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
  59. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
  60. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
  61. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
  62. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
  63. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
  64. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
  65. data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro.css +39 -0
  66. data/assets/reveal.js/lib/js/classList.js +2 -0
  67. data/assets/reveal.js/lib/js/head.min.js +9 -0
  68. data/assets/reveal.js/lib/js/html5shiv.js +7 -0
  69. data/assets/reveal.js/package.json +43 -0
  70. data/assets/reveal.js/plugin/highlight/highlight.js +77 -0
  71. data/assets/reveal.js/plugin/markdown/example.html +136 -0
  72. data/assets/reveal.js/plugin/markdown/example.md +36 -0
  73. data/assets/reveal.js/plugin/markdown/markdown.js +412 -0
  74. data/assets/reveal.js/plugin/markdown/marked.js +6 -0
  75. data/assets/reveal.js/plugin/math/math.js +67 -0
  76. data/assets/reveal.js/plugin/multiplex/client.js +13 -0
  77. data/assets/reveal.js/plugin/multiplex/index.js +64 -0
  78. data/assets/reveal.js/plugin/multiplex/master.js +34 -0
  79. data/assets/reveal.js/plugin/multiplex/package.json +19 -0
  80. data/assets/reveal.js/plugin/notes-server/client.js +65 -0
  81. data/assets/reveal.js/plugin/notes-server/index.js +69 -0
  82. data/assets/reveal.js/plugin/notes-server/notes.html +585 -0
  83. data/assets/reveal.js/plugin/notes/notes.html +759 -0
  84. data/assets/reveal.js/plugin/notes/notes.js +155 -0
  85. data/assets/reveal.js/plugin/print-pdf/print-pdf.js +69 -0
  86. data/assets/reveal.js/plugin/search/search.js +206 -0
  87. data/assets/reveal.js/plugin/zoom-js/zoom.js +272 -0
  88. data/assets/reveal.js/test/examples/assets/image1.png +0 -0
  89. data/assets/reveal.js/test/examples/assets/image2.png +0 -0
  90. data/assets/reveal.js/test/examples/barebones.html +41 -0
  91. data/assets/reveal.js/test/examples/embedded-media.html +49 -0
  92. data/assets/reveal.js/test/examples/math.html +185 -0
  93. data/assets/reveal.js/test/examples/slide-backgrounds.html +144 -0
  94. data/assets/reveal.js/test/examples/slide-transitions.html +101 -0
  95. data/assets/reveal.js/test/qunit-1.12.0.css +244 -0
  96. data/assets/reveal.js/test/qunit-1.12.0.js +2212 -0
  97. data/assets/reveal.js/test/simple.md +12 -0
  98. data/assets/reveal.js/test/test-markdown-element-attributes.html +134 -0
  99. data/assets/reveal.js/test/test-markdown-element-attributes.js +46 -0
  100. data/assets/reveal.js/test/test-markdown-external.html +36 -0
  101. data/assets/reveal.js/test/test-markdown-external.js +24 -0
  102. data/assets/reveal.js/test/test-markdown-options.html +41 -0
  103. data/assets/reveal.js/test/test-markdown-options.js +26 -0
  104. data/assets/reveal.js/test/test-markdown-slide-attributes.html +128 -0
  105. data/assets/reveal.js/test/test-markdown-slide-attributes.js +47 -0
  106. data/assets/reveal.js/test/test-markdown.html +52 -0
  107. data/assets/reveal.js/test/test-markdown.js +15 -0
  108. data/assets/reveal.js/test/test-pdf.html +83 -0
  109. data/assets/reveal.js/test/test-pdf.js +15 -0
  110. data/assets/reveal.js/test/test.html +86 -0
  111. data/assets/reveal.js/test/test.js +597 -0
  112. metadata +112 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63b5c9eb31a0426634f339845b2a56dfe1f0a951
4
- data.tar.gz: 7efdd65f944a7a92902ea582956de2a14dcd28bb
3
+ metadata.gz: 053aad48e0c33279743d5e9eaf7713aa2317140f
4
+ data.tar.gz: 86fa68d7bdcb70286a17d13d59ebeca47cb7ed58
5
5
  SHA512:
6
- metadata.gz: 81f57eaf7b8c51f54b21db4322b343f8726358ccbfa5c0ba76af78038e1f79d5dffa6466ca18072a34c1f26ecc5ca93d4b3f1708de9196a31b41f7f7e3981773
7
- data.tar.gz: d371351e1c0ac011b89ee8bfa934cf11aef605fd7fbd70fbf0dff4d0f4a7e5701de55284ed11a32e31e76ea96127eaae3c66ff04782b07bef2ce56bf868053d7
6
+ metadata.gz: 7b44b1e01e8bc894dfbd1260b34db1e66845e0f4a742005ea97fbc513a7995533e7f5bcc442379f18260d3f63042da3cc74c70cadde1519bd4d9778f4d2f1859
7
+ data.tar.gz: a0f18881f969073e4c10e2a0c871a3b689b1aef9ba20e3f144b91532be99d1fb0819e8588b4bf0c311683411ae63127db10826ee64ae19527f3ac597d24fa4af
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 pnhung177
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,52 @@
1
+ # jekyll-theme-slides
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "jekyll-theme-slides"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: jekyll-theme-slides
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install jekyll-theme-slides
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ Your theme is setup just like a normal Jekyll site! 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 your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-slides.gemspec` accordingly.
48
+
49
+ ## License
50
+
51
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+
@@ -0,0 +1,12 @@
1
+ ---
2
+ layout: reveal
3
+ title: not used. Use _config.yml!
4
+ ---
5
+
6
+ {% for post in site.posts reversed %}
7
+ <section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$" data-notes="^Note:">
8
+ <script type="text/template">
9
+ {{ post.content }}
10
+ </script>
11
+ </section>
12
+ {% endfor %}
@@ -0,0 +1,103 @@
1
+ ---
2
+ ---
3
+
4
+ {% assign site_reveal_path = "reveal.js/" %}
5
+ {% if site.reveal_path %}{% assign site_reveal_path = site.reveal_path %}{% endif %}
6
+
7
+ {% assign site_reveal_theme_path = "reveal.js/css/theme/" %}
8
+ {% if site.reveal_theme_path %}{% assign site_reveal_theme_path = site.reveal_theme_path %}{% endif %}
9
+
10
+ {% assign site_reveal_theme = "black.css" %}
11
+ {% if site.reveal_theme %}{% assign site_reveal_theme = site.reveal_theme %}{% endif %}
12
+
13
+ {% assign site_reveal_transition = "default" %}
14
+ {% if site.reveal_transition %}{% assign site_reveal_transition = site.reveal_transition %}{% endif %}
15
+
16
+ {% assign site_reveal_notes_server = false %}
17
+ {% if site.reveal_notes_server %}{% assign site_reveal_notes_server = site.reveal_notes_server %}{% endif %}
18
+
19
+ <!doctype html>
20
+ <html lang="en">
21
+
22
+ <head>
23
+ <meta charset="utf-8">
24
+
25
+ <title>{{ site.title }}</title>
26
+
27
+ <meta name="description" content="A framework for easily creating beautiful presentations using HTML">
28
+ <meta name="author" content="pnhung177">
29
+
30
+ <meta name="apple-mobile-web-app-capable" content="yes" />
31
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
32
+
33
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
34
+
35
+ <link rel="stylesheet" href="/assets/{{ site_reveal_path }}css/reveal.css">
36
+ <link rel="stylesheet" href="/assets/{{ site_reveal_theme_path }}{{ site_reveal_theme }}" id="theme">
37
+
38
+ <!-- For syntax highlighting -->
39
+ <link rel="stylesheet" href="/assets/{{ site_reveal_path }}lib/css/zenburn.css">
40
+
41
+ <!-- If the query includes 'print-pdf', use the PDF print sheet -->
42
+ <script>
43
+ document.write( '<link rel="stylesheet" href="/assets/{{ site_reveal_path }}css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
44
+ </script>
45
+
46
+ <!--[if lt IE 9]>
47
+ <script src="/assets/{{ site_reveal_path }}lib/js/html5shiv.js"></script>
48
+ <![endif]-->
49
+ </head>
50
+
51
+ <body>
52
+
53
+ <div class="reveal">
54
+ <div class="slides">
55
+
56
+ {{ content }}
57
+
58
+ </div>
59
+ </div>
60
+
61
+ <script src="/assets/{{ site_reveal_path }}lib/js/head.min.js"></script>
62
+ <script src="/assets/{{ site_reveal_path }}js/reveal.js"></script>
63
+
64
+ <script>
65
+ // Full list of configuration options available here:
66
+ // https://github.com/hakimel/reveal.js#configuration
67
+ Reveal.initialize({
68
+ controls: true,
69
+ progress: true,
70
+ history: true,
71
+ center: true,
72
+
73
+ theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
74
+ transition: '{{ site_reveal_transition }}', // default/cube/page/concave/zoom/linear/fade/none
75
+
76
+ {% if site.reveal_options %}
77
+
78
+ {{ site.reveal_options | append:',' }}
79
+
80
+ {% endif %}
81
+
82
+ // Optional libraries used to extend on reveal.js
83
+ dependencies: [
84
+ { src: '/assets/{{ site_reveal_path }}lib/js/classList.js', condition: function() { return !document.body.classList; } },
85
+ { src: '/assets/{{ site_reveal_path }}plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
86
+ { src: '/assets/{{ site_reveal_path }}plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
87
+ { src: '/assets/{{ site_reveal_path }}plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
88
+ { src: '/assets/{{ site_reveal_path }}plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
89
+ {% if site_reveal_notes_server %}
90
+ { src: '/assets/{{ site_reveal_path }}socket.io/socket.io.js', async: true },
91
+ { src: '/assets/{{ site_reveal_path }}plugin/notes-server/client.js', async: true }
92
+ {% else %}
93
+ { src: '/assets/{{ site_reveal_path }}plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
94
+ {% endif %}
95
+ {% if site.reveal_dependencies %}
96
+ , {{ site.reveal_dependencies }}
97
+ {% endif %}
98
+ ]
99
+ });
100
+ </script>
101
+
102
+ </body>
103
+ </html>
@@ -0,0 +1,13 @@
1
+ .idea/
2
+ *.iml
3
+ *.iws
4
+ *.eml
5
+ out/
6
+ .DS_Store
7
+ .svn
8
+ log/*.log
9
+ tmp/**
10
+ node_modules/
11
+ .sass-cache
12
+ css/reveal.min.css
13
+ js/reveal.min.js
@@ -0,0 +1,7 @@
1
+ language: node_js
2
+ node_js:
3
+ - 4
4
+ before_script:
5
+ - npm install -g grunt-cli
6
+ after_script:
7
+ - grunt retire
@@ -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,192 @@
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://revealjs.com\n' +
16
+ ' * MIT licensed\n' +
17
+ ' *\n' +
18
+ ' * Copyright (C) 2017 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
+ screwIE8: false
30
+ },
31
+ build: {
32
+ src: 'js/reveal.js',
33
+ dest: 'js/reveal.min.js'
34
+ }
35
+ },
36
+
37
+ sass: {
38
+ core: {
39
+ src: 'css/reveal.scss',
40
+ dest: 'css/reveal.css'
41
+ },
42
+ themes: {
43
+ expand: true,
44
+ cwd: 'css/theme/source',
45
+ src: ['*.sass', '*.scss'],
46
+ dest: 'css/theme',
47
+ ext: '.css'
48
+ }
49
+ },
50
+
51
+ autoprefixer: {
52
+ core: {
53
+ src: 'css/reveal.css'
54
+ }
55
+ },
56
+
57
+ cssmin: {
58
+ options: {
59
+ compatibility: 'ie9'
60
+ },
61
+ compress: {
62
+ src: 'css/reveal.css',
63
+ dest: 'css/reveal.min.css'
64
+ }
65
+ },
66
+
67
+ jshint: {
68
+ options: {
69
+ curly: false,
70
+ eqeqeq: true,
71
+ immed: true,
72
+ esnext: true,
73
+ latedef: 'nofunc',
74
+ newcap: true,
75
+ noarg: true,
76
+ sub: true,
77
+ undef: true,
78
+ eqnull: true,
79
+ browser: true,
80
+ expr: true,
81
+ globals: {
82
+ head: false,
83
+ module: false,
84
+ console: false,
85
+ unescape: false,
86
+ define: false,
87
+ exports: false
88
+ }
89
+ },
90
+ files: [ 'Gruntfile.js', 'js/reveal.js' ]
91
+ },
92
+
93
+ connect: {
94
+ server: {
95
+ options: {
96
+ port: port,
97
+ base: root,
98
+ livereload: true,
99
+ open: true,
100
+ useAvailablePort: true
101
+ }
102
+ }
103
+ },
104
+
105
+ zip: {
106
+ bundle: {
107
+ src: [
108
+ 'index.html',
109
+ 'css/**',
110
+ 'js/**',
111
+ 'lib/**',
112
+ 'images/**',
113
+ 'plugin/**',
114
+ '**.md'
115
+ ],
116
+ dest: 'reveal-js-presentation.zip'
117
+ }
118
+ },
119
+
120
+ watch: {
121
+ js: {
122
+ files: [ 'Gruntfile.js', 'js/reveal.js' ],
123
+ tasks: 'js'
124
+ },
125
+ theme: {
126
+ files: [
127
+ 'css/theme/source/*.sass',
128
+ 'css/theme/source/*.scss',
129
+ 'css/theme/template/*.sass',
130
+ 'css/theme/template/*.scss'
131
+ ],
132
+ tasks: 'css-themes'
133
+ },
134
+ css: {
135
+ files: [ 'css/reveal.scss' ],
136
+ tasks: 'css-core'
137
+ },
138
+ html: {
139
+ files: root.map(path => path + '/*.html')
140
+ },
141
+ markdown: {
142
+ files: root.map(path => path + '/*.md')
143
+ },
144
+ options: {
145
+ livereload: true
146
+ }
147
+ },
148
+
149
+ retire: {
150
+ js: [ 'js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js' ],
151
+ node: [ '.' ]
152
+ }
153
+
154
+ });
155
+
156
+ // Dependencies
157
+ grunt.loadNpmTasks( 'grunt-contrib-connect' );
158
+ grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
159
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
160
+ grunt.loadNpmTasks( 'grunt-contrib-qunit' );
161
+ grunt.loadNpmTasks( 'grunt-contrib-uglify' );
162
+ grunt.loadNpmTasks( 'grunt-contrib-watch' );
163
+ grunt.loadNpmTasks( 'grunt-autoprefixer' );
164
+ grunt.loadNpmTasks( 'grunt-retire' );
165
+ grunt.loadNpmTasks( 'grunt-sass' );
166
+ grunt.loadNpmTasks( 'grunt-zip' );
167
+
168
+ // Default task
169
+ grunt.registerTask( 'default', [ 'css', 'js' ] );
170
+
171
+ // JS task
172
+ grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] );
173
+
174
+ // Theme CSS
175
+ grunt.registerTask( 'css-themes', [ 'sass:themes' ] );
176
+
177
+ // Core framework CSS
178
+ grunt.registerTask( 'css-core', [ 'sass:core', 'autoprefixer', 'cssmin' ] );
179
+
180
+ // All CSS
181
+ grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] );
182
+
183
+ // Package presentation to archive
184
+ grunt.registerTask( 'package', [ 'default', 'zip' ] );
185
+
186
+ // Serve presentation locally
187
+ grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
188
+
189
+ // Run tests
190
+ grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
191
+
192
+ };
@@ -0,0 +1,19 @@
1
+ Copyright (C) 2017 Hakim El Hattab, http://hakim.se, and reveal.js contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.