chore: attempt to update docusaurus

This commit is contained in:
Vlad Frangu
2023-02-08 16:02:24 +02:00
parent fddb6f1362
commit d1da49558c
4 changed files with 2861 additions and 18716 deletions

View File

@@ -60,24 +60,24 @@ const config = {
projectRoot: join(__dirname, '../'),
packages: [
{
path: './',
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' },
'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' },
// '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', label: 'API v6 - Deprecated' },
// v8: { path: 'v8', 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' },
// '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' }
},
slug: 'discord-api-types'
}

21474
website/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -27,52 +27,52 @@
"vercel-build": "npm run build"
},
"dependencies": {
"@docusaurus/core": "canary",
"@docusaurus/plugin-pwa": "canary",
"@docusaurus/preset-classic": "canary",
"@docusaurus/theme-search-algolia": "canary",
"@docusaurus/core": "^2.3.1",
"@docusaurus/plugin-pwa": "^2.3.1",
"@docusaurus/preset-classic": "^2.3.1",
"@docusaurus/theme-search-algolia": "^2.3.1",
"@heroicons/react": "^1.0.6",
"@mdx-js/react": "^1.6.22",
"@sapphire/docusaurus-plugin-npm2yarn2pnpm": "^1.1.0",
"@sapphire/docusaurus-plugin-ts2esm2cjs": "^1.1.0",
"@svgr/webpack": "^6.2.1",
"@sapphire/docusaurus-plugin-npm2yarn2pnpm": "^1.1.4",
"@sapphire/docusaurus-plugin-ts2esm2cjs": "^1.1.3",
"@svgr/webpack": "^6.5.1",
"@tippyjs/react": "^4.2.6",
"clsx": "^1.1.1",
"docusaurus-plugin-sass": "^0.2.2",
"docusaurus-plugin-typedoc-api": "^2.0.1",
"prism-react-renderer": "^1.3.3",
"clsx": "^1.2.1",
"docusaurus-plugin-sass": "^0.2.3",
"docusaurus-plugin-typedoc-api": "^2.5.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"sass": "^1.52.3",
"sass": "^1.58.0",
"swr": "^1.3.0"
},
"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@docusaurus/module-type-aliases": "canary",
"@sapphire/prettier-config": "^1.4.3",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@docusaurus/module-type-aliases": "2.3.1",
"@sapphire/prettier-config": "^1.4.5",
"@sapphire/ts-config": "^3.3.4",
"@types/node": "^17.0.42",
"@types/react": "^18.0.12",
"@types/react-dom": "^18.0.5",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"@types/node": "^18.13.0",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.17.0",
"lint-staged": "^13.0.1",
"markdownlint": "^0.25.1",
"markdownlint-cli2": "^0.4.0",
"eslint": "^8.33.0",
"lint-staged": "^13.1.1",
"markdownlint": "^0.27.0",
"markdownlint-cli2": "^0.6.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"prettier": "^2.8.4",
"pretty-quick": "^3.1.3",
"replace-in-file": "^6.3.5",
"rimraf": "^3.0.2",
"typedoc": "^0.22.17",
"typedoc-plugin-djs-links": "^1.0.4",
"typedoc-plugin-markdown": "^3.12.1",
"typedoc-plugin-mdn-links": "^1.0.6",
"typescript": "^4.7.3"
"rimraf": "^4.1.2",
"typedoc": "^0.23.24",
"typedoc-plugin-djs-links": "^1.2.0",
"typedoc-plugin-markdown": "^3.14.0",
"typedoc-plugin-mdn-links": "^2.0.2",
"typescript": "^4.9.5"
},
"browserslist": {
"production": [

View File

@@ -1,14 +1,13 @@
import { npmToPnpm } from '@sapphire/docusaurus-plugin-npm2yarn2pnpm';
import { npmToPnpm, npmToYarn } from '@sapphire/docusaurus-plugin-npm2yarn2pnpm';
import TabItem from '@theme/TabItem';
import Tabs from '@theme/Tabs';
import npmToYarn from 'npm-to-yarn';
import React, { FC } from 'react';
import InstallTabButton from './InstallTabButton';
import styles from './InstallTabs.module.css';
const InstallTabs: FC = () => {
const npmInstallCommand = 'npm install discord-api-types';
const yarnInstallCommand = npmToYarn(npmInstallCommand, 'yarn');
const yarnInstallCommand = npmToYarn(npmInstallCommand);
const pnpmInstallCommand = npmToPnpm(npmInstallCommand);
const handleClickInstallButton = async (command: string) => {