gulp-styleguide-generator
A small gulp plugin for generating styleguides.
✅ CSS or any preprocessors.
✅ EJS as template engine
✅ Simple and small
✅ Include custom variables
✅ Markdown
Installation
npm install gulp-styleguide-generator --save-dev
Usage
In your gulpfile.js:
var gulp = var styleguide = gulp
Options
var defaults = templatePath: path outputPath: 'styleguide' vars: template: 'template.html' output: null css: ''
Comments style
Your comment should start with /**@docs
. Here's an example:
/**@docs You can override default variables: @template my-other-template-file.html Or just create new variables: @my-new-variable variable-value You can freely use markdown: ## My Component Name Description of my **component** here. */