Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with rename #27

Open
wheresrhys opened this issue Oct 23, 2013 · 3 comments
Open

Doesn't work with rename #27

wheresrhys opened this issue Oct 23, 2013 · 3 comments

Comments

@wheresrhys
Copy link

{
            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

@Anahkiasen
Copy link

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.

@treasonx
Copy link
Owner

treasonx commented Dec 3, 2013

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.

@Anahkiasen
Copy link

Do you have a workaround in the meantime ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants