From 73f4695a794e5ddda7cb2ecfdfec1d23d05abd9f Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Wed, 24 Apr 2019 19:00:55 +0200
Subject: [PATCH] moving theme docs around

---
 .editorconfig                                |  10 --------
 Gruntfile.coffee                             |  23 +++++++++----------
 img                                          |   1 -
 favicon.ico => slides/img/favicon.ico        | Bin
 slides/index.md                              |   2 +-
 slides/thanks.md                             |   2 +-
 {css => theme/css}/style.css                 |   0
 {js => theme/js}/loadhtmlslides.js           |   0
 {templates => theme/templates}/_index.html   |  10 ++++----
 {templates => theme/templates}/_section.html |   0
 10 files changed, 18 insertions(+), 30 deletions(-)
 delete mode 100644 .editorconfig
 delete mode 120000 img
 rename favicon.ico => slides/img/favicon.ico (100%)
 rename {css => theme/css}/style.css (100%)
 rename {js => theme/js}/loadhtmlslides.js (100%)
 rename {templates => theme/templates}/_index.html (90%)
 rename {templates => theme/templates}/_section.html (100%)

diff --git a/.editorconfig b/.editorconfig
deleted file mode 100644
index 0ea0cc46..00000000
--- a/.editorconfig
+++ /dev/null
@@ -1,10 +0,0 @@
-# http://editorconfig.org
-root = true
-
-[*]
-indent_style = space
-indent_size = 4
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
diff --git a/Gruntfile.coffee b/Gruntfile.coffee
index 2eae5b6e..6a71246e 100644
--- a/Gruntfile.coffee
+++ b/Gruntfile.coffee
@@ -20,13 +20,13 @@ module.exports = (grunt) ->
                     'index.html'
                     'slides/*.md'
                     'slides/*.html'
-                    'js/*.js'
+                    'theme/js/*.js'
                 ]
 
             index:
                 files: [
-                    'templates/_index.html'
-                    'templates/_section.html'
+                    'theme/templates/_index.html'
+                    'theme/templates/_section.html'
                     'slides/list.json'
                 ]
                 tasks: ['buildIndex']
@@ -36,7 +36,7 @@ module.exports = (grunt) ->
                 tasks: ['coffeelint']
 
             jshint:
-                files: ['js/*.js']
+                files: ['theme/js/*.js']
                 tasks: ['jshint']
 
         connect:
@@ -64,7 +64,7 @@ module.exports = (grunt) ->
             options:
                 jshintrc: '.jshintrc'
 
-            all: ['js/*.js']
+            all: ['theme/js/*.js']
 
         copy:
 
@@ -74,10 +74,9 @@ module.exports = (grunt) ->
                     src: [
                         'slides/**'
                         'bower_components/**'
-                        'css/**'
-                        'js/**'
-                        'img/**'
-                        'favicon.ico'
+                        'theme/css/**'
+                        'theme/js/**'
+                        'slides/img/**'
                     ]
                     dest: 'public/'
                 },{
@@ -92,10 +91,10 @@ module.exports = (grunt) ->
     require('load-grunt-tasks')(grunt)
 
     grunt.registerTask 'buildIndex',
-        'Build index.html from templates/_index.html and slides/list.json.',
+        'Build theme/templates/_index.html and slides/list.json.',
         ->
-            indexTemplate = grunt.file.read 'templates/_index.html'
-            sectionTemplate = grunt.file.read 'templates/_section.html'
+            indexTemplate = grunt.file.read 'theme/templates/_index.html'
+            sectionTemplate = grunt.file.read 'theme/templates/_section.html'
             slides = grunt.file.readJSON 'slides/list.json'
 
             html = grunt.template.process indexTemplate, data:
diff --git a/img b/img
deleted file mode 120000
index f2a30196..00000000
--- a/img
+++ /dev/null
@@ -1 +0,0 @@
-slides/img
\ No newline at end of file
diff --git a/favicon.ico b/slides/img/favicon.ico
similarity index 100%
rename from favicon.ico
rename to slides/img/favicon.ico
diff --git a/slides/index.md b/slides/index.md
index 17c7dcc8..67717c64 100644
--- a/slides/index.md
+++ b/slides/index.md
@@ -3,7 +3,7 @@
 #### Month XYth, 2019
 
 <div style="top: 6em; left: 0%; position: absolute;">
-    <img src="img/lcsb_bg.png">
+    <img src="slides/img/lcsb_bg.png">
 </div>
 
 <div style="top: 15em; left: 60%; position: absolute;">
diff --git a/slides/thanks.md b/slides/thanks.md
index 495f26d9..7eb6d2f0 100644
--- a/slides/thanks.md
+++ b/slides/thanks.md
@@ -1,6 +1,6 @@
 ## Thank you.
 
-<center><img src="img/r3-training-logo.png" height="200px"></center>
+<center><img src="slides/img/r3-training-logo.png" height="200px"></center>
 
 Contact us if you need help:
 
diff --git a/css/style.css b/theme/css/style.css
similarity index 100%
rename from css/style.css
rename to theme/css/style.css
diff --git a/js/loadhtmlslides.js b/theme/js/loadhtmlslides.js
similarity index 100%
rename from js/loadhtmlslides.js
rename to theme/js/loadhtmlslides.js
diff --git a/templates/_index.html b/theme/templates/_index.html
similarity index 90%
rename from templates/_index.html
rename to theme/templates/_index.html
index d2558f90..187487ce 100644
--- a/templates/_index.html
+++ b/theme/templates/_index.html
@@ -15,7 +15,7 @@
 
         <link rel="stylesheet" href="bower_components/reveal.js/css/theme/lcsb.css" id="theme">
 
-        <link rel="stylesheet" href="css/style.css">
+        <link rel="stylesheet" href="theme/css/style.css">
 
         <!-- For syntax highlighting -->
         <link rel="stylesheet" href="bower_components/reveal.js/lib/css/zenburn.css" id="highlight-theme">
@@ -29,7 +29,7 @@
         <script src="lib/js/html5shiv.js"></script>
         <![endif]-->
 
-        <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
+        <link rel="shortcut icon" type="image/x-icon" href="slides/img/favicon.ico" />
         <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato" />
     </head>
 
@@ -52,10 +52,10 @@
                 <% }); %>
             </div>
             <div class="bottomLogoLeft">
-                <img src="img/University-of-Luxembourg-Fr-01.svg" height="110px">
+                <img src="slides/img/University-of-Luxembourg-Fr-01.svg" height="110px">
             </div>
             <div class="bottomLogoRight">
-                    <img src="img/LCSB_short_small_4c_cropped.svg" height="86px">
+                    <img src="slides/img/LCSB_short_small_4c_cropped.svg" height="86px">
             </div>
         </div>
 
@@ -86,7 +86,7 @@
                     // { src: 'plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
                     //{ src: 'bower_components/reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
 
-                    { src: 'js/loadhtmlslides.js', condition: function() { return !!document.querySelector( '[data-html]' ); } }
+                    { src: 'theme/js/loadhtmlslides.js', condition: function() { return !!document.querySelector( '[data-html]' ); } }
                 ]
             });
         </script>
diff --git a/templates/_section.html b/theme/templates/_section.html
similarity index 100%
rename from templates/_section.html
rename to theme/templates/_section.html
-- 
GitLab