Skip to content

Commit b15b634

Browse files
committed
chore($core): deprecate official i18n-ui plugin due to its low availability
1 parent 94e5838 commit b15b634

File tree

14 files changed

+16
-298
lines changed

14 files changed

+16
-298
lines changed

Diff for: packages/@vuepress/plugin-i18n-ui/.npmignore

-3
This file was deleted.

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

-5
This file was deleted.

Diff for: packages/@vuepress/plugin-i18n-ui/client.js

-5
This file was deleted.

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

-21
This file was deleted.

Diff for: packages/@vuepress/plugin-i18n-ui/index.vue

-154
This file was deleted.

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

-26
This file was deleted.

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

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ module.exports = ctx => ({
6565
}
6666
},
6767
plugins: [
68-
['@vuepress/i18n-ui', !ctx.isProd],
6968
['@vuepress/back-to-top', true],
7069
['@vuepress/pwa', {
7170
serviceWorker: true,

Diff for: packages/docs/docs/miscellaneous/design-concepts.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -166,23 +166,23 @@ Since all plugins with the same name can be applied ONLY once by default, users
166166
// theme/index.js
167167
module.exports = {
168168
plugins: [
169-
'@vuepress/i18n-ui',
170-
{ route: '/i18n-page/' }
171-
]
169+
'vuepress-plugin-xxx',
170+
{ name: 'foo' }
171+
]
172172
}
173173
```
174174

175175
```js
176176
// .vuepress/config.js
177177
module.exports = {
178178
plugins: [
179-
'@vuepress/i18n-ui',
180-
{ route: '/i18n/' }
179+
'vuepress-plugin-xxx',
180+
{ name: 'bar' }
181181
]
182182
}
183183
```
184184

185-
Then the final route of i18n UI is `/i18n/`.
185+
Then the final value of `name` option will be `bar`.
186186

187187

188188
## Others

Diff for: packages/docs/docs/plugin/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ Plugins usually add global-level functionality to VuePress. There is no strictly
44

55
1. Extend the page's metadata generated at compile time. e.g. [@vuepress/plugin-last-updated](./official/plugin-last-updated.md);
66
2. Generate extra files before or after compilation. e.g. [@vuepress/plugin-pwa](./official/plugin-pwa.md);
7-
3. Add extra pages. e.g. [@vuepress/plugin-i18n-ui](./official/plugin-i18n-ui.md);
8-
4. Inject global UI. e.g. [@vuepress/plugin-back-to-top](./official/plugin-back-to-top.md);
9-
5. Exntend command of CLI,如 [vuepress-plugin-export](https://github.com/ulivz/vuepress-plugin-export)
7+
3. Inject global UI. e.g. [@vuepress/plugin-back-to-top](./official/plugin-back-to-top.md);
8+
4. Exntend command of CLI,如 [vuepress-plugin-export](https://github.com/ulivz/vuepress-plugin-export)
109

1110
![Architecture of VuePress](/architecture.png)

Diff for: packages/docs/docs/plugin/official/plugin-i18n-ui.md

-32
This file was deleted.

Diff for: packages/docs/docs/zh/miscellaneous/design-concepts.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -167,23 +167,23 @@ $accentColor = #f00
167167
// theme/index.js
168168
module.exports = {
169169
plugins: [
170-
'@vuepress/i18n-ui',
171-
{ route: '/i18n-page/' }
172-
]
170+
'vuepress-plugin-xxx',
171+
{ name: 'foo' }
172+
]
173173
}
174174
```
175175

176176
```js
177177
// .vuepress/config.js
178178
module.exports = {
179179
plugins: [
180-
'@vuepress/i18n-ui',
181-
{ route: '/i18n/' }
180+
'vuepress-plugin-xxx',
181+
{ name: 'bar' }
182182
]
183183
}
184184
```
185185

186-
i18n UI 最终的路由将是 `/i18n/`.
186+
name 的最终值将是 `bar`.
187187

188188
## 其他
189189

Diff for: packages/docs/docs/zh/plugin/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
1. 拓展在编译期生成的页面元数据,如:[@vuepress/plugin-last-updated](./official/plugin-last-updated.md)
66
2. 在编译前后生成额外的文件,如:[@vuepress/plugin-pwa](./official/plugin-pwa.md)
7-
3. 增加额外的页面,如:[@vuepress/plugin-i18n-ui](./official/plugin-i18n-ui.md)
8-
4. 注入全局的 UI, 如:[@vuepress/plugin-back-to-top](./official/plugin-back-to-top.md);
9-
5. 拓展 CLI 的指令,如 [vuepress-plugin-export](https://github.com/ulivz/vuepress-plugin-export)
7+
3. 注入全局的 UI, 如:[@vuepress/plugin-back-to-top](./official/plugin-back-to-top.md);
8+
4. 拓展 CLI 的指令,如 [vuepress-plugin-export](https://github.com/ulivz/vuepress-plugin-export)
109

1110
![Architecture of VuePress](/architecture.png)

Diff for: packages/docs/docs/zh/plugin/official/plugin-i18n-ui.md

-32
This file was deleted.

Diff for: packages/docs/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"devDependencies": {
2828
"@vuepress/plugin-back-to-top": "^1.0.0-alpha.44",
2929
"@vuepress/plugin-google-analytics": "^1.0.0-alpha.44",
30-
"@vuepress/plugin-i18n-ui": "^1.0.0-alpha.44",
3130
"@vuepress/plugin-medium-zoom": "^1.0.0-alpha.44",
3231
"@vuepress/plugin-pwa": "^1.0.0-alpha.44",
3332
"@vuepress/theme-vue": "^1.0.0-alpha.44",

0 commit comments

Comments
 (0)