eliias / grunt-docco

Uses docco to generate nice HTML docs out of your annotated source.
MIT License
4 stars 5 forks source link

If you don't specify dest, it creates folder called 'undefined' for output #3

Closed kentquirk closed 11 years ago

kentquirk commented 11 years ago

For a gruntfile that looks like this:

docco: {
  docs: {
    src: ['lib/**/*.js'],
    options: {
      output: 'docs'
    }
  }
}

The results are generated in undefined rather than in docs. The fix I made was to replace line 21 in the file docco.js with this:

        var outpath = dest || opts.output;
        opts.output = outpath + '/' + path.replace(opts.basepath, "");

Didn't seem worth a fork and pull request, but I'll do that if you prefer.

eliias commented 11 years ago

Thanks for reporting. Added in 0.1.5.