Skip to content

Tags: yyynnn/react-styleguidist

Tags

v9.1.2

Toggle v9.1.2's commit message
Fix: A build should't break when assetsDir is an array (styleguidist#…

…1367)

copy-webpack-plugin is not allowed `from` to be as an array. If we still want to use `from` and support array format for assetsDir, then we should pass array of objects `{from: ...}` to the plugin.

Closes styleguidist#1320

v9.1.1

Toggle v9.1.1's commit message
Fix: Section anchors shouldn't conflict with component anchors (style…

…guidist#1364)

Prefix section anchors with `section-`.

Closes styleguidist#1342

v9.1.0

Toggle v9.1.0's commit message
Changelog: 🚀

## New features

### Support React Hooks in examples

You can now use hooks in the examples, like the `useState` hook:

 ```jsx
const [count, setCount] = React.useState(42);
<Button onClick={() => setCount(count + 1)}>{count}</Button>
```

(styleguidist#1353 by @eragon512)

## Bug fixes

* Accessibility fixes ([styleguidist#1359](styleguidist#1359) by @J-Kallunki)
* `getExampleFilename` should use default example if file does not exist ([styleguidist#1362](styleguidist#1362)) by @mendrew, closes [styleguidist#1338](styleguidist#1338)
* Hide HTML comments in Markdown files ([styleguidist#1347](styleguidist#1347) by @eragon512, closes styleguidist#1326)

v9.0.9

Toggle v9.0.9's commit message
Docs: Add styled-components with typescript example (styleguidist#1341)

v9.0.8

Toggle v9.0.8's commit message
Fix: Allow code base color to be customized with theme config (styleg…

…uidist#1335)

- Add `theme.color.codeBase` property
- Allow syntax highlight default color to set without affecting base color
- The codeBase and codeBackground can be set to allow finer control on code text contrast ratios. e.g. Use dark themes for code samples.

v9.0.7

Toggle v9.0.7's commit message
Fix: Scroll section into view when exiting isolated mode (styleguidis…

…t#1331)

v9.0.6

Toggle v9.0.6's commit message
Fix: Add output.publicPath option to webpack config to make Create Re…

…act App happy

Fix styleguidist#1247

v9.0.5

Toggle v9.0.5's commit message
Chore: Okay, I give up with it

v9.0.4

Toggle v9.0.4's commit message
Chore: Fix typo (styleguidist#1311)

v9.0.3

Toggle v9.0.3's commit message
Fix: Resolve path of component files (styleguidist#1305)

Closes styleguidist#1246