mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +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 || '')
|
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')
|
if (file.includes('Promise<')) console.log('Removing Promise< failed')
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
// Note: type annotations allow type checking and IDEs autocompletion
|
// Note: type annotations allow type checking and IDEs autocompletion
|
||||||
|
|
||||||
const lightCodeTheme = require('prism-react-renderer/themes/github')
|
const { themes } = require('prism-react-renderer')
|
||||||
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
|
|
||||||
|
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
@@ -125,8 +124,8 @@ const config = {
|
|||||||
copyright: `Copyright © 2021-${new Date().getFullYear()}, Discordeno.`,
|
copyright: `Copyright © 2021-${new Date().getFullYear()}, Discordeno.`,
|
||||||
},
|
},
|
||||||
prism: {
|
prism: {
|
||||||
theme: lightCodeTheme,
|
theme: themes.github,
|
||||||
darkTheme: darkCodeTheme,
|
darkTheme: themes.dracula,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
@@ -150,4 +149,4 @@ const config = {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = config
|
module.exports = config
|
||||||
|
|||||||
+20
-20
@@ -19,33 +19,33 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/plugin-syntax-flow": "^7.23.3",
|
"@babel/plugin-syntax-flow": "^7.23.3",
|
||||||
"@docusaurus/core": "2.4.3",
|
"@docusaurus/core": "3.0.1",
|
||||||
"@docusaurus/preset-classic": "2.4.3",
|
"@docusaurus/preset-classic": "3.0.1",
|
||||||
"@easyops-cn/docusaurus-search-local": "^0.34.0",
|
"@easyops-cn/docusaurus-search-local": "^0.38.1",
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "^3.0.0",
|
||||||
"babel-plugin-styled-components": "^2.1.4",
|
"babel-plugin-styled-components": "^2.1.4",
|
||||||
"chart.js": "^4.4.0",
|
"chart.js": "^4.4.1",
|
||||||
"clsx": "^1.2.1",
|
"clsx": "^2.0.0",
|
||||||
"prism-react-renderer": "^1.3.5",
|
"prism-react-renderer": "^2.3.0",
|
||||||
"react": "^17.0.2",
|
"react": "^18.2.0",
|
||||||
"react-chartjs-2": "^5.2.0",
|
"react-chartjs-2": "^5.2.0",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^18.2.0",
|
||||||
"styled-components": "^5.3.11"
|
"styled-components": "^6.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "2.4.3",
|
"@docusaurus/module-type-aliases": "3.0.1",
|
||||||
"@tsconfig/docusaurus": "^1.0.7",
|
"@tsconfig/docusaurus": "^2.0.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
||||||
"@typescript-eslint/parser": "^5.62.0",
|
"@typescript-eslint/parser": "^6.13.2",
|
||||||
"eslint": "^8.54.0",
|
"eslint": "^8.55.0",
|
||||||
"eslint-config-prettier": "^8.10.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-config-standard-with-typescript": "^34.0.1",
|
"eslint-config-standard-with-typescript": "^40.0.0",
|
||||||
"eslint-plugin-import": "^2.29.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-promise": "^6.1.1",
|
||||||
"eslint-plugin-react": "^7.33.2",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^3.1.0",
|
||||||
"typescript": "5.2.2"
|
"typescript": "5.3.2"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
|||||||
+3070
-2188
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user