Skip to content

Commit aca7434

Browse files
committed
refactor: switch to json based docs
- feat: start setting up the plugin for parsing - feat: start parsing classes - chore: add actual words - permalink: http://whatthecommit.com/3d6431a17a3b67e8b1341a2c6e4362f8 - chore: it's working! - permalink: http://whatthecommit.com/8d8c1f3903766b8ef27575d63115cac6 - feat: update framework json - fix: fixed rendering custom files with css - chore: update framework json to exclude externals - feat: setup parsing sapphire classes and do a lot of link fixing - refactor: switch to sapphire result - fix: remove replaceall for Node 14 compat - fix: actually remove replaceAll - fix: fixed css extraction regex - I thought I did this already - fix: fixed broken link on welcome page - chore: temporarily disable reporting broken links - feat: much stuff - change `classes` to `class` to match DJS - add `typedef` and `namespace` linking - fix linking of non-generic types - update guide urls to match `class` change - chore: bump deps - chore: i'll explain when you're older! - permalink: http://whatthecommit.com/91a07064bb814666919304a00161fc6c - chore: dope - permalink: http://whatthecommit.com/bab00ed1aa0abb17cce41f36deea1607 - chore: cleanup types - feat: add variant to typedefs - build: make it easier to debug - fix: partially fix link extraction - feat(docgen): add renderTypedef() - Moved parseSee() from /lib/renderer/renderClass.ts to /lib/renderer/utils.ts - Add /lib/renderer/renderTypedef.ts Which adds basic functionality in the website with things like title, description and extendedDescription - chore: sort ts interfaces in docgen output - chore: update doc types - refactor: completely refactor how links are resolved - fix: fixed links for `{@link` tags and propegate change to mdn and djs - fix: use `replace` instead of `replaceAll` - feat(docusaurus-discordjs-docgen): add functionality for enum and interface - style(docusaurus-discordjs-docgen): use Array#flat() for typedef - feat(docusaurus-discordjs-docgen): add constructor table functionality for classes - feat(docusaurus-discordjs-docgen): align table content to center - feat(docusaurus-discordjs-docgen): remove description column if all falsy - feat(docusaurus-discordjs-docgen): add properties functionality for classes - ci: add automatic vercel deploys workflow - chore(docusaurus-typedoc-json-parser): initial commit - chore(docusaurus-typedoc-json-parser): add doc fetching - chore(docusaurus-typedoc-json-parser): add sidebar rendering - fix(deps): update all non-major dependencies - fix(deps): update dependency typedoc-json-parser to ^5.2.0 - feat(docusaurus-typedoc-json-parser): add basic renderers - style(docusaurus-typedoc-json-parser): curly brackets and spacing - style(docusaurus-typedoc-json-parser): template literals - feat(docusaurus-typedoc-json-parser): add class extends and implements - feat(docusaurus-typedoc-json-parser): add link parsing for the local project - chore(docusaurus-typedoc-json-parser): add `start` script to bypass debugger - feat(docusaurus-typedoc-json-parser): add comment info for classes - chore: update dev deps - chore: regen and dedupe lockfile
1 parent 81259b4 commit aca7434

File tree

90 files changed

+47834
-3888
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+47834
-3888
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Automatic Vercel Deploys
2+
3+
on:
4+
# TODO: Enable pre-merge
5+
# schedule:
6+
# - cron: '30 3 * * *'
7+
workflow_dispatch:
8+
9+
jobs:
10+
AutomaticVercelDeploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Trigger Vercel Deploy
14+
run: curl -X POST ${VERCEL_DEPLOY_HOOK_URL}
15+
env:
16+
VERCEL_DEPLOY_HOOK_URL: ${{ secrets.VERCEL_DEPLOY_HOOK_URL }}

.github/workflows/update-submodules.yml

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

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build/
1414
.docusaurus/
1515
.cache-loader/
1616
docs/Documentation/
17-
tsconfig.tsbuildinfo
17+
*.tsbuildinfo
1818

1919
# misc
2020
.DS_Store
@@ -32,3 +32,6 @@ npm-debug.log*
3232
yarn-debug.log*
3333
yarn-error.log*
3434
*.log
35+
36+
# TODO: Remove later
37+
dist/

