Skip to content

Commit

Permalink
Update reveal, reorganize.
Browse files Browse the repository at this point in the history
  • Loading branch information
guifromrio committed May 12, 2014
1 parent 3307321 commit 5b2a7ff
Show file tree
Hide file tree
Showing 83 changed files with 1,326 additions and 5,117 deletions.
58 changes: 58 additions & 0 deletions Gruntfile.coffee
@@ -0,0 +1,58 @@
module.exports = (grunt) ->
pkg = grunt.file.readJSON('package.json')
verbose = grunt.option('verbose')
open = "http://localhost:1990"
errorHandler = (err, req, res, next) ->
errString = err.code?.red ? err.toString().red
grunt.log.warn(errString, req.url.yellow)

config =
less:
main:
files: [
expand: true
src: ['assets/**/*.less']
dest: "."
ext: '.css'
]

connect:
http:
options:
hostname: "*"
open: open
port: 1990
middleware: [
require('connect-livereload')({disableCompression: true})
require('connect').static('./')
errorHandler
]

watch:
options:
livereload: true
spawn: false
less:
options:
livereload: false
files: ['assets/**/*.less']
tasks: ['less']
main:
files: ['assets/**/*.css', '**/*.html']
grunt:
files: ['Gruntfile.coffee']

tasks =
# Building block tasks
build: ['less']
# Deploy tasks
dist: ['build'] # Dist - minifies files
# Development tasks
default: ['build', 'connect', 'watch']
devmin: ['build', 'min',
'connect:http:keepalive'] # Minifies files and serve

# Project configuration.
grunt.initConfig config
grunt.loadNpmTasks name for name of pkg.devDependencies when name[0..5] is 'grunt-'
grunt.registerTask taskName, taskArray for taskName, taskArray of tasks
33 changes: 0 additions & 33 deletions Gruntfile.js

This file was deleted.

17 changes: 0 additions & 17 deletions README.md
Expand Up @@ -23,20 +23,3 @@ You're done! Now run grunt:
grunt

And you can access your presentations under `localhost:9001/folder/index.html`

## Structure

css/
css files and fonts

lib/
all reveal files, dependencies and plugins

other-folders/
Presentations!

**Note**: Reveal.js `@imports` Google's web fonts for ease of use. However, for quicker reloading and
comfortable offline development, I have downloaded my preferred fonts to the css folder and created a custom
`fonts.css`. To do so, simply follow the links on the `@imports` on Reveals themes and change the urls on the css files.

**Linux Chrome users**: Apparently, there is some instability with 3D Transformations on Chrome right now. Opening your Chrome with "--ignore-gpu-blacklist" resolves the issue, as per the instructions in [this Reveal.js issue](https://github.com/hakimel/reveal.js/issues/259)
6 changes: 6 additions & 0 deletions assets/reveal.js-2.6.2/.gitignore
@@ -0,0 +1,6 @@
.DS_Store
.svn
log/*.log
tmp/**
node_modules/
.sass-cache
5 changes: 5 additions & 0 deletions assets/reveal.js-2.6.2/.travis.yml
@@ -0,0 +1,5 @@
language: node_js
node_js:
- 0.8
before_script:
- npm install -g grunt-cli
19 changes: 19 additions & 0 deletions assets/reveal.js-2.6.2/LICENSE
@@ -0,0 +1,19 @@
Copyright (C) 2014 Hakim El Hattab, http://hakim.se

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

0 comments on commit 5b2a7ff

Please sign in to comment.