Skip to content

Commit

Permalink
docs: update storybook docs (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
amje authored Oct 11, 2023
1 parent 60a94b0 commit 615dc22
Show file tree
Hide file tree
Showing 27 changed files with 847 additions and 2,569 deletions.
1 change: 0 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const config: StorybookConfig = {
},
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(ts|tsx)'],
docs: {
autodocs: true,
defaultName: 'Docs',
},
addons: [
Expand Down
9 changes: 8 additions & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ const preview: Preview = {
},
options: {
storySort: {
order: ['Components', ['Basic'], 'Branding', ['Overview']],
order: [
'Components',
['Inputs', 'Data Display', 'Feedback', 'Navigation', 'Overlays', 'Utils'],
'Layout',
'Hooks',
'Branding',
['Overview'],
],
method: 'alphabetical',
},
},
Expand Down
1,431 changes: 647 additions & 784 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@
"@gravity-ui/prettier-config": "^1.0.1",
"@gravity-ui/stylelint-config": "^2.0.0",
"@gravity-ui/tsconfig": "^1.0.0",
"@storybook/addon-essentials": "^7.3.2",
"@storybook/cli": "^7.3.2",
"@storybook/addon-essentials": "^7.4.6",
"@storybook/cli": "^7.4.6",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react-webpack5": "^7.3.2",
"@storybook/react-webpack5": "^7.4.6",
"@testing-library/jest-dom": "^6.1.1",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
Expand Down Expand Up @@ -158,7 +158,7 @@
"*.{js,jsx,ts,tsx}": [
"eslint --fix --quiet"
],
"*.md": [
"*.{md,mdx}": [
"prettier --write"
]
}
Expand Down
143 changes: 0 additions & 143 deletions src/components/Alert/__stories__/Alert.mdx

This file was deleted.

7 changes: 7 additions & 0 deletions src/components/Alert/__stories__/Docs.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {Meta, Markdown} from '@storybook/addon-docs';
import * as Stories from './Alert.stories';
import Readme from '../README.md?raw';

<Meta of={Stories} />

<Markdown>{Readme}</Markdown>
105 changes: 0 additions & 105 deletions src/components/Alert/__stories__/examples/index.tsx

This file was deleted.

43 changes: 0 additions & 43 deletions src/components/Breadcrumbs/README.OLD.md

This file was deleted.

Loading

0 comments on commit 615dc22

Please sign in to comment.