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

Configuring Sherpa to run N .md files? #3

Open
npapazian opened this issue May 23, 2016 · 3 comments
Open

Configuring Sherpa to run N .md files? #3

npapazian opened this issue May 23, 2016 · 3 comments

Comments

@npapazian
Copy link

I'm trying to put together a style guide and want to be able to leverage Style Sherpa, however I need to be able to support ~30 different pages.

I figured I can run the sherpa command over each of the 30 .md files, but this would be hard to maintain. Is there a more elegant way to pipe multiple files in (e.g. /src/styleguide/*/.{md}) and and run them all through Sherpa?

I tried the below using the syntax from Panini, but gulp threw an error because Sherpa expects the src path to be a string.

function styleGuide(done) {
    return gulp.src('src/styleguide/**/*.{md}')
     .pipe(sherpa({
          template: 'src/styleguide/template.html'
      }))
      .pipe(gulp.dest(PATHS.dist));
}
@adrianwhite
Copy link

Any feedback on this feature request?
It's been sat here since May 2016.

@lendlsmith
Copy link

Did anyone ever figure this out?

@SassNinja
Copy link

@ilendl2 the problem here is sherpa is no gulp plugin and can therefore not be used as done by @npapazian
That's how it's supposed to be used:
https://github.com/zurb/foundation-zurb-template/blob/master/gulpfile.babel.js#L74

However I was also facing the constraint when trying to integrate style-sherpa into my webpack setup. I've written my own loader which is completely independent:
https://github.com/SassNinja/style-sherpa-loader

If you use it (in a webpack setup of course) you will be able to build several style guides as desired.

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

4 participants