-
Notifications
You must be signed in to change notification settings - Fork 41
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
dest path always relative to src #43
Comments
👍 Thanks for the workaround. This is bugging me as well. I wanted to end up with this:
But I could put the HTML files seemingly everywhere except one level up :( |
I think Grunt is taking care of all the file management stuff here and has an option for doing that. This worked for me: markdown: {
all: {
files: [
{
expand: true,
src: 'src/md/*.md',
dest: 'src/html',
flatten: true,
ext: '.html'
}
]
}
} The result is:
gets converted to
More info here: http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically |
Thank you @haroldtreen |
👍 for |
My problem is, that I was unable to achieve a path relative to the
Gruntfile.js
in the root dir.grunt-markdown
didn't stop to append thesrc
dir name(s) to thedest
names.Here's my temporary work around to build a sane file name:
Note: The
grunt.log()
is just a double confirmation that the callback returns the right thing. It's not necessary and you could instantly returndest + '/' + file
.I hope the current behavior is not intended. But if it is, I'd suggest adding above code to the
README.md
to tell people about it.Related: #27 #42
Anyway, thanks for a plugin - it's really helpful for building docs :)
The text was updated successfully, but these errors were encountered: