From 482039b40d8315916460f4065e73e9806af2da81 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Sat, 21 Apr 2012 19:30:21 -0700 Subject: README. Config cleanup --- README.html | 104 +++++++++++++++++++++++++++++++++++++++++++ README.md | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ serve.sh | 2 +- slide_config.json | 6 --- 4 files changed, 234 insertions(+), 7 deletions(-) create mode 100644 README.html create mode 100644 README.md diff --git a/README.html b/README.html new file mode 100644 index 0000000..3f586de --- /dev/null +++ b/README.html @@ -0,0 +1,104 @@ + + +

HTML5 Slide Template

+ +

Configuring the slides

+

Much of the deck is customized by changing the settings in slide_config.json. +Some of the customizations include the title, Analytics tracking ID, speaker +information (name, social urls, blog), web fonts to load, themes, and other +general behavior.

+

Customizing the #io2012 hash

+

The bottom of the slides include #io2012 by default. If you'd like to change +this, please update the variable $social-tags: '#io2012'; in +/theme/scss/default.scss.

+

See the next section on "Editing CSS" before you go editing things.

+

Editing CSS

+

Compass is a CSS preprocessor used to compile +SCSS/SASS into CSS. We chose SCSS for the new slide deck for maintainability, +easier browser compatibility, and because...it's the future!

+

That said, if not comfortable working with SCSS or don't want to learn something +new, not a problem. The generated .css files can already be found in +(see /theme/css). You can just edit those and bypass SCSS altogether. +However, our recommendation is to use Compass. It's super easy to install and use.

+

Installing Compass and making changes

+

First, install compass:

+
sudo gem update --system
+sudo gem install compass
+
+

Next, you'll want to watch for changes to the exiting .scss files in /theme/scss +and any new one you add:

+
$ cd io-2012-slides
+$ compass watch
+
+

This command automatically recompiles the .scss file when you make a change. +Its corresponding .css file is output to /theme/css. Slick.

+

By default, config.rb in the main project folder outputs minified +.css. It's a best practice after all! However, if you want unminified files, +run watch with the style output flag:

+
compass watch -s expanded
+
+

Note: You should not need to edit _base.scss.

+

Running the slides

+

The slides can be run locally from file:// making development easy :)

+

Running from a web server

+

If at some point you should need a web server, use serve.sh. It will +launch a simple one and point your default browser to http://localhost:8000/template.html:

+
$ cd io-2012-slides
+$ ./serve.sh
+
+

You can also specify a custom port:

+
$ ./serve.sh 8080
+
+

Presenter mode

+

The slides contain a presenter mode feature (beta) to view + control the slides +from a popup window.

+

To enable presenter mode, add presentme=true to the URL: http://localhost:8000/template.html?presentme=true

+

To disable presenter mode, hit http://localhost:8000/template.html?presentme=false

+

Presenter mode is sticky, so refreshing the page will persist your settings.

+
+

That's all she wrote!

\ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..96dab9d --- /dev/null +++ b/README.md @@ -0,0 +1,129 @@ + + +

HTML5 Slide Template

+ +## Configuring the slides + +Much of the deck is customized by changing the settings in [`slide_config.json`](slide_config.json). +Some of the customizations include the title, Analytics tracking ID, speaker +information (name, social urls, blog), web fonts to load, themes, and other +general behavior. + +### Customizing the `#io2012` hash + +The bottom of the slides include `#io2012` by default. If you'd like to change +this, please update the variable `$social-tags: '#io2012';` in +[`/theme/scss/default.scss`](theme/scss/default.scss). + +See the next section on "Editing CSS" before you go editing things. + +## Editing CSS + +[Compass](http://compass-style.org/install/) is a CSS preprocessor used to compile +SCSS/SASS into CSS. We chose SCSS for the new slide deck for maintainability, +easier browser compatibility, and because...it's the future! + +That said, if not comfortable working with SCSS or don't want to learn something +new, not a problem. The generated .css files can already be found in +(see [`/theme/css`](theme/css)). You can just edit those and bypass SCSS altogether. +However, our recommendation is to use Compass. It's super easy to install and use. + +### Installing Compass and making changes + +First, install compass: + + sudo gem update --system + sudo gem install compass + +Next, you'll want to watch for changes to the exiting .scss files in [`/theme/scss`](theme/scss) +and any new one you add: + + $ cd io-2012-slides + $ compass watch + +This command automatically recompiles the .scss file when you make a change. +Its corresponding .css file is output to [`/theme/css`](theme/css). Slick. + +By default, [`config.rb`](config.rb) in the main project folder outputs minified +.css. It's a best practice after all! However, if you want unminified files, +run watch with the style output flag: + + compass watch -s expanded + +*Note:* You should not need to edit [`_base.scss`](theme/scss/_base.scss). + +## Running the slides + +The slides can be run locally from `file://` making development easy :) + +### Running from a web server + +If at some point you should need a web server, use [`serve.sh`](serve.sh). It will +launch a simple one and point your default browser to [`http://localhost:8000/template.html`](http://localhost:8000/template.html): + + $ cd io-2012-slides + $ ./serve.sh + +You can also specify a custom port: + + $ ./serve.sh 8080 + +### Presenter mode + +The slides contain a presenter mode feature (beta) to view + control the slides +from a popup window. + +To enable presenter mode, add `presentme=true` to the URL: [http://localhost:8000/template.html?presentme=true](http://localhost:8000/template.html?presentme=true) + +To disable presenter mode, hit [http://localhost:8000/template.html?presentme=false](http://localhost:8000/template.html?presentme=false) + +Presenter mode is sticky, so refreshing the page will persist your settings. + +--- + +That's all she wrote! diff --git a/serve.sh b/serve.sh index 825b7cc..9663bad 100755 --- a/serve.sh +++ b/serve.sh @@ -12,4 +12,4 @@ then port=8000 fi -open http://localhost:$port && python -m SimpleHTTPServer $port; \ No newline at end of file +open http://localhost:$port/template.html && python -m SimpleHTTPServer $port; diff --git a/slide_config.json b/slide_config.json index 8706255..0b37874 100644 --- a/slide_config.json +++ b/slide_config.json @@ -32,9 +32,3 @@ var SLIDE_CONFIG = { }*/] }; -// SPEAKER MODE ---------------------------------------------------------------- -// To turn on the presenter mode (popup), add the presentme=true parameter: -// http://localhost/io-2012-slides/template.html?presentme=true -// -// To disable presenter mode, set presentme=false: -// http://localhost/io-2012-slides/template.html?presentme=false -- cgit v1.2.3