Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update storybook docs #1046

Merged
merged 5 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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