Skip to content

Commit fa300e1

Browse files
committed
fix tooltips
1 parent 9376e1e commit fa300e1

File tree

5 files changed

+61
-29
lines changed

5 files changed

+61
-29
lines changed

apps/website/docs/guide/01-getting-started/02-setup-commandkit.mdx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@ description:
44
Setup a new CommandKit project using the create-commandkit CLI
55
---
66

7-
:::warning
7+
:::info
88

9-
- CommandKit requires at least [Node.js](https://nodejs.org/) v22
9+
- CommandKit requires at least [Node.js](https://nodejs.org/) v24
1010
- This documentation assumes that you have a basic understanding of
1111
how to use [discord.js](https://discord.js.org/). If you are new to
1212
discord.js, we recommend you to read the
13-
[discord.js guide](https://discordjs.guide/) first. :::
13+
[discord.js guide](https://discordjs.guide/) first.
14+
15+
:::
1416

1517
The quickest way to setup a new CommandKit project is to use the
1618
`create-commandkit` CLI. To get started, run the following command in
1719
your terminal:
1820

1921
```sh npm2yarn
20-
npm create commandkit@latest
22+
npm create commandkit@next
2123
```
2224

2325
This will start the CLI in an interactive mode. You can follow the
@@ -77,7 +79,11 @@ the `@dev` tag like so:
7779
npm create commandkit@dev
7880
```
7981

80-
:::warning The development version is likely to have bugs. :::
82+
:::warning
83+
84+
The development version is likely to have bugs.
85+
86+
:::
8187

8288
## Manual setup
8389

apps/website/docs/guide/02-commands/01-chat-input-commands.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ This is the main handler function for your chat input command. By
3838
exporting this function, CommandKit will know that it's a chat input
3939
command and will register and handle it accordingly.
4040

41-
:::tip Chat input commands are just one of the command types that
42-
CommandKit supports. Learn more about
41+
:::tip
42+
43+
Chat input commands are just one of the command types that CommandKit
44+
supports. Learn more about
4345
[message commands](./04-message-commands.mdx) and
44-
[context menu commands](./03-context-menu-commands.mdx). :::
46+
[context menu commands](./03-context-menu-commands.mdx).
47+
48+
:::
4549

4650
## Guild-based commands
4751

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
title: Command options autocomplete
2+
title: Options autocomplete
33
---

apps/website/docs/guide/08-advanced/01-setup-commandkit-manually.mdx

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ If you don't want to use the
1111
generate a base CommandKit project, you can integrate CommandKit
1212
manually into your application.
1313

14-
:::info While this guide primarily uses TypeScript, you can use
15-
JavaScript files without any problems to follow along if that's what
16-
you're comfortable with (e.g. `commandkit.config.js`, `app.js`, etc)
14+
:::info
15+
16+
While this guide primarily uses TypeScript, you can use JavaScript
17+
files without any problems to follow along if that's what you're
18+
comfortable with (e.g. `commandkit.config.js`, `app.js`, etc)
19+
1720
:::
1821

1922
## Configuration file
@@ -90,9 +93,13 @@ export const message: MessageCommand = async ({ message }) => {
9093
This command will reply with "Pong!" when the user runs the `/ping`
9194
slash command, or sends `!ping` in the chat.
9295

93-
:::tip The prefix for message commands can be changed globally or
94-
per-guild. Learn more
95-
[here](../02-commands/05-custom-message-commands-prefix.mdx). :::
96+
:::tip
97+
98+
The prefix for message commands can be changed globally or per-guild.
99+
Learn more
100+
[here](../02-commands/05-custom-message-commands-prefix.mdx).
101+
102+
:::
96103

97104
## Adding events
98105

@@ -116,8 +123,11 @@ export default function (client: Client<true>) {
116123
}
117124
```
118125

119-
:::tip You can find a full list of events under the
126+
:::tip
127+
128+
You can find a full list of events under the
120129
[discord.js Client class](https://discord.js.org/docs/packages/discord.js/main/Client:Class).
130+
121131
:::
122132

123133
## Running the app in development
@@ -132,11 +142,15 @@ to restart the entire application.
132142
npx commandkit dev
133143
```
134144

135-
:::warning When running in development mode, CommandKit will generate
136-
a `.commandkit` folder in the root of your project. This folder
137-
contains the compiled files used in development mode. You should not
138-
commit this folder to your version control system by making sure you
139-
add it to your `.gitignore` file. :::
145+
:::warning
146+
147+
When running in development mode, CommandKit will generate a
148+
`.commandkit` folder in the root of your project. This folder contains
149+
the compiled files used in development mode. You should not commit
150+
this folder to your version control system by making sure you add it
151+
to your `.gitignore` file.
152+
153+
:::
140154

141155
## Building for production
142156

@@ -148,11 +162,15 @@ folder in your project directory containing the compiled files.
148162
npx commandkit build
149163
```
150164

151-
:::warning After running your build script, CommandKit will generate a
152-
`dist` folder in the root of your project. This folder contains the
153-
compiled files used for production. You should not commit this folder
154-
to your version control system by making sure you add it to your
155-
`.gitignore` file. :::
165+
:::warning
166+
167+
After running your build script, CommandKit will generate a `dist`
168+
folder in the root of your project. This folder contains the compiled
169+
files used for production. You should not commit this folder to your
170+
version control system by making sure you add it to your `.gitignore`
171+
file.
172+
173+
:::
156174

157175
## Running the app in production
158176

apps/website/docs/guide/15-key-value-store/04-advanced-features.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,13 @@ kv.set('key', 'value');
217217
// kv is automatically closed when the block ends
218218
```
219219

220-
:::note Async Disposal The `async using` statement is just a fake
221-
promise wrapper around the synchronous `using` statement. The disposal
222-
is still synchronous. :::
220+
:::note
221+
222+
Async Disposal The `async using` statement is just a fake promise
223+
wrapper around the synchronous `using` statement. The disposal is
224+
still synchronous.
225+
226+
:::
223227

224228
### Manual Resource Management
225229

0 commit comments

Comments
 (0)