Skip to content

Commit

Permalink
fix: 移除未使用依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
hailaz committed Nov 18, 2024
1 parent d071822 commit ba3511c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 30 deletions.
3 changes: 3 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ yarn
# 添加依赖(举例)
yarn add @docusaurus/theme-classic

# 删除依赖(举例)
yarn remove @docusaurus/theme-classic

# 运行
yarn start

Expand Down
15 changes: 1 addition & 14 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,7 @@ const config: Config = {
} satisfies Preset.Options,
],
],
plugins: [
require.resolve('docusaurus-plugin-image-zoom'),
// [
// '@docusaurus/plugin-client-redirects',
// {
// redirects: [
// {
// to: '/release/v2.8.0', // 目标页面的路径
// from: ['/release/v2.8'], // 要重定向的路径列表
// },
// ],
// },
// ],
],
plugins: [require.resolve('docusaurus-plugin-image-zoom')],
themeConfig: {
metadata: [
{
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"dependencies": {
"@docusaurus/core": "^3.6.1",
"@docusaurus/faster": "^3.6.1",
"@docusaurus/plugin-client-redirects": "^3.6.1",
"@docusaurus/plugin-content-docs": "^3.6.1",
"@docusaurus/plugin-ideal-image": "^3.6.1",
"@docusaurus/preset-classic": "^3.6.1",
Expand Down
15 changes: 0 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1398,21 +1398,6 @@
react-helmet-async "*"
react-loadable "npm:@docusaurus/[email protected]"

"@docusaurus/plugin-client-redirects@^3.6.1":
version "3.6.1"
resolved "https://mirrors.tencent.com/npm/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-3.6.1.tgz#a035708ff13234a30dbaa84526ab12a102e00d07"
integrity sha512-gY1LEQw4zSLSPNVxZk9mDj5ct+sJNux0SiY1PbMiI9sK8xXqkTC7QuRyrxRPelSZX9K4nyhK8PjYbVXAN+GUWQ==
dependencies:
"@docusaurus/core" "3.6.1"
"@docusaurus/logger" "3.6.1"
"@docusaurus/utils" "3.6.1"
"@docusaurus/utils-common" "3.6.1"
"@docusaurus/utils-validation" "3.6.1"
eta "^2.2.0"
fs-extra "^11.1.1"
lodash "^4.17.21"
tslib "^2.6.0"

"@docusaurus/[email protected]":
version "3.6.1"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.6.1.tgz#1127d35e1a443e87f9674f955acf7864bc62bfed"
Expand Down

0 comments on commit ba3511c

Please sign in to comment.