Skip to content

Releases: odopod/style-guide

v2.0.0

05 Jan 22:18
Compare
Choose a tag to compare

Breaking: upgrade gulp peer dependency to v4.0.0.

Upgrade nested dependencies too.

v1.4.0

18 Aug 18:56
Compare
Choose a tag to compare

You can now use "demo-file" within the "docs-demo" field to reference a file to be included by nunjucks for the demo instead of writing the markup in JSON. For example:

"docs-demo": {
-  "demo-markup": "'<a href=\"javascript:void(0)\" class=\"btn\">Sign In</a>'"
+  "demo-file": "'demos/btn.html'"
},

The demos/btn.html file will need to exist within the nunjucks searchPaths, so make sure you have the templatePath option defined. For example, if in the example above the demo template path was style-guide-templates/demos/btn.html, you would configure the style guide like this:

const path = require('path');

styleguide.configure({
  
  templatePath: path.resolve('./style-guide-templates'),});

v1.3.0

27 Jul 18:55
Compare
Choose a tag to compare
  • Add support for displaying pseudo classes and pseudo elements.
  • Fix declaration groupings out of order if using a pseudo class, then more base styles.

v1.2.0

26 Jul 18:32
Compare
Choose a tag to compare

This release adds an option for docsCssPath. Default is null. If defined, this file will be @imported in the main doc.scss file, allowing you to add your own custom styles to the style guide.

docsCssPath: './my-docs-theme.scss',