Skip to content

Commit 3c584d1

Browse files
committed
refactor(theme-default)!: remove debug plugin
1 parent 75877d4 commit 3c584d1

File tree

8 files changed

+0
-46
lines changed

8 files changed

+0
-46
lines changed

docs/reference/default-theme/config.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -562,16 +562,6 @@ module.exports = {
562562
- Also see:
563563
- [Default Theme > Markdown > Custom Containers](./markdown.md#custom-containers)
564564

565-
#### themePlugins.debug
566-
567-
- Type: `boolean`
568-
569-
- Default: `true`
570-
571-
- Details:
572-
573-
Enable [@vuepress/plugin-debug](../plugin/debug.md) or not.
574-
575565
#### themePlugins.git
576566

577567
- Type: `boolean`

docs/zh/reference/default-theme/config.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -562,16 +562,6 @@ module.exports = {
562562
- 参考:
563563
- [默认主题 > Markdown > 自定义容器](./markdown.md#自定义容器)
564564

565-
#### themePlugins.debug
566-
567-
- 类型: `boolean`
568-
569-
- 默认值: `true`
570-
571-
- 详情:
572-
573-
是否启用 [@vuepress/plugin-debug](../plugin/debug.md)
574-
575565
#### themePlugins.git
576566

577567
- 类型: `boolean`

packages/@vuepress/theme-default/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"@vuepress/plugin-active-header-links": "2.0.0-alpha.19",
3535
"@vuepress/plugin-back-to-top": "2.0.0-alpha.19",
3636
"@vuepress/plugin-container": "2.0.0-alpha.19",
37-
"@vuepress/plugin-debug": "2.0.0-alpha.19",
3837
"@vuepress/plugin-git": "2.0.0-alpha.19",
3938
"@vuepress/plugin-medium-zoom": "2.0.0-alpha.19",
4039
"@vuepress/plugin-nprogress": "2.0.0-alpha.19",

packages/@vuepress/theme-default/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
resolveContainerPluginOptionsForDetails,
88
resolveContainerPluginOptionsForCodeGroup,
99
resolveContainerPluginOptionsForCodeGroupItem,
10-
resolveDebugPluginOptions,
1110
resolveGitPluginOptions,
1211
resolveMediumZoomPluginOptions,
1312
resolvePaletteStylusPluginOptions,
@@ -53,7 +52,6 @@ export const defaultTheme: Theme<DefaultThemeOptions> = (options, app) => {
5352
'@vuepress/container',
5453
resolveContainerPluginOptionsForCodeGroupItem(options),
5554
],
56-
['@vuepress/debug', resolveDebugPluginOptions(options, app)],
5755
['@vuepress/git', resolveGitPluginOptions(options)],
5856
['@vuepress/medium-zoom', resolveMediumZoomPluginOptions(options)],
5957
['@vuepress/nprogress', options.themePlugins?.nprogress !== false],
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export * from './assignDefaultOptions'
22
export * from './resolveActiveHeaderLinksPluginOptions'
33
export * from './resolveContainerPluginOptions'
4-
export * from './resolveDebugPluginOptions'
54
export * from './resolveGitPluginOptions'
65
export * from './resolveMediumZoomPluginOptions'
76
export * from './resolvePaletteStylusPluginOptions'

packages/@vuepress/theme-default/src/node/resolveDebugPluginOptions.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/@vuepress/theme-default/src/types/options.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ export interface DefaultThemeOptions
3030
codeGroupItem?: boolean
3131
}
3232

33-
/**
34-
* Enable @vuepress/plugin-debug or not
35-
*/
36-
debug?: boolean
37-
3833
/**
3934
* Enable @vuepress/plugin-git or not
4035
*/

packages/@vuepress/theme-default/tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
{ "path": "../plugin-active-header-links/tsconfig.build.json" },
77
{ "path": "../plugin-back-to-top/tsconfig.build.json" },
88
{ "path": "../plugin-container/tsconfig.build.json" },
9-
{ "path": "../plugin-docsearch/tsconfig.build.json" },
109
{ "path": "../plugin-git/tsconfig.build.json" },
1110
{ "path": "../plugin-medium-zoom/tsconfig.build.json" },
1211
{ "path": "../plugin-nprogress/tsconfig.build.json" },

0 commit comments

Comments
 (0)