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

How do you update the style-guide template? #6

Closed
finteractive opened this issue Jul 24, 2014 · 1 comment
Closed

How do you update the style-guide template? #6

finteractive opened this issue Jul 24, 2014 · 1 comment

Comments

@finteractive
Copy link

Thanks for creating this package!

I'd like to update the template the style guide is generated from. I'm moving from grunt to gulp and used to do the following (which may not have been the most efficient the first place)...

  1. Generated the site template in /styleguide-template after installing the node version of KSS
$ kss-node --init 
  1. Update the Grunt Task to use this new folder as a source.
  grunt.initConfig({

  styleguide: {

    options: {
      template: {
        src: 'styleguide-template'
      },

      framework: {
        name: 'kss'
      }
    },

    all: {
      files: [{
        'styleguide': 'sass/**/*.scss'
      }]
    }

  },

Could you tell what the gulp equivalent of "template: {src: 'styleguide-template} would be?

@finteractive
Copy link
Author

Fixed it myself (sorry I realized today your docs included what I was looking for)

gulp.task('styleguide', function() {
  gulp.src(['sass/**/*.scss'])
      .pipe(gulpkss({
          overview: __dirname + '/sass/styleguide.md',
          templateDirectory: __dirname + '/styleguide-template'
      }))
    .pipe(gulp.dest('styleguide/'));
});

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

1 participant