Skip to content

Commit

Permalink
Merge pull request #21361 from storybookjs/update-install-snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegach committed Mar 3, 2023
2 parents 94c3984 + 73944af commit 3ea1a30
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 135 deletions.
21 changes: 11 additions & 10 deletions docs/get-started/install.md
Expand Up @@ -2,24 +2,25 @@
title: 'Install Storybook'
---

Use the Storybook CLI to install it in a single command. Run this inside your _existing project’s_ root directory:

<!-- prettier-ignore-start -->

<FeatureSnippets
<CodeSnippets
paths={[
'get-started/installation-command-section/angular.mdx',
'get-started/installation-command-section/ember.mdx',
'get-started/installation-command-section/html.mdx',
'get-started/installation-command-section/preact.mdx',
'get-started/installation-command-section/react.mdx',
'get-started/installation-command-section/svelte.mdx',
'get-started/installation-command-section/vue.mdx',
'get-started/installation-command-section/web-components.mdx',
'get-started/installation-command-section/qwik.mdx',
'common/init-command.npx.mdx',
'common/init-command.pnpm.mdx',
]}
/>

<!-- prettier-ignore-end -->

<div class="aside">

If you run into issues with the installation, check the [Troubleshooting section](#troubleshooting) below for guidance on how to solve it.

</div>

<details>

<summary><code>storybook init</code> is not made for empty projects</summary>
Expand Down
8 changes: 0 additions & 8 deletions docs/get-started/installation-command-section/angular.mdx

This file was deleted.

12 changes: 0 additions & 12 deletions docs/get-started/installation-command-section/ember.mdx

This file was deleted.

15 changes: 0 additions & 15 deletions docs/get-started/installation-command-section/html.mdx

This file was deleted.

15 changes: 0 additions & 15 deletions docs/get-started/installation-command-section/preact.mdx

This file was deleted.

15 changes: 0 additions & 15 deletions docs/get-started/installation-command-section/qwik.mdx

This file was deleted.

15 changes: 0 additions & 15 deletions docs/get-started/installation-command-section/react.mdx

This file was deleted.

15 changes: 0 additions & 15 deletions docs/get-started/installation-command-section/svelte.mdx

This file was deleted.

15 changes: 0 additions & 15 deletions docs/get-started/installation-command-section/vue.mdx

This file was deleted.

15 changes: 0 additions & 15 deletions docs/get-started/installation-command-section/web-components.mdx

This file was deleted.

3 changes: 3 additions & 0 deletions docs/snippets/common/init-command.npx.mdx
@@ -0,0 +1,3 @@
```shell
npx storybook@next init
```
3 changes: 3 additions & 0 deletions docs/snippets/common/init-command.pnpm.mdx
@@ -0,0 +1,3 @@
```shell
pnpm dlx storybook@next init
```

0 comments on commit 3ea1a30

Please sign in to comment.