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.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -8
  3. data/_layouts/slide.html +105 -0
  4. data/_pages/profile/index.html +1 -1
  5. data/_pages/start/index.html +7 -2
  6. data/assets/modules/reveal.js/.gitignore +13 -0
  7. data/assets/modules/reveal.js/.travis.yml +5 -0
  8. data/assets/modules/reveal.js/CONTRIBUTING.md +23 -0
  9. data/assets/modules/reveal.js/Gruntfile.js +187 -0
  10. data/assets/modules/reveal.js/LICENSE +19 -0
  11. data/assets/modules/reveal.js/README.md +1185 -0
  12. data/assets/modules/reveal.js/bower.json +27 -0
  13. data/assets/modules/reveal.js/css/print/paper.css +203 -0
  14. data/assets/modules/reveal.js/css/print/pdf.css +171 -0
  15. data/assets/modules/reveal.js/css/reveal.css +1365 -0
  16. data/assets/modules/reveal.js/css/reveal.scss +1446 -0
  17. data/assets/modules/reveal.js/css/theme/README.md +21 -0
  18. data/assets/modules/reveal.js/css/theme/beige.css +296 -0
  19. data/assets/modules/reveal.js/css/theme/black.css +292 -0
  20. data/assets/modules/reveal.js/css/theme/blood.css +315 -0
  21. data/assets/modules/reveal.js/css/theme/league.css +298 -0
  22. data/assets/modules/reveal.js/css/theme/moon.css +296 -0
  23. data/assets/modules/reveal.js/css/theme/night.css +290 -0
  24. data/assets/modules/reveal.js/css/theme/serif.css +292 -0
  25. data/assets/modules/reveal.js/css/theme/simple.css +295 -0
  26. data/assets/modules/reveal.js/css/theme/sky.css +299 -0
  27. data/assets/modules/reveal.js/css/theme/solarized.css +296 -0
  28. data/assets/modules/reveal.js/css/theme/source/beige.scss +39 -0
  29. data/assets/modules/reveal.js/css/theme/source/black.scss +49 -0
  30. data/assets/modules/reveal.js/css/theme/source/blood.scss +78 -0
  31. data/assets/modules/reveal.js/css/theme/source/league.scss +34 -0
  32. data/assets/modules/reveal.js/css/theme/source/moon.scss +57 -0
  33. data/assets/modules/reveal.js/css/theme/source/night.scss +34 -0
  34. data/assets/modules/reveal.js/css/theme/source/serif.scss +35 -0
  35. data/assets/modules/reveal.js/css/theme/source/simple.scss +43 -0
  36. data/assets/modules/reveal.js/css/theme/source/sky.scss +46 -0
  37. data/assets/modules/reveal.js/css/theme/source/solarized.scss +63 -0
  38. data/assets/modules/reveal.js/css/theme/source/white.scss +49 -0
  39. data/assets/modules/reveal.js/css/theme/template/mixins.scss +29 -0
  40. data/assets/modules/reveal.js/css/theme/template/settings.scss +43 -0
  41. data/assets/modules/reveal.js/css/theme/template/theme.scss +352 -0
  42. data/assets/modules/reveal.js/css/theme/white.css +292 -0
  43. data/assets/modules/reveal.js/demo.html +410 -0
  44. data/assets/modules/reveal.js/index.html +50 -0
  45. data/assets/modules/reveal.js/js/reveal.js +4961 -0
  46. data/assets/modules/reveal.js/lib/css/zenburn.css +80 -0
  47. data/assets/modules/reveal.js/lib/font/league-gothic/LICENSE +2 -0
  48. data/assets/modules/reveal.js/lib/font/league-gothic/league-gothic.css +10 -0
  49. data/assets/modules/reveal.js/lib/font/league-gothic/league-gothic.eot +0 -0
  50. data/assets/modules/reveal.js/lib/font/league-gothic/league-gothic.ttf +0 -0
  51. data/assets/modules/reveal.js/lib/font/league-gothic/league-gothic.woff +0 -0
  52. data/assets/modules/reveal.js/lib/font/source-sans-pro/LICENSE +45 -0
  53. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
  54. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
  55. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
  56. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
  57. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
  58. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
  59. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
  60. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
  61. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
  62. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
  63. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
  64. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
  65. data/assets/modules/reveal.js/lib/font/source-sans-pro/source-sans-pro.css +39 -0
  66. data/assets/modules/reveal.js/lib/js/classList.js +2 -0
  67. data/assets/modules/reveal.js/lib/js/head.min.js +9 -0
  68. data/assets/modules/reveal.js/lib/js/html5shiv.js +7 -0
  69. data/assets/modules/reveal.js/package.json +45 -0
  70. data/assets/modules/reveal.js/plugin/highlight/highlight.js +78 -0
  71. data/assets/modules/reveal.js/plugin/markdown/example.html +129 -0
  72. data/assets/modules/reveal.js/plugin/markdown/example.md +31 -0
  73. data/assets/modules/reveal.js/plugin/markdown/markdown.js +411 -0
  74. data/assets/modules/reveal.js/plugin/markdown/marked.js +6 -0
  75. data/assets/modules/reveal.js/plugin/math/math.js +67 -0
  76. data/assets/modules/reveal.js/plugin/multiplex/client.js +13 -0
  77. data/assets/modules/reveal.js/plugin/multiplex/index.js +64 -0
  78. data/assets/modules/reveal.js/plugin/multiplex/master.js +31 -0
  79. data/assets/modules/reveal.js/plugin/multiplex/package.json +19 -0
  80. data/assets/modules/reveal.js/plugin/notes-server/client.js +65 -0
  81. data/assets/modules/reveal.js/plugin/notes-server/index.js +69 -0
  82. data/assets/modules/reveal.js/plugin/notes-server/notes.html +585 -0
  83. data/assets/modules/reveal.js/plugin/notes/notes.html +609 -0
  84. data/assets/modules/reveal.js/plugin/notes/notes.js +145 -0
  85. data/assets/modules/reveal.js/plugin/print-pdf/print-pdf.js +51 -0
  86. data/assets/modules/reveal.js/plugin/search/search.js +196 -0
  87. data/assets/modules/reveal.js/plugin/zoom-js/zoom.js +288 -0
  88. data/assets/modules/reveal.js/test/examples/assets/image1.png +0 -0
  89. data/assets/modules/reveal.js/test/examples/assets/image2.png +0 -0
  90. data/assets/modules/reveal.js/test/examples/barebones.html +41 -0
  91. data/assets/modules/reveal.js/test/examples/embedded-media.html +49 -0
  92. data/assets/modules/reveal.js/test/examples/math.html +185 -0
  93. data/assets/modules/reveal.js/test/examples/slide-backgrounds.html +144 -0
  94. data/assets/modules/reveal.js/test/examples/slide-transitions.html +101 -0
  95. data/assets/modules/reveal.js/test/qunit-1.12.0.css +244 -0
  96. data/assets/modules/reveal.js/test/qunit-1.12.0.js +2212 -0
  97. data/assets/modules/reveal.js/test/simple.md +12 -0
  98. data/assets/modules/reveal.js/test/test-markdown-element-attributes.html +134 -0
  99. data/assets/modules/reveal.js/test/test-markdown-element-attributes.js +46 -0
  100. data/assets/modules/reveal.js/test/test-markdown-external.html +36 -0
  101. data/assets/modules/reveal.js/test/test-markdown-external.js +24 -0
  102. data/assets/modules/reveal.js/test/test-markdown-options.html +41 -0
  103. data/assets/modules/reveal.js/test/test-markdown-options.js +26 -0
  104. data/assets/modules/reveal.js/test/test-markdown-slide-attributes.html +128 -0
  105. data/assets/modules/reveal.js/test/test-markdown-slide-attributes.js +47 -0
  106. data/assets/modules/reveal.js/test/test-markdown.html +52 -0
  107. data/assets/modules/reveal.js/test/test-markdown.js +15 -0
  108. data/assets/modules/reveal.js/test/test-pdf.html +83 -0
  109. data/assets/modules/reveal.js/test/test-pdf.js +15 -0
  110. data/assets/modules/reveal.js/test/test.html +86 -0
  111. data/assets/modules/reveal.js/test/test.js +597 -0
  112. metadata +117 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 011c982f4861524265d3041ca8292f6315dc3945
