This plugin requires Grunt 0.4.
You need just one file. Download it and save as shower/shower.min.js
.
Download one of Shower themes.
npm install grunt-shower-markdown --save-dev
Add somewhere in your Gruntfile.js
:
grunt.loadNpmTasks('grunt-shower-markdown');
Add a section named shower
into your Gruntfile.js
file. See Parameters section below for details.
Type: string
, default: first line of source file.
Presentation title (used in <title>
tag).
Type: string
, default: <target>.md
.
Path of Markdown source file.
Type: string
, default: <target>.html
.
Path of destination HTML file.
Type: string
, default: en
.
Presentation language.
Type: string
, default: themes/ribbon
.
Path where theme of presentation is located.
Type: array|string
, optional.
List of CSS files specific to your presentation.
Type: array|string
, optional.
List of JavaScript files specific to your presentation.
Type: string
, default: true
.
Hides progress bar when false
.
Type: string
, optional.
Any HTML to put before </body>
. Google Analytics for example.
module.exports = function(grunt) {
grunt.initConfig({
shower: {
index: {
title: 'Test presentation',
src: 'src/index.md',
styles: 'src/styles.css'
scripts: [
'libs/highlight.js',
'src/scripts.js'
]
}
},
watch: {
shower: {
files: 'src/*',
tasks: 'shower'
}
}
});
grunt.loadNpmTasks('grunt-shower-markdown');
grunt.registerTask('default', ['shower']);
};
# Presentation Title
[Author](http://sapegin.me) and any other content to show above slides.
!SLIDE #SlideID class1 class2
## Slide Title
![Image](pictures/pic.png)
![Image with custom classes](pictures/pic2.png) .place .r .b
<p class="note">Some HTML</p>
- List item one
-? Two (delayed)
-? Three (delayed)
!SLIDE #Cover shoot
## Hello world!
!SLIDE
## Code example
```
@@concat@@: {
main: {
text: @@@'Hello world'@@@
}
}
```
You can use GitHub flavored Markdown with some extenstions.
If you want to delay display of list items, put ?
after list marker:
- One
-? Two (delayed)
-? Three (delayed)
You can highlight important parts of presentation using @@text@@
(important) and @@@text@@@
(very important):
@@concat@@: {
main: {
text: @@@'Hello world'@@@
}
}
![](pictures/pony.png) .place .r .b
The changelog can be found in the Changelog.md
file.
The MIT License, see the included License.md
file.