Permalink
Browse files

further changes and refinement

  • Loading branch information...
1 parent 80b91e4 commit 917e1b158276e63b5e873cd605293ae796eebe6f @neocotic neocotic committed Mar 19, 2013
Showing with 12 additions and 11 deletions.
  1. +8 −8 docco.js
  2. +4 −3 docco.litcoffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -77,16 +77,17 @@ assets, reading all the source files in, splitting them up into prose+code
sections, highlighting each file in the appropriate language, and printing them
out in an HTML template.
- document = (options = {}, callback = (error) -> throw error if error) ->
+ document = (options = {}, callback) ->
configure options
exec "mkdir -p #{config.output}", ->
- complete = ->
+ callback ?= (error) -> throw error if error
+ complete = ->
exec [
"cp -f #{config.css} #{config.output}"
"cp -fR #{config.public} #{config.output}" if fs.existsSync config.public
- ].join('&'), callback
+ ].join('&&'), callback
files = config.sources.slice()

0 comments on commit 917e1b1

Please sign in to comment.