Skip to content

Commit 438737a

Browse files
committed
docs: update config + structure
1 parent ae88ce1 commit 438737a

File tree

5 files changed

+22
-3
lines changed

5 files changed

+22
-3
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"classes": "Classes",
3-
"functions": "Functions",
43
"typedef": "Type Definitions",
54
"enums": "Enums"
65
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# CommandKit
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"CommandKit": "CommandKit"
3+
}

apps/nextra-docs/pages/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# Home page
1+
---
2+
title: CommandKit - A Discord.js Handler
3+
---

apps/nextra-docs/theme.config.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1-
export default {
1+
import type { DocsThemeConfig } from 'nextra-theme-docs';
2+
import { useRouter } from 'next/router';
3+
4+
const config: DocsThemeConfig = {
25
logo: <span>CommandKit</span>,
36
project: {
47
link: 'https://github.com/underctrl-io/commandkit',
58
},
9+
docsRepositoryBase: 'https://github.com/underctrl-io/commandkit/blob/apps/docs',
10+
useNextSeoProps() {
11+
const { asPath } = useRouter();
12+
if (asPath !== '/') {
13+
return {
14+
titleTemplate: '%s – CommandKit',
15+
};
16+
}
17+
},
618
};
19+
20+
export default config;

0 commit comments

Comments
 (0)