Skip to content

Commit fbb13ac

Browse files
committed
Style guide
1 parent 2555164 commit fbb13ac

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/content/docs/style-guide/components/wrangler-command.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ styleGuide:
44
component: WranglerCommand
55
---
66

7+
import { Type, MetaInfo } from "~/components";
8+
79
The `WranglerCommand` component documents the available options for a given command.
810

911
This is generated using the Wrangler version in the [`cloudflare-docs` repository](https://github.com/cloudflare/cloudflare-docs/blob/production/package.json).
@@ -23,3 +25,10 @@ import { WranglerCommand } from "~/components";
2325

2426
<WranglerCommand command="d1 execute" />
2527
```
28+
29+
## Arguments
30+
31+
- `command` <Type text="string" /> <MetaInfo text="required" />
32+
- The name the command.
33+
- `headingLevel` <Type text="boolean" /> <MetaInfo text="(default: 2) optional" />
34+
- The heading level `h2` that the command should be added at on the page.

src/content/docs/style-guide/components/wrangler-namespace.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ import { WranglerNamespace } from "~/components";
2121

2222
<WranglerNamespace namespace="d1" />
2323
```
24+
25+
## Arguments
26+
27+
- `namespace` <Type text="string" /> <MetaInfo text="required" />
28+
- The namespace to pull the related commands from (`d1`, `hyperdrive`).
29+
- `headingLevel` <Type text="boolean" /> <MetaInfo text="(default: 2) optional" />
30+
- The heading level `h2` that the commands should be added at on the page.

0 commit comments

Comments
 (0)