Skip to content

Commit 55fab50

Browse files
chore: docs use code block and revert initial command
1 parent c718178 commit 55fab50

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

docs/pages/index.mdx

+13-10
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { HomePage } from "vocs/components";
77

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

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

44-
### Using npm
44+
:::code-group
4545

46-
```sh
46+
```bash [npm]
4747
npm init frames
4848
```
4949

50-
### Using yarn
51-
52-
```sh
50+
```bash [yarn]
5351
yarn create frames
5452
```
5553

56-
### Using pnpm
57-
58-
```sh
54+
```bash [pnpm]
5955
pnpm create frames
6056
```
6157

58+
:::
59+
6260
## Alternatively, add frames.js to your existing project manually
6361

6462
### Start with frames.js in Next.js in three steps
@@ -76,7 +74,12 @@ export async function generateMetadata() {
7674
return {
7775
title: "My page",
7876
other: await fetchMetadata(
79-
new URL("/frames", process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "http://localhost:3000")
77+
new URL(
78+
"/frames",
79+
process.env.VERCEL_URL
80+
? `https://${process.env.VERCEL_URL}`
81+
: "http://localhost:3000"
82+
)
8083
),
8184
};
8285
}

0 commit comments

Comments
 (0)