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

Convert installation instructions #21361

Merged
merged 3 commits into from
Mar 3, 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
21 changes: 11 additions & 10 deletions docs/get-started/install.md
Original file line number Diff line number Diff line change
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.

This file was deleted.

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