Skip to content

Commit

Permalink
chore: docs use code block and revert initial command
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkvasnicak committed Mar 26, 2024
1 parent c718178 commit 55fab50
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { HomePage } from "vocs/components";

<HomePage.Root>
<h1 className="vocs_HomePage_title">frames.js</h1>
<HomePage.InstallPackage name="frames" type="init" />
<HomePage.InstallPackage name="frames.js" type="install" />
<HomePage.Description>
**frames.js** is the fastest way to make Frames.
</HomePage.Description>
Expand Down Expand Up @@ -41,24 +41,22 @@ import { HomePage } from "vocs/components";

Run one of the commands below based on your preferred package manager and then follow the steps in the terminal.

### Using npm
:::code-group

```sh
```bash [npm]
npm init frames
```

### Using yarn

```sh
```bash [yarn]
yarn create frames
```

### Using pnpm

```sh
```bash [pnpm]
pnpm create frames
```

:::

## Alternatively, add frames.js to your existing project manually

### Start with frames.js in Next.js in three steps
Expand All @@ -76,7 +74,12 @@ export async function generateMetadata() {
return {
title: "My page",
other: await fetchMetadata(
new URL("/frames", process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "http://localhost:3000")
new URL(
"/frames",
process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000"
)
),
};
}
Expand Down

0 comments on commit 55fab50

Please sign in to comment.