From 54f1fcf381dcf23e54f2b942268aa799969fa9ea Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 9 Jul 2012 21:30:54 -0400 Subject: [PATCH] slidenotes becomes speakernotes to match wording in readme --- README.md | 4 ++-- index.html | 2 +- plugin/{slidenotes => speakernotes}/client.js | 0 plugin/{slidenotes => speakernotes}/index.js | 6 +++--- plugin/{slidenotes => speakernotes}/notes.html | 0 5 files changed, 6 insertions(+), 6 deletions(-) rename plugin/{slidenotes => speakernotes}/client.js (100%) rename plugin/{slidenotes => speakernotes}/index.js (86%) rename plugin/{slidenotes => speakernotes}/notes.html (100%) diff --git a/README.md b/README.md index fc30805..89c1115 100644 --- a/README.md +++ b/README.md @@ -120,11 +120,11 @@ You'll also need to [install Node.js](http://nodejs.org/); then, install the ser Once Node.js and the dependencies are installed, run the following command from the root directory: - node plugin/slidenotes + node plugin/speakernotes By default, the slides will be served at [localhost:1947](http://localhost:1947). -You can change the appearance of the speaker notes by editing the file at `plugin/slidenotes/notes.html`. +You can change the appearance of the speaker notes by editing the file at `plugin/speakernotes/notes.html`. ### Known Issues diff --git a/index.html b/index.html index 088cad0..253197c 100644 --- a/index.html +++ b/index.html @@ -323,7 +323,7 @@ linkify( 'a' ); // If we're runnning the notes server we need to include some additional JS // TODO Is there a better way to determine if we're running the notes server? if( window.location.host === 'localhost:1947' ) { - head.js( 'socket.io/socket.io.js', 'plugin/slidenotes/client.js' ); + head.js( 'socket.io/socket.io.js', 'plugin/speakernotes/client.js' ); } diff --git a/plugin/slidenotes/client.js b/plugin/speakernotes/client.js similarity index 100% rename from plugin/slidenotes/client.js rename to plugin/speakernotes/client.js diff --git a/plugin/slidenotes/index.js b/plugin/speakernotes/index.js similarity index 86% rename from plugin/slidenotes/index.js rename to plugin/speakernotes/index.js index 1be941e..e8c8023 100644 --- a/plugin/slidenotes/index.js +++ b/plugin/speakernotes/index.js @@ -32,12 +32,12 @@ app.get("/", function(req, res) { app.get("/notes/:socketId", function(req, res) { - fs.readFile(opts.baseDir + 'plugin/slidenotes/notes.html', function(err, data) { + fs.readFile(opts.baseDir + 'plugin/speakernotes/notes.html', function(err, data) { res.send(Mustache.to_html(data.toString(), { socketId : req.params.socketId })); }); - // fs.createReadStream(opts.baseDir + 'slidenotes/notes.html').pipe(res); + // fs.createReadStream(opts.baseDir + 'speakernotes/notes.html').pipe(res); }); // Actually listen @@ -49,7 +49,7 @@ var brown = '\033[33m', var slidesLocation = "http://localhost" + ( opts.port ? ( ':' + opts.port ) : '' ); -console.log( brown + "reveal.js - Slide Notes" + reset ); +console.log( brown + "reveal.js - Speaker Notes" + reset ); console.log( "1. Open the slides at " + green + slidesLocation + reset ); console.log( "2. Click on the link your JS console to go to the notes page" ); console.log( "3. Advance through your slides and your notes will advance automatically" ); diff --git a/plugin/slidenotes/notes.html b/plugin/speakernotes/notes.html similarity index 100% rename from plugin/slidenotes/notes.html rename to plugin/speakernotes/notes.html