Skip to content

Commit 99d3a7c

Browse files
committed
update to astro v3 + add view transitions
1 parent 469a078 commit 99d3a7c

File tree

12 files changed

+258
-533
lines changed

12 files changed

+258
-533
lines changed

apps/docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"astro": "astro"
1313
},
1414
"dependencies": {
15-
"@astrojs/starlight": "^0.7.2",
16-
"astro": "^2.10.8",
17-
"sharp": "^0.32.1"
15+
"@astrojs/starlight": "^0.9.0",
16+
"astro": "^3.0.8",
17+
"sharp": "^0.32.5"
1818
}
1919
}

apps/docs/src/content/docs/guides/command-file-setup.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Commands Setup
33
---
44

55
import { Tabs, TabItem } from '@astrojs/starlight/components';
6+
import { ViewTransitions } from 'astro:transitions';
7+
8+
<ViewTransitions fallback="swap" />
69

710
CommandKit supports both slash commands and context menu commands. And since both have very similar triggers (interactions) and command structures, they are both stored and handled from within the commands directory for convenience.
811

apps/docs/src/content/docs/guides/commandkit-setup.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: CommandKit setup
33
---
44

55
import { Tabs, TabItem } from '@astrojs/starlight/components';
6+
import { ViewTransitions } from 'astro:transitions';
7+
8+
<ViewTransitions fallback="swap" />
69

710
This is a simple overview of how to set up CommandKit with all the available options. You'd usually set this up in your entry point file (e.g. `index.js`) where you have access to your Discord client object.
811

apps/docs/src/content/docs/guides/event-file-setup.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Events Setup
33
---
44

55
import { Tabs, TabItem } from '@astrojs/starlight/components';
6+
import { ViewTransitions } from 'astro:transitions';
7+
8+
<ViewTransitions fallback="swap" />
69

710
This is a simple overview of how to set up a simple function that is called when the "ready" event is triggered. All this code does is log to the console when the bot is ready.
811

apps/docs/src/content/docs/guides/installation.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Installation
33
---
44

55
import { Tabs, TabItem } from '@astrojs/starlight/components';
6+
import { ViewTransitions } from 'astro:transitions';
7+
8+
<ViewTransitions fallback="swap" />
69

710
Installing CommandKit is really simple. Based on your preferred package manager, run one of the commands in your terminal:
811

apps/docs/src/content/docs/guides/migrating-from-djs-commander.md renamed to apps/docs/src/content/docs/guides/migrating-from-djs-commander.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: Migrating from DJS-Commander to CommandKit
33
---
4+
import { ViewTransitions } from 'astro:transitions';
5+
6+
<ViewTransitions fallback="swap" />
47

58
If you're trying to use CommandKit as a drop-in replacement for DJS-Commander, you'll need to make a few changes to your code.
69

apps/docs/src/content/docs/guides/validation-file-setup.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Validations Setup
33
---
44

55
import { Tabs, TabItem } from '@astrojs/starlight/components';
6+
import { ViewTransitions } from 'astro:transitions';
7+
8+
<ViewTransitions fallback="swap" />
69

710
Validations are functions that are called before the `run()` function from a command object is called. They can be used for many things, including validating your command object, or even implementing features such as cooldowns where the user will not be able to run the command if a validation functions says so.
811

apps/docs/src/content/docs/index.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ hero:
1616
---
1717

1818
import { CardGrid, Card } from '@astrojs/starlight/components';
19+
import { ViewTransitions } from 'astro:transitions';
20+
21+
<ViewTransitions fallback="swap" />
1922

2023
## What is CommandKit?
2124

apps/docs/src/content/docs/overview.md renamed to apps/docs/src/content/docs/overview.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: Overview
33
---
4+
import { ViewTransitions } from 'astro:transitions';
5+
6+
<ViewTransitions fallback="swap" />
47

58
CommandKit was created to make Discord.js more beginner friendly by eliminating the need for boilerplate code and making it easier to handle commands and events. It also provides a few other features that make it easier to develop and maintain your Discord.js applications.
69

apps/docs/src/env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/// <reference path="../.astro/types.d.ts" />
2-
/// <reference types="astro/client-image" />
2+
/// <reference types="astro/client" />

0 commit comments

Comments
 (0)