mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 06:51:17 +08:00
publishing storybook docs changes
This commit is contained in:
parent
fe3c5bff24
commit
fc5a10c5df
@ -23,6 +23,7 @@ First, we'll need to build Storybook as a static web application. The functional
|
||||
'angular/build-storybook-production-mode.with-builder.js.mdx',
|
||||
'common/build-storybook-production-mode.yarn.js.mdx',
|
||||
'common/build-storybook-production-mode.npm.js.mdx',
|
||||
'common/build-storybook-production-mode.pnpm.js.mdx',
|
||||
]}
|
||||
/>
|
||||
|
||||
@ -36,9 +37,16 @@ First, we'll need to build Storybook as a static web application. The functional
|
||||
|
||||
Storybook will create a static web application capable of being served by any web server. Preview it locally by running the following command:
|
||||
|
||||
```shell
|
||||
npx http-server ./path/to/build
|
||||
```
|
||||
<!-- prettier-ignore-start -->
|
||||
|
||||
<CodeSnippets
|
||||
paths={[
|
||||
'common/preview-storybook-production-mode.npm.js.mdx',
|
||||
'common/preview-storybook-production-mode.pnpm.js.mdx',
|
||||
]}
|
||||
/>
|
||||
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
## Publish Storybook with Chromatic
|
||||
|
||||
|
@ -0,0 +1,3 @@
|
||||
```shell
|
||||
pnpm run build-storybook
|
||||
```
|
@ -0,0 +1,3 @@
|
||||
```shell
|
||||
npx http-server ./path/to/build
|
||||
```
|
@ -0,0 +1,3 @@
|
||||
```shell
|
||||
pnpx http-server ./path/to/build
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user