Skip to content

Commit

Permalink
docs: simplify message wording + message on landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 17, 2022
1 parent 7c0134e commit 248f770
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 43 deletions.
26 changes: 11 additions & 15 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ export default {

function notice_en() {
return h('div', { class: 'warning custom-block' }, [
h('p', { class: 'custom-block-title' }, '⚠️ Notice'),
h(
'p',
{ class: 'custom-block-title' },
'⚠️ Vue CLI is in Maintenance Mode!'
),
h('p', [
'Vue CLI is now in maintenance mode. For new projects, please use ',
'For new projects, it is now recommended to use ',
h(
'a',
{
Expand All @@ -44,10 +48,6 @@ function notice_en() {
' to scaffold ',
h('a', { href: 'https://vitejs.dev', target: '_blank' }, 'Vite'),
'-based projects. ',
h('code', 'create-vue'),
' supports both Vue 2 and Vue 3.'
]),
h('p', [
'Also refer to the ',
h(
'a',
Expand All @@ -64,9 +64,9 @@ function notice_en() {

function notice_zh_cn() {
return h('div', { class: 'warning custom-block' }, [
h('p', { class: 'custom-block-title' }, '⚠️ Notice'),
h('p', { class: 'custom-block-title' }, '⚠️ Vue CLI 现已处于维护模式!'),
h('p', [
'Vue CLI 现已处于维护模式。新项目请使用 ',
'现在官方推荐使用 ',
h(
'a',
{
Expand All @@ -77,16 +77,12 @@ function notice_zh_cn() {
),
' 来创建基于 ',
h('a', { href: 'https://cn.vitejs.dev', target: '_blank' }, 'Vite'),
' 的项目. ',
h('code', 'create-vue'),
' 同时支持 Vue 2 和 Vue 3.'
]),
h('p', [
'另外,请参考 ',
' 的新项目。 ',
'另外请参考 ',
h(
'a',
{
href: 'https://vuejs.org/guide/scaling-up/tooling.html',
href: 'https://cn.vuejs.org/guide/scaling-up/tooling.html',
target: '_blank'
},
'Vue 3 工具链指南'
Expand Down
19 changes: 4 additions & 15 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,13 @@ home: true
heroImage: /favicon.png
actionText: Get Started →
actionLink: /guide/

features:
- title: Feature Rich
details: Out-of-the-box support for Babel, TypeScript, ESLint, PostCSS, PWA, Unit Testing & End-to-end Testing.
- title: Extensible
details: The plugin system allows the community to build and share reusable solutions to common needs.
- title: No Need to Eject
details: Vue CLI is fully configurable without the need for ejecting. This allows your project to stay up-to-date for the long run.
- title: Graphical User Interface
details: Create, develop and manage your projects through an accompanying graphical user interface.
- title:
details:
- title: Future Ready
details: Effortlessly ship native ES2015 code for modern browsers, or build your vue components as native web components.

footer: MIT Licensed | Copyright © 2018-present Evan You
---

:::warning Vue CLI is in Maintenance Mode!
For new projects, please use [create-vue](https://github.com/vuejs/create-vue) to scaffold [Vite](https://vitejs.dev/)-based projects. Also refer to the [Vue 3 Tooling Guide](https://vuejs.org/guide/scaling-up/tooling.html) for the latest recommendations.
:::

## Getting Started

Install:
Expand Down
17 changes: 4 additions & 13 deletions docs/zh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,13 @@ home: true
heroImage: /favicon.png
actionText: 起步 →
actionLink: /zh/guide/
features:
- title: 功能丰富
details: 对 Babel、TypeScript、ESLint、PostCSS、PWA、单元测试和 End-to-end 测试提供开箱即用的支持。
- title: 易于扩展
details: 它的插件系统可以让社区根据常见需求构建和共享可复用的解决方案。
- title: 无需 Eject
details: Vue CLI 完全是可配置的,无需 eject。这样你的项目就可以长期保持更新了。
- title: CLI 之上的图形化界面
details: 通过配套的图形化界面创建、开发和管理你的项目。
- title: 即刻创建原型
details: 用单个 Vue 文件即刻实践新的灵感。
- title: 面向未来
details: 为现代浏览器轻松产出原生的 ES2015 代码,或将你的 Vue 组件构建为原生的 Web Components 组件。
footer: MIT Licensed | Copyright © 2018-present Evan You
---

:::warning Vue CLI 现已处于维护模式!
现在官方推荐使用 [create-vue](https://github.com/vuejs/create-vue) 来创建基于 [Vite](https://vitejs.dev/) 的新项目。另外请参考 [Vue 3 工具链指南](https://cn.vuejs.org/guide/scaling-up/tooling.html) 以了解最新的工具推荐。
:::

## 起步

安装:
Expand Down

0 comments on commit 248f770

Please sign in to comment.