Skip to content

Commit

Permalink
gratuitous change?
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed May 23, 2011
1 parent f61d2dc commit 4c5f6d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/docco.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ destination = (filepath) ->
'docs/' + path.basename(filepath, path.extname(filepath)) + '.html'

# Ensure that the destination directory exists.
ensure_directory = (callback) ->
exec 'mkdir -p docs', -> callback()
ensure_directory = (dir, callback) ->
exec "mkdir -p #{dir}", -> callback()

# Micro-templating, originally by John Resig, borrowed by way of
# [Underscore.js](http://documentcloud.github.com/underscore/).
Expand Down Expand Up @@ -196,7 +196,7 @@ highlight_end = '</pre></div>'
# For each source file passed in as an argument, generate the documentation.
sources = process.ARGV.sort()
if sources.length
ensure_directory ->
ensure_directory 'docs', ->
fs.writeFile 'docs/docco.css', docco_styles
files = sources.slice(0)
next_file = -> generate_documentation files.shift(), next_file if files.length
Expand Down

0 comments on commit 4c5f6d4

Please sign in to comment.