Skip to content

Commit c88f983

Browse files
shigmaulivz
authored andcommitted
chore: remove plugin-container (#1462)
1 parent 19e0569 commit c88f983

File tree

24 files changed

+36
-373
lines changed

24 files changed

+36
-373
lines changed

Diff for: packages/@vuepress/core/lib/node/App.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ module.exports = class App {
149149
.use(require('./internal-plugins/transformModule'))
150150
.use(require('./internal-plugins/dataBlock'))
151151
.use(require('./internal-plugins/frontmatterBlock'))
152-
.use('@vuepress/container', {
152+
.use('container', {
153153
type: 'slot',
154154
before: info => `<template slot="${info}">`,
155155
after: '</template>'
156156
})
157-
.use('@vuepress/container', {
157+
.use('container', {
158158
type: 'v-pre',
159159
before: '<div v-pre>',
160160
after: '</div>'

Diff for: packages/@vuepress/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"@vue/babel-preset-app": "^3.1.1",
3434
"@vuepress/markdown": "^1.0.0-alpha.44",
3535
"@vuepress/markdown-loader": "^1.0.0-alpha.44",
36-
"@vuepress/plugin-container": "^1.0.0-alpha.44",
3736
"@vuepress/plugin-last-updated": "^1.0.0-alpha.44",
3837
"@vuepress/plugin-register-components": "^1.0.0-alpha.44",
3938
"@vuepress/shared-utils": "^1.0.0-alpha.44",
@@ -60,6 +59,7 @@
6059
"vue-server-renderer": "^2.5.16",
6160
"vue-template-compiler": "^2.5.16",
6261
"vuepress-html-webpack-plugin": "^3.2.0",
62+
"vuepress-plugin-container": "^2.0.0",
6363
"webpack": "^4.8.1",
6464
"webpack-chain": "^4.6.0",
6565
"webpack-dev-server": "^3.1.14",

Diff for: packages/@vuepress/plugin-container/.npmignore

-3
This file was deleted.

Diff for: packages/@vuepress/plugin-container/README.md

-5
This file was deleted.

Diff for: packages/@vuepress/plugin-container/__tests__/__snapshots__/index.spec.js.snap

-48
This file was deleted.

Diff for: packages/@vuepress/plugin-container/__tests__/fragments/danger.md

-3
This file was deleted.

Diff for: packages/@vuepress/plugin-container/__tests__/fragments/markdown-slots.md

-10
This file was deleted.

Diff for: packages/@vuepress/plugin-container/__tests__/fragments/tip-override.md

-3
This file was deleted.

Diff for: packages/@vuepress/plugin-container/__tests__/fragments/tip.md

-3
This file was deleted.

Diff for: packages/@vuepress/plugin-container/__tests__/fragments/v-pre.md

-3
This file was deleted.

Diff for: packages/@vuepress/plugin-container/__tests__/fragments/warning.md

-3
This file was deleted.

Diff for: packages/@vuepress/plugin-container/__tests__/index.spec.js

-36
This file was deleted.

Diff for: packages/@vuepress/plugin-container/index.js

-50
This file was deleted.

Diff for: packages/@vuepress/plugin-container/package.json

-32
This file was deleted.

Diff for: packages/@vuepress/theme-default/index.js

+18-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,23 @@ module.exports = (options, ctx) => ({
2121
'@vuepress/active-header-links',
2222
'@vuepress/search',
2323
'@vuepress/plugin-nprogress',
24-
['@vuepress/container', { type: 'tip' }],
25-
['@vuepress/container', { type: 'warning' }],
26-
['@vuepress/container', { type: 'danger' }]
24+
['container', {
25+
type: 'tip',
26+
defaultTitle: {
27+
'/zh/': '提示'
28+
}
29+
}],
30+
['container', {
31+
type: 'warning',
32+
defaultTitle: {
33+
'/zh/': '注意'
34+
}
35+
}],
36+
['container', {
37+
type: 'danger',
38+
defaultTitle: {
39+
'/zh/': '警告'
40+
}
41+
}]
2742
]
2843
})

Diff for: packages/@vuepress/theme-default/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
"homepage": "https://github.com/vuejs/vuepress/packages/@vuepress/theme-default#readme",
3232
"dependencies": {
3333
"@vuepress/plugin-active-header-links": "^1.0.0-alpha.44",
34-
"@vuepress/plugin-container": "^1.0.0-alpha.44",
3534
"@vuepress/plugin-nprogress": "^1.0.0-alpha.44",
3635
"@vuepress/plugin-search": "^1.0.0-alpha.44",
3736
"docsearch.js": "^2.5.2",
3837
"stylus": "^0.54.5",
39-
"stylus-loader": "^3.0.2"
38+
"stylus-loader": "^3.0.2",
39+
"vuepress-plugin-container": "^2.0.0"
4040
}
4141
}

Diff for: packages/docs/docs/.vuepress/config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ module.exports = ctx => ({
7474
['@vuepress/google-analytics', {
7575
ga: 'UA-128189152-1'
7676
}],
77-
['@vuepress/container', {
77+
['container', {
7878
type: 'vue',
7979
before: '<pre class="vue-container"><code>',
8080
after: '</code></pre>',
8181
}],
82-
['@vuepress/container', {
82+
['container', {
8383
type: 'upgrade',
8484
before: info => `<UpgradePath title="${info}">`,
8585
after: '</UpgradePath>',

Diff for: packages/docs/docs/guide/markdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Danger zone, do not proceed
167167

168168
**Also see:**
169169

170-
- [@vuepress/plugin-container](../plugin/official/plugin-container.md)
170+
- [vuepress-plugin-container](https://vuepress.github.io/plugins/container/)
171171

172172
## Syntax Highlighting in Code Blocks
173173

Diff for: packages/docs/docs/plugin/official/plugin-container.md

-80
This file was deleted.

Diff for: packages/docs/docs/zh/guide/markdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Danger zone, do not proceed
165165

166166
**参考:**
167167

168-
- [@vuepress/plugin-container](../plugin/official/plugin-container.md)
168+
- [vuepress-plugin-container](https://vuepress.github.io/plugins/container/)
169169

170170
## 代码块中的语法高亮
171171

0 commit comments

Comments
 (0)