Skip to content

Commit 43c6c21

Browse files
committed
feat(docs): add api docs section
1 parent 22e31a6 commit 43c6c21

31 files changed

+713
-39
lines changed

apps/docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "next lint",
1111
"vercel-build": "prisma generate && next build",
1212
"prisma:generate": "prisma generate",
13-
"docgen": "node src/utils/docgen.mjs"
13+
"docgen": "rm -rf src/pages/docs && node src/utils/docgen.mjs && node src/utils/docgen.mjs"
1414
},
1515
"author": "DuroCodes",
1616
"license": "MIT",
@@ -26,6 +26,7 @@
2626
"@trpc/react-query": "^10.6.0",
2727
"@trpc/server": "^10.6.0",
2828
"copy-to-clipboard": "3.3.2",
29+
"fast-glob": "^3.2.12",
2930
"next": "12.3.1",
3031
"next-auth": "^4.18.6",
3132
"next-mdx-remote": "^4.2.0",

apps/docs/src/components/QuickStart.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ export const QuickStartArea = () => (
1414
name: 'Create a new project',
1515
description: 'Build a new Discord bot with Spark.',
1616
}}
17-
href="/docs/getting-started/create-new"
17+
href="/guide/getting-started/create-new"
1818
/>
1919
<DetailedFeatureLink
2020
feature={{
2121
Icon: ServerIcon,
2222
name: 'Add to your project',
2323
description: 'Add things to your bot with Spark.',
2424
}}
25-
href="/docs/getting-started/add-to-project"
25+
href="/guide/getting-started/add-to-project"
2626
/>
2727
</div>
2828
);
@@ -35,15 +35,15 @@ export const FeatureArea = () => (
3535
name: 'Adding commands',
3636
description: 'Add new commands to your project.',
3737
}}
38-
href="/docs/core-concepts/adding-commands"
38+
href="/guide/core-concepts/adding-commands"
3939
/>
4040
<DetailedFeatureLink
4141
feature={{
4242
Icon: ChatIcon,
4343
name: 'Adding events',
4444
description: 'Add new events to your project.',
4545
}}
46-
href="/docs/core-concepts/adding-events"
46+
href="/guide/core-concepts/adding-events"
4747
/>
4848
</div>
4949
);

apps/docs/src/components/pages/plugin/newPlugin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function NewPlugin() {
6363
<h1><span className="font-bold leading-tight lg:text-5xl">New Plugin</span></h1>
6464
<div className="text-center text-gray-500 dark:text-gray-400">
6565
<p>Create a plugin for the Spark community.</p>
66-
<Link href="/docs/core-concepts/publishing-plugins">Click here</Link> for a guide on how to publish plugins.
66+
<Link href="/guide/core-concepts/publishing-plugins">Click here</Link> for a guide on how to publish plugins.
6767
</div>
6868
</div>
6969
<form

apps/docs/src/pages/_meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
"toc": true
1313
}
1414
},
15-
"docs": "Docs & Guide",
15+
"guide": "Guide",
1616
"blog": {
1717
"title": "Blog",
1818
"theme": {
1919
"typesetting": "article"
2020
}
2121
},
22+
"docs": "API Docs",
2223
"plugins": "Plugins"
2324
}
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
2-
"index": {
3-
"title": "Quickstart"
4-
},
5-
"api": "API",
6-
"getting-started": "Getting Started",
7-
"core-concepts": "Core Concepts",
8-
"faq": "FAQ"
9-
}
2+
"classes": "Classes",
3+
"types": "Types"
4+
}

apps/docs/src/pages/docs/api/index.mdx

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)