         write_func()
 
 
-generate_readme = (context, sources) ->
+generate_readme = (context, sources, package_json) ->
   title = "README"
   dest = "docs/readme.html"
   source = "README.md"


    callback(sources, project_name, args)

parse_args (sources, project_name, raw_paths) ->
  # Rather than relying on globals, let's pass around a context w/ misc info
  # that we require down the line.
  context = sources: sources, project_name: project_name

  ensure_directory 'docs', ->
    fs.writeFile 'docs/docco.css', docco_styles
    files = sources[0..sources.length]
    next_file = -> generate_documentation files.shift(), context, next_file if files.length
    next_file()
    generate_readme(context, raw_paths)


  readme_template  = jade.compile fs.readFileSync(__dirname + '/../resources/readme.jade').toString(), { filename: __dirname + '/../resources/readme.jade' }
  readme_path = process.cwd() + '/README.md'
  readme_markdown = if file_exists(readme_path) then fs.readFileSync(readme_path).toString() else "There is no README.md for this project yet :( "

  content = showdown.makeHtml readme_markdown

