From c52a3f672132a0abce6c9e6a96bc70a4c9944e57 Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Tue, 26 Nov 2024 23:20:21 +0200 Subject: [PATCH] chore: trim down the website --- package.json | 3 --- website/docusaurus.config.js | 18 +++--------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 9759a2ae..900a192e 100644 --- a/package.json +++ b/package.json @@ -194,8 +194,5 @@ "pascal-case" ] } - }, - "tsd": { - "directory": "tests" } } diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 2ba498eb..8e743a74 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ -const { join } = require('path'); +const { join } = require('node:path'); const { npm2yarn2pnpm } = require('@sapphire/docusaurus-plugin-npm2yarn2pnpm'); const { ts2esm2cjs } = require('@sapphire/docusaurus-plugin-ts2esm2cjs'); const lightCodeTheme = require('prism-react-renderer/themes/github'); @@ -62,22 +62,10 @@ const config = { { path: './', entry: { - globals: { path: 'globals.ts', label: 'Global Types' }, - 'gateway/common': { path: 'gateway/common.ts', label: 'Gateway - Common Types' }, - 'payloads/common': { path: 'payloads/common.ts', label: 'Payloads - Common Types' }, - 'rest/common': { path: 'rest/common.ts', label: 'REST - Common Types' }, - 'rpc/common': { path: 'rpc/common.ts', label: 'RPC - Common Types' }, - v6: { path: 'v6.ts', label: 'API v6 - Deprecated' }, - v8: { path: 'v8.ts', label: 'API v8 - Deprecated' }, - v9: { path: 'v9.ts', label: 'API v9' }, v10: { path: 'v10.ts', label: 'API v10' }, - 'rpc/v8': { path: 'rpc/v8.ts', label: 'RPC v8' }, - 'rpc/v9': { path: 'rpc/v9.ts', label: 'RPC v9' }, - 'rpc/v10': { path: 'rpc/v10.ts', label: 'RPC v10' }, + v9: { path: 'v9.ts', label: 'API v9' }, 'voice/v4': { path: 'voice/v4.ts', label: 'Voice v4' }, - 'utils/v8': { path: 'utils/v8.ts', label: 'Utils v8' }, - 'utils/v9': { path: 'utils/v9.ts', label: 'Utils v9' }, - 'utils/v10': { path: 'utils/v10.ts', label: 'Utils v10' } + globals: { path: 'globals.ts', label: 'Global Types' }, }, slug: 'discord-api-types' }