.gitmodules

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

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"configurations": [
3+
{
4+
"type": "pwa-node",
5+
"request": "launch",
6+
"runtimeArgs": ["run-script", "debug"],
7+
"name": "Debug Docgen",
8+
"runtimeExecutable": "npm",
9+
"skipFiles": ["<node_internals>/**", "node_modules/tslib/**"],
10+
"internalConsoleOptions": "openOnSessionStart",
11+
"cwd": "${workspaceFolder}/docusaurus-discordjs-docgen",
12+
"console": "internalConsole",
13+
"outputCapture": "std",
14+
"outFiles": ["${workspaceFolder}/docusaurus-discordjs-docgen/dist/**/*.js"]
15+
}
16+
]
17+
}

data/framework.json

Lines changed: 44646 additions & 0 deletions
Large diffs are not rendered by default.

docs/General/Welcome.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ If you don't understand something in the documentation, you are experiencing pro
294294
in the right direction, please don't hesitate to join our official
295295
[Sapphire Community Server](https://sapphirejs.dev/discord).
296296

297-
[frameworksdocs]: ../Documentation/api-framework/
297+
[frameworksdocs]: ../Documentation/sapphire-framework/General/welcome
298298
[djs]: https://discord.js.org/
299299
[saphfw]: https://github.com/sapphiredev/framework
300300
[updating-guide]: ../Guide/getting-started/updating-from-v2-to-v3

docs/Guide/application-commands/application-command-registry/acquiring-an-application-command-registry.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ Read [Registering Application Commands outside a Command][register-outside] for
3737

3838
:::
3939

40-
[register-application-commands]: ../../../Documentation/api-framework/classes/Command#registerapplicationcommands
41-
[command]: ../../../Documentation/api-framework/classes/Command
40+
[register-application-commands]: ../../../Documentation/sapphire-framework/class/Command#registerapplicationcommands
41+
[command]: ../../../Documentation/sapphire-framework/class/Command
4242
[register-outside]: ./advanced/registering-application-commands-outside-a-command

docs/Guide/application-commands/application-command-registry/advanced/routing-existing-application-commands-to-a-command.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ registry.addChatInputCommandIds('123456789123456789');
9494
```
9595

9696
[addchatinputcommandids]:
97-
../../../../Documentation/api-framework/classes/ApplicationCommandRegistry#addchatinputcommandids
97+
../../../../Documentation/sapphire-framework/class/ApplicationCommandRegistry#addchatinputcommandids
9898
[addchatinputcommandnames]:
99-
../../../../Documentation/api-framework/classes/ApplicationCommandRegistry#addchatinputcommandnames
99+
../../../../Documentation/sapphire-framework/class/ApplicationCommandRegistry#addchatinputcommandnames
100100
[addcontextmenucommandnames]:
101-
../../../../Documentation/api-framework/classes/ApplicationCommandRegistry#addcontextmenucommandnames
101+
../../../../Documentation/sapphire-framework/class/ApplicationCommandRegistry#addcontextmenucommandnames
102102
[addcontextmenucommandids]:
103-
../../../../Documentation/api-framework/classes/ApplicationCommandRegistry#addcontextmenucommandids
103+
../../../../Documentation/sapphire-framework/class/ApplicationCommandRegistry#addcontextmenucommandids
104104
[idhints]: ../registering-chat-input-commands#idhints
105-
[rcic]: ../../../../Documentation/api-framework/classes/ApplicationCommandRegistry#registerchatinputcommand
106-
[rcmc]: ../../../../Documentation/api-framework/classes/ApplicationCommandRegistry#registercontextmenucommand
105+
[rcic]: ../../../../Documentation/sapphire-framework/class/ApplicationCommandRegistry#registerchatinputcommand
106+
[rcmc]: ../../../../Documentation/sapphire-framework/class/ApplicationCommandRegistry#registercontextmenucommand
107107
[registering-outside-command-class]: ./registering-application-commands-outside-a-command.mdx

docs/Guide/application-commands/application-command-registry/advanced/setting-global-behavior-when-not-identical.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ import { RegisterBehavior } from '@sapphire/framework';
1414
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.LogToConsole);
1515
```
1616

17-
[application-command-registry]: ../../../../Documentation/api-framework/classes/ApplicationCommandRegistry
17+
[application-command-registry]: ../../../../Documentation/sapphire-framework/class/ApplicationCommandRegistry

0 commit comments

Comments
 (0)