Skip to content

Commit

Permalink
More minor little bits for windows compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jbt committed Jun 26, 2012
1 parent 38f954b commit 84d66cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var mkdirp = require('mkdirp'),
* @param {string} outDir The directory into which to put all the doc pages
* @param {boolean} onlyUpdated Whether to only process files that have been updated
*/
var Docker = module.exports =function(inDir, outDir, onlyUpdated, colourScheme, ignoreHidden){
var Docker = module.exports = function(inDir, outDir, onlyUpdated, colourScheme, ignoreHidden){
this.inDir = inDir.replace(/\/$/,'');
this.outDir = outDir;
this.onlyUpdated = !!onlyUpdated;
Expand Down Expand Up @@ -759,7 +759,7 @@ Docker.prototype.renderCodeHtml = function(sections, filename, cb){
content: content,
headings: headings,
colourScheme: this.colourScheme,
filename: filename.replace(this.inDir,'').replace(/^\//,'')
filename: filename.replace(this.inDir,'').replace(/^[\/\\]/,'')
});

var self = this;
Expand Down Expand Up @@ -813,7 +813,7 @@ Docker.prototype.renderMarkdownHtml = function(content, filename, cb){
content: content,
headings: headings,
colourScheme: this.colourScheme,
filename: filename.replace(this.inDir,'').replace(/^\//,'')
filename: filename.replace(this.inDir,'').replace(/^[\\\/]/,'')
});

// Recursively create the output directory, clean out any old version of the
Expand Down

0 comments on commit 84d66cb

Please sign in to comment.