4
- data.tar.gz: 4b8522e617e57c43358e89c6b144b7fb597d445f
3
+ metadata.gz: 2c8e08b64e16460ab23378e9cf9fce91e22e0ff4
4
+ data.tar.gz: cf136ee87cdfe856cb71df04db78f838dd2354dc
5
5
  SHA512:
6
- metadata.gz: 3dbb0ec37d22aff058cebd6b9df6c0d4b57fe814efbe96641ebdaa04c2ff6f9ff48fd26c72d2d02048ee4ee3659e050baebb54c7570779a31228205d29ef3b28
7
- data.tar.gz: 030239fd0eeaa2b14afec04676eb861a6332a2b9fcfe757baeefd08cabee9b2bf0860dc740a1ee209c3fb0abd49be1dc774e8f954b4a4a0f70ce4f57b8100846
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
- ## Screenshots
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
- ![Alt text](https://github.com/gadgetry-io/theme/blob/master/docs/images/home.png "Home Page")
104
+
105
+ ![Alt text](./docs/images/home.png?raw=true "Home Page")
75
106
 
76
107
  <hr>
108
+
77
109
  ### Palette
78
- ![Alt text](https://github.com/gadgetry-io/theme/blob/master/docs/images/palette.png "Palette")
110
+
111
+ ![Alt text](./docs/images/palette.png?raw=true "Palette")
79
112
 
80
113
  <hr>
114
+
81
115
  ### Custom Bootstrap Theme
82
- ![Alt text](https://github.com/gadgetry-io/theme/blob/master/docs/images/theme.png "Custom Theme")
116
+
117
+ ![Alt text](./docs/images/theme.png?raw=true "Custom Theme")
83
118
 
84
119
  <hr>
120
+
85
121
  ### Lunr Search
86
- ![Alt text](https://github.com/gadgetry-io/theme/blob/master/docs/images/search.png "Lunr Search")
122
+
123
+ ![Alt text](./docs/images/search.png?raw=true "Lunr Search")
87
124
 
88
125
  <hr>
126
+
89
127
  ### Search Results
90
- ![Alt text](https://github.com/gadgetry-io/theme/blob/master/docs/images/search-results.png "Search Results")
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
- ![Alt text](https://github.com/gadgetry-io/theme/blob/master/docs/images/about.png "About")
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! To test your theme, run `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.
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.
@@ -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>
@@ -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">Hobbyist</span>
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>
@@ -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
- 2016-09-01-what-is-bacon-ipsum.md
73
- 2016-09-02-what-is-lorem-ipsum.md
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,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,5 @@
1
+ language: node_js
2
+ node_js:
3
+ - 4.1.1
4
+ before_script:
5
+ - npm install -g grunt-cli
@@ -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
+ };