Skip to content

Commit

Permalink
Merge pull request #228 from ghostdevv/docs-update
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdevv authored Nov 10, 2024
2 parents 7b9b84d + b7d8ff0 commit a04586b
Show file tree
Hide file tree
Showing 62 changed files with 1,098 additions and 1,303 deletions.
6 changes: 6 additions & 0 deletions .changeset/lemon-eggs-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"create-jellycommands": patch
"jellycommands": patch
---

chore: update jsdoc comments
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@
"bugs": {
"url": "https://github.com/ghostdevv/jellycommands/issues"
},
"homepage": "https://github.com/ghostdevv/jellycommands#readme"
"homepage": "https://github.com/ghostdevv/jellycommands#readme",
"pnpm": {
"patchedDependencies": {
"@astrojs/starlight": "patches/@astrojs__starlight.patch"
}
}
}
2 changes: 1 addition & 1 deletion packages/create-jellycommands/src/js/src/app.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="jellycommands/ambient" />

// See https://jellycommands.dev/guide/props
// See https://jellycommands.dev/components/props
interface Props {}
6 changes: 3 additions & 3 deletions packages/create-jellycommands/src/js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { JellyCommands } from 'jellycommands';
import { IntentsBitField } from 'discord.js';

const client = new JellyCommands({
// https://jellycommands.dev/guide/overview#components
// https://jellycommands.dev/components
components: 'src/components',

clientOptions: {
Expand All @@ -12,11 +12,11 @@ const client = new JellyCommands({

dev: {
// In testing we should enable this, it will make all our commands register in our testing guild
// https://jellycommands.dev/guide/commands/dev#global-dev-mode
// https://jellycommands.dev/components/commands/dev
global: true,

// Put your testing guild id here
// https://jellycommands.dev/guide/commands/dev#setup
// https://jellycommands.dev/components/commands/dev
guilds: [''],
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/create-jellycommands/src/ts/src/app.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="jellycommands/ambient" />

// See https://jellycommands.dev/guide/props
// See https://jellycommands.dev/components/props
interface Props {}
6 changes: 3 additions & 3 deletions packages/create-jellycommands/src/ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { JellyCommands } from 'jellycommands';
import { IntentsBitField } from 'discord.js';

const client = new JellyCommands({
// https://jellycommands.dev/guide/overview#components
// https://jellycommands.dev/components
components: 'src/components',

clientOptions: {
Expand All @@ -12,11 +12,11 @@ const client = new JellyCommands({

dev: {
// In testing we should enable this, it will make all our commands register in our testing guild
// https://jellycommands.dev/guide/commands/dev#global-dev-mode
// https://jellycommands.dev/components/commands/dev
global: true,

// Put your testing guild id here
// https://jellycommands.dev/guide/commands/dev#setup
// https://jellycommands.dev/components/commands/dev
guilds: [''],
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default defineConfig({
items: [
{
text: 'Components',
link: '/guide/components',
link: '/components',
},
{
text: 'Props',
Expand Down
140 changes: 60 additions & 80 deletions packages/docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,45 +26,47 @@ export default defineConfig({
},
lastUpdated: true,
plugins: [starlightLinksValidator()],
tableOfContents: {
maxHeadingLevel: 4,
},
sidebar: [
{
label: 'Guide',
label: 'Getting Started',
link: '/getting-started',
},
{
label: 'Components',
items: [
{
label: 'Get Started',
items: [
{
label: 'Overview',
link: '/guide/overview',
},
{
label: 'Import vs Require',
link: '/guide/require',
},
],
label: 'Understanding Components',
link: '/components',
},
{
label: 'Commands',
items: [
{
label: 'Creating Commands',
link: '/guide/commands/files',
link: '/components/commands',
},
{
label: 'Registering Commands',
link: '/guide/commands/registering',
label: 'Dev Mode',
link: '/components/commands/dev',
},
{
label: 'Dev Mode',
link: '/guide/commands/dev',
label: 'Slash Commands',
link: '/components/commands/slash',
},
{
label: 'Slash Commands Extras',
link: '/guide/commands/slash',
label: 'Context Menu Commands',
link: '/components/commands/context-menu',
},
{
label: 'Guards',
link: '/guide/commands/guards',
link: '/components/commands/guards',
},
{
label: 'Caching',
link: '/components/commands/caching',
},
],
},
Expand All @@ -73,7 +75,7 @@ export default defineConfig({
items: [
{
label: 'Creating Events',
link: '/guide/events/files',
link: '/components/events',
},
],
},
Expand All @@ -82,77 +84,55 @@ export default defineConfig({
items: [
{
label: 'Creating Buttons',
link: '/guide/buttons/files',
link: '/components/buttons',
},
],
},
{
label: 'Core',
items: [
{
label: 'Components',
link: '/guide/components',
},
{
label: 'Props',
link: '/guide/props',
},
{
label: 'Messages',
link: '/guide/messages',
},
],
label: 'Props',
link: '/components/props',
},
{
label: 'Migrate',
items: [
{
label: 'Components (1.0.0-next.44)',
link: '/guide/migrate/components',
},
{
label: 'Props (1.0.0-next.40)',
link: '/guide/migrate/props',
},
{
label: 'Discord.js v14 (1.0.0-next.31)',
link: '/guide/migrate/djs14',
},
],
label: 'Deferring Interactions',
link: '/components/deferring',
},
],
},
{
label: 'API',
label: 'Guides',
items: [
// {
// label: 'Going to production',
// link: '/guides/production',
// },
{
label: 'Core',
items: [
{
label: 'Client',
link: '/api/client',
},
{
label: 'Props',
link: '/api/props',
},
{
label: 'Commands',
link: '/api/commands',
},
{
label: 'Events',
link: '/api/events',
},
{
label: 'Buttons',
link: '/api/buttons',
},
{
label: 'App Types',
link: '/api/types',
},
],
label: 'File Loading Expanded',
link: '/guides/fs',
},
{
label: 'Messages',
link: '/guides/messages',
},
{
label: 'Import vs Require',
link: '/guides/require',
},
],
},
{
label: 'Breaking Changes',
items: [
{
label: 'Components (1.0.0-next.44)',
link: '/migrate/components',
},
{
label: 'Props (1.0.0-next.40)',
link: '/migrate/props',
},
{
label: 'Discord.js v14 (1.0.0-next.32)',
link: '/migrate/djs14',
},
],
},
Expand Down
Binary file added packages/docs/src/assets/docs/button-failed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/docs/src/assets/docs/color-command.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/docs/src/assets/docs/message-command.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/docs/src/assets/docs/user-command.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/docs/src/assets/docs/working-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 0 additions & 57 deletions packages/docs/src/content/docs/api/buttons.md

This file was deleted.

Loading

0 comments on commit a04586b

Please sign in to comment.