Skip to content

Commit

Permalink
refactored folder structure, added /plugins which is initially only u…
Browse files Browse the repository at this point in the history
…sed by hakimel#57
  • Loading branch information
hakimel committed Jul 10, 2012
1 parent e7c5de2 commit f57de20
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -264,7 +264,7 @@ <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
</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
Expand Down Expand Up @@ -314,14 +314,14 @@ <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
} );

// 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>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/slidenotes/index.js → plugin/slidenotes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
});
Expand All @@ -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
}));
Expand Down
File renamed without changes.

0 comments on commit f57de20

Please sign in to comment.