Skip to content

Commit 39fb1e5

Browse files
committed
refactor: switch to json based docs
- feat: start setting up the plugin for parsing - feat: start parsing classes - 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: 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 - fix(docusaurus-typedoc-json-parser): absorb breaking changes and add versioning - refactor: switch to using typedoc-json-parser plugin - chore: add `update` script - fix(deps): update dependency typedoc-json-parser to ^6.0.2 - fix(docusaurus-typedoc-json-parser): proper category yamls - feat(docusaurus-typedoc-json-parser): first steps to proper type linking - refactor(docusaurus-typedoc-json-parser): switch from constant to variable - feat(docusaurus-typedoc-json-parser): render classes - ci: use tags for actions
1 parent 81259b4 commit 39fb1e5

95 files changed

Lines changed: 48013 additions & 3907 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
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/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616

1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
19+
uses: actions/checkout@v3
2020

2121
- name: Initialize CodeQL
22-
uses: github/codeql-action/init@807578363a7869ca324a79039e6db9c843e0e100 # tag=v2
22+
uses: github/codeql-action/init@v2
2323

2424
- name: Autobuild
25-
uses: github/codeql-action/autobuild@807578363a7869ca324a79039e6db9c843e0e100 # tag=v2
25+
uses: github/codeql-action/autobuild@v2
2626

2727
- name: Perform CodeQL Analysis
28-
uses: github/codeql-action/analyze@807578363a7869ca324a79039e6db9c843e0e100 # tag=v2
28+
uses: github/codeql-action/analyze@v2

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout Project
15-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
15+
uses: actions/checkout@v3
1616
with:
1717
submodules: true
1818
- name: Add problem matcher
1919
run: echo "::add-matcher::.github/problemMatchers/eslint.json"
2020
- name: Use Node.js v16
21-
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
21+
uses: actions/setup-node@v3
2222
with:
2323
node-version: 16
2424
cache: yarn
@@ -33,13 +33,13 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout Project
36-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
36+
uses: actions/checkout@v3
3737
with:
3838
submodules: true
3939
- name: Add problem matcher
4040
run: echo "::add-matcher::.github/problemMatchers/eslint.json"
4141
- name: Use Node.js v16
42-
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
42+
uses: actions/setup-node@v3
4343
with:
4444
node-version: 16
4545
cache: yarn
@@ -54,11 +54,11 @@ jobs:
5454
runs-on: ubuntu-latest
5555
steps:
5656
- name: Checkout Project
57-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
57+
uses: actions/checkout@v3
5858
with:
5959
submodules: true
6060
- name: Use Node.js v16
61-
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
61+
uses: actions/setup-node@v3
6262
with:
6363
node-version: 16
6464
cache: yarn

.github/workflows/labelsync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout Project
14-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
14+
uses: actions/checkout@v3
1515
with:
1616
repository: 'sapphiredev/readme'
1717
- name: Run Label Sync
18-
uses: crazy-max/ghaction-github-labeler@77450f9fa47c41fbab15c0923417fff00730ffa3 # tag=v4
18+
uses: crazy-max/ghaction-github-labeler@v4
1919
with:
2020
github-token: ${{ secrets.GITHUB_TOKEN }}
2121
yaml-file: .github/labels.yml

.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+
}

0 commit comments

Comments
 (0)