mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
chore(deps): update docusaurus to v3 (#3264)
* chore(deps): update docusaurus to v3 * chore(deps): update all deps in site
This commit is contained in:
@@ -59,7 +59,8 @@ for await (let filepath of walk(typedocOutPath)) {
|
||||
if (!filepath.endsWith(`${form.ugly}md`)) filepath = filepath.replace(new RegExp(form.ugly, 'gi'), form.clean || '')
|
||||
}
|
||||
|
||||
file = file.replace(/Promise<([^>]+)>/gi, 'Promise{$1}')
|
||||
file = file.replace(/(?<!\\)(<|>|,|=|\{|\})/gi, `\\$1`)
|
||||
file = file.replace(/(?<!README|modules)\.md/gi, '')
|
||||
|
||||
if (file.includes('Promise<')) console.log('Removing Promise< failed')
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// @ts-check
|
||||
// Note: type annotations allow type checking and IDEs autocompletion
|
||||
|
||||
const lightCodeTheme = require('prism-react-renderer/themes/github')
|
||||
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
|
||||
const { themes } = require('prism-react-renderer')
|
||||
|
||||
/** @type {import('@docusaurus/types').Config} */
|
||||
const config = {
|
||||
@@ -125,8 +124,8 @@ const config = {
|
||||
copyright: `Copyright © 2021-${new Date().getFullYear()}, Discordeno.`,
|
||||
},
|
||||
prism: {
|
||||
theme: lightCodeTheme,
|
||||
darkTheme: darkCodeTheme,
|
||||
theme: themes.github,
|
||||
darkTheme: themes.dracula,
|
||||
},
|
||||
}),
|
||||
|
||||
@@ -150,4 +149,4 @@ const config = {
|
||||
],
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
module.exports = config
|
||||
|
||||
@@ -19,33 +19,33 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-syntax-flow": "^7.23.3",
|
||||
"@docusaurus/core": "2.4.3",
|
||||
"@docusaurus/preset-classic": "2.4.3",
|
||||
"@easyops-cn/docusaurus-search-local": "^0.34.0",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"@docusaurus/core": "3.0.1",
|
||||
"@docusaurus/preset-classic": "3.0.1",
|
||||
"@easyops-cn/docusaurus-search-local": "^0.38.1",
|
||||
"@mdx-js/react": "^3.0.0",
|
||||
"babel-plugin-styled-components": "^2.1.4",
|
||||
"chart.js": "^4.4.0",
|
||||
"clsx": "^1.2.1",
|
||||
"prism-react-renderer": "^1.3.5",
|
||||
"react": "^17.0.2",
|
||||
"chart.js": "^4.4.1",
|
||||
"clsx": "^2.0.0",
|
||||
"prism-react-renderer": "^2.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-chartjs-2": "^5.2.0",
|
||||
"react-dom": "^17.0.2",
|
||||
"styled-components": "^5.3.11"
|
||||
"react-dom": "^18.2.0",
|
||||
"styled-components": "^6.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/module-type-aliases": "2.4.3",
|
||||
"@tsconfig/docusaurus": "^1.0.7",
|
||||
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
||||
"@typescript-eslint/parser": "^5.62.0",
|
||||
"eslint": "^8.54.0",
|
||||
"eslint-config-prettier": "^8.10.0",
|
||||
"eslint-config-standard-with-typescript": "^34.0.1",
|
||||
"@docusaurus/module-type-aliases": "3.0.1",
|
||||
"@tsconfig/docusaurus": "^2.0.2",
|
||||
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
||||
"@typescript-eslint/parser": "^6.13.2",
|
||||
"eslint": "^8.55.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-config-standard-with-typescript": "^40.0.0",
|
||||
"eslint-plugin-import": "^2.29.0",
|
||||
"eslint-plugin-n": "^15.7.0",
|
||||
"eslint-plugin-n": "^16.3.1",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"eslint-plugin-react": "^7.33.2",
|
||||
"prettier": "^2.8.8",
|
||||
"typescript": "5.2.2"
|
||||
"prettier": "^3.1.0",
|
||||
"typescript": "5.3.2"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
||||
5258
website/yarn.lock
5258
website/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user