grunt-markdown icon indicating copy to clipboard operation
grunt-markdown copied to clipboard

Doesn't work with rename

Open wheresrhys opened this issue 11 years ago • 3 comments

{
            expand: true,
            src: './*.md',
            dest: './docs/',
            ext: '.html',
            rename: function (dest, src) {
              return dest.indexOf('README') === 0 ? './docs/index.html' : dest;
            }
}

And I get the error

Warning: Unable to read "./CONTRIBUTING.md,./README.md" file (Error code: ENOENT). Use --force to continue.

It does however work if I set src: './README.md' and run over just a single file. I've tried several variants of what src should accept and any that retrieve more than one file end up throwing an error when it comes to renaming.

Using latest grunt and grunt-markdown

wheresrhys avatar Oct 23 '13 15:10 wheresrhys

Same thing here, without using rename : one file works fine, multiple file returns an "Unable to read". Tried several files, tried several files declarations, permissions are fine.

Anahkiasen avatar Dec 03 '13 18:12 Anahkiasen

I will be doing a major refactor at the end of this month. I'll address this issue at that point and it will be a major version bump.

treasonx avatar Dec 03 '13 19:12 treasonx

Do you have a workaround in the meantime ?

Anahkiasen avatar Dec 03 '13 19:12 Anahkiasen