aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-07-09 21:00:51 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-07-09 21:00:51 -0400
commitf57de200ec32861835c9582090d52c70e73dace9 (patch)
tree79830bdec71f7c3dc882c496e785b4348a733390
parente7c5de23d7dc318babaee0fda69f4246a186f01a (diff)
downloadperl-software-in-gnu-guix-f57de200ec32861835c9582090d52c70e73dace9.tar
perl-software-in-gnu-guix-f57de200ec32861835c9582090d52c70e73dace9.tar.gz
refactored folder structure, added /plugins which is initially only used by #57
-rw-r--r--README.md4
-rw-r--r--css/main.css2
-rw-r--r--index.html8
-rw-r--r--lib/css/zenburn.css (renamed from lib/highlight/zenburn.css)0
-rw-r--r--lib/font/league_gothic-webfont.ttf (renamed from lib/leaguegothic/league_gothic-webfont.ttf)bin42324 -> 42324 bytes
-rw-r--r--lib/font/league_gothic_license (renamed from lib/leaguegothic/LICENSE)0
-rw-r--r--lib/js/classList.js (renamed from lib/polyfills/classList.js)0
-rw-r--r--lib/js/head.min.js (renamed from lib/head/head.min.js)0
-rw-r--r--lib/js/highlight.js (renamed from lib/highlight/highlight.js)0
-rw-r--r--plugin/slidenotes/client.js (renamed from lib/slidenotes/client.js)0
-rw-r--r--plugin/slidenotes/index.js (renamed from lib/slidenotes/index.js)4
-rw-r--r--plugin/slidenotes/notes.html (renamed from lib/slidenotes/notes.html)0
12 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index c8cc4a2..3087fac 100644
--- a/README.md
+++ b/README.md
@@ -118,7 +118,7 @@ Once Node.js and the dependencies are installed, run the following command from
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 `lib/slidenotes/notes.html`.
+You can change the appearance of the speaker notes by editing the file at `plugin/slidenotes/notes.html`.
### Known Issues
@@ -159,7 +159,7 @@ You can change the appearance of the speaker notes by editing the file at `lib/s
- API methods for adding or removing all event listeners
- The 'slidechange' event now includes currentSlide and previousSlide
- Fixed bug where 'slidechange' was firing twice when history was enabled
-- Changed /lib structure
+- Folder structure updates for scalability (see /lib & /plugin)
- Slide notes by [rmurphey](https://github.com/rmurphey)
#### 1.3
diff --git a/css/main.css b/css/main.css
index ba33137..93d3d20 100644
--- a/css/main.css
+++ b/css/main.css
@@ -12,7 +12,7 @@
@font-face {
font-family: 'League Gothic';
- src: url('../lib/leaguegothic/league_gothic-webfont.ttf') format('truetype');
+ src: url('../lib/font/league_gothic-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
diff --git a/index.html b/index.html
index 4441cce..d2dfdab 100644
--- a/index.html
+++ b/index.html
@@ -18,7 +18,7 @@
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/print.css" type="text/css" media="print">
- <link rel="stylesheet" href="lib/highlight/zenburn.css">
+ <link rel="stylesheet" href="lib/css/zenburn.css">
</head>
<body>
@@ -264,7 +264,7 @@ linkify( 'a' );
</div>
<!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
- <script src="lib/head/head.min.js"></script>
+ <script src="lib/js/head.min.js"></script>
<script>
// Load the main reveal.js script
@@ -314,14 +314,14 @@ linkify( 'a' );
} );
// Load third party scripts
- head.js( 'lib/highlight/highlight.js', 'lib/polyfills/classList.js', function() {
+ head.js( 'lib/js/highlight.js', 'lib/js/classList.js', function() {
// Fire off syntax highlighting for potential code samples in the slides
hljs.initHighlightingOnLoad();
} );
// If we're runnning the notes server we need to include some additional JS
if( window.location.host === 'localhost:1947' ) {
- head.js( 'socket.io/socket.io.js', 'lib/slidenotes/client.js' );
+ head.js( 'socket.io/socket.io.js', 'plugin/slidenotes/client.js' );
}
</script>
diff --git a/lib/highlight/zenburn.css b/lib/css/zenburn.css
index f4070ca..f4070ca 100644
--- a/lib/highlight/zenburn.css
+++ b/lib/css/zenburn.css
diff --git a/lib/leaguegothic/league_gothic-webfont.ttf b/lib/font/league_gothic-webfont.ttf
index 29f896a..29f896a 100644
--- a/lib/leaguegothic/league_gothic-webfont.ttf
+++ b/lib/font/league_gothic-webfont.ttf
Binary files differ
diff --git a/lib/leaguegothic/LICENSE b/lib/font/league_gothic_license
index 29513e9..29513e9 100644
--- a/lib/leaguegothic/LICENSE
+++ b/lib/font/league_gothic_license
diff --git a/lib/polyfills/classList.js b/lib/js/classList.js
index 44f2b4c..44f2b4c 100644
--- a/lib/polyfills/classList.js
+++ b/lib/js/classList.js
diff --git a/lib/head/head.min.js b/lib/js/head.min.js
index 6242b0f..6242b0f 100644
--- a/lib/head/head.min.js
+++ b/lib/js/head.min.js
diff --git a/lib/highlight/highlight.js b/lib/js/highlight.js
index 12d24df..12d24df 100644
--- a/lib/highlight/highlight.js
+++ b/lib/js/highlight.js
diff --git a/lib/slidenotes/client.js b/plugin/slidenotes/client.js
index 1aba8b8..1aba8b8 100644
--- a/lib/slidenotes/client.js
+++ b/plugin/slidenotes/client.js
diff --git a/lib/slidenotes/index.js b/plugin/slidenotes/index.js
index 206996d..41282a3 100644
--- a/lib/slidenotes/index.js
+++ b/plugin/slidenotes/index.js
@@ -21,7 +21,7 @@ io.sockets.on('connection', function(socket) {
});
app.configure(function() {
- [ 'css', 'assets', 'js', 'lib' ].forEach(function(dir) {
+ [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) {
app.use('/' + dir, staticDir(opts.baseDir + dir));
});
});
@@ -32,7 +32,7 @@ app.get("/", function(req, res) {
app.get("/notes/:socketId", function(req, res) {
- fs.readFile(opts.baseDir + 'lib/slidenotes/notes.html', function(err, data) {
+ fs.readFile(opts.baseDir + 'plugin/slidenotes/notes.html', function(err, data) {
res.send(Mustache.to_html(data.toString(), {
socketId : req.params.socketId
}));
diff --git a/lib/slidenotes/notes.html b/plugin/slidenotes/notes.html
index 88924c0..88924c0 100644
--- a/lib/slidenotes/notes.html
+++ b/plugin/slidenotes/notes.html