grunt-markdown
grunt-markdown copied to clipboard
Doesn't work with rename
{
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
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.
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.
Do you have a workaround in the meantime ?