aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-01-28 08:52:15 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-01-28 08:52:15 +0100
commit3b45b618b8f2f3c757a4c4645a381791ece71da8 (patch)
treec9f9343c6ddd9e60525f4e26684800b07493ba08
parentdf3852487470bbba55009404769e4c34b700c448 (diff)
downloadfosdem-2018-presentation-3b45b618b8f2f3c757a4c4645a381791ece71da8.tar
fosdem-2018-presentation-3b45b618b8f2f3c757a4c4645a381791ece71da8.tar.gz
dynamic file mapping to avoid themes hardcoded in gruntfile
-rw-r--r--Gruntfile.js22
-rw-r--r--css/theme/README.md6
2 files changed, 11 insertions, 17 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 3e67b9f..3b9f98e 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -36,19 +36,15 @@ module.exports = function(grunt) {
}
},
themes: {
- files: {
- 'css/theme/black.css': 'css/theme/source/black.scss',
- 'css/theme/white.css': 'css/theme/source/white.scss',
- 'css/theme/league.css': 'css/theme/source/league.scss',
- 'css/theme/beige.css': 'css/theme/source/beige.scss',
- 'css/theme/night.css': 'css/theme/source/night.scss',
- 'css/theme/serif.css': 'css/theme/source/serif.scss',
- 'css/theme/simple.css': 'css/theme/source/simple.scss',
- 'css/theme/sky.css': 'css/theme/source/sky.scss',
- 'css/theme/moon.css': 'css/theme/source/moon.scss',
- 'css/theme/solarized.css': 'css/theme/source/solarized.scss',
- 'css/theme/blood.css': 'css/theme/source/blood.scss'
- }
+ files: [
+ {
+ expand: true,
+ cwd: 'css/theme/source',
+ src: ['*.scss'],
+ dest: 'css/theme',
+ ext: '.css'
+ }
+ ]
}
},
diff --git a/css/theme/README.md b/css/theme/README.md
index aa0b131..9822563 100644
--- a/css/theme/README.md
+++ b/css/theme/README.md
@@ -17,7 +17,5 @@ Declares a set of custom variables that the template file (step 4) expects. Can
3. **Override**
This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please.
-4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)**
-The template theme file which will generate final CSS output based on the currently defined variables.
-
-When you are done, run `css-grunt themes` to compile the Sass file to CSS and you are ready to use your new theme.
+4. **Run `css-grunt themes`**
+This will compile your theme CSS. It's now ready to use.