Tags: yyynnn/react-styleguidist
Tags
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
Fix: Section anchors shouldn't conflict with component anchors (style… …guidist#1364) Prefix section anchors with `section-`. Closes styleguidist#1342
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)
Docs: Add styled-components with typescript example (styleguidist#1341)
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.
Fix: Add output.publicPath option to webpack config to make Create Re… …act App happy Fix styleguidist#1247
Fix: Resolve path of component files (styleguidist#1305) Closes styleguidist#1246
PreviousNext