github styleguidist/react-styleguidist 2.2.0

latest releases: v13.1.2, v13.1.1, v13.1.0...
8 years ago

New features

Sections

Allows you to group components into sections and add random Markdown files to your style guide:

module.exports = {
  // ...
  sections: [
    {name: 'Introduction', content: 'docs/introduction.md'},
    {name: 'UI Components', content: 'docs/ui.md', components: 'lib/components/ui/*.js'}
  ]
}

See example style guide.

PRs: #108 by @paulj, #119, #120 by @karlbright.

Experimental isolated mode

Try to open your styleguide like http://localhost:3000/#!/Button and only one component will be rendered (#123 by @karlbright).

Example doclets support

Now you can add additional examples to your components from external files:

/**
 * Component is described here.
 * @example ./extra.examples.md
 */
export default class SomeComponent extends React.Component {
  // ...
}

PRs: #109 by @paulj.

Ability to change react-docgen behavior

New options: resolver, handler, propsParser.

PRs: #106 by @paulj, #118 by @vslinko.

Other changes and fixes

  • Should work fine in React 15.0.
  • Filter in the sidebar uses fuzzy search.
  • Mark required props insted of optional in a props table (#102 by @CompuIves)
  • Fixed: union elements share same key (#111, #112).
  • Fixed CSS hook for Li tag (#101).

Don't miss a new react-styleguidist release

NewReleases is sending notifications on new releases.