Skip to content

Commit 890b153

Browse files
HomyeeKingwanghongye
and
wanghongye
authored
feat: update doc with next version doc (vuejs#1751)
Co-authored-by: wanghongye <[email protected]>
1 parent d03f7d3 commit 890b153

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

docs/.vuepress/config.js

+32-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ module.exports = {
4848
},
4949
{
5050
text: 'Guides',
51-
link: '/guides/'
51+
link: '/guides/',
52+
items: [
53+
{
54+
text: '2.x-beta',
55+
link:
56+
'https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html'
57+
}
58+
]
5259
},
5360
{
5461
text: 'Upgrading to V1',
@@ -77,7 +84,14 @@ module.exports = {
7784
},
7885
{
7986
text: '教程',
80-
link: '/zh/guides/'
87+
link: '/zh/guides/',
88+
items: [
89+
{
90+
text: '2.x-beta',
91+
link:
92+
'https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html'
93+
}
94+
]
8195
}
8296
],
8397
sidebar: [
@@ -102,7 +116,14 @@ module.exports = {
102116
},
103117
{
104118
text: 'ガイド',
105-
link: '/ja/guides/'
119+
link: '/ja/guides/',
120+
items: [
121+
{
122+
text: '2.x-beta',
123+
link:
124+
'https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html'
125+
}
126+
]
106127
}
107128
],
108129
sidebar: [
@@ -127,7 +148,14 @@ module.exports = {
127148
},
128149
{
129150
text: 'Руководства',
130-
link: '/ru/guides/'
151+
link: '/ru/guides/',
152+
items: [
153+
{
154+
text: '2.x-beta',
155+
link:
156+
'https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html'
157+
}
158+
]
131159
}
132160
],
133161
sidebar: [

docs/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Introduction
22

3+
::: warning
4+
This doc is for Vue2.x only. If you want to see docs related to 3.x, please move to [here](https://vue-test-utils.vuejs.org/v2/guide/introduction.html)
5+
:::
6+
37
Vue Test Utils is the official unit testing utility library for Vue.js.
48

59
<div class="vueschool"><a href="https://vueschool.io/courses/learn-how-to-test-vuejs-components?friend=vuejs" target="_blank" rel="sponsored noopener" title="Learn how to use Vue Test Utils to test Vue.js Components with Vue School">Learn how to test Vue.js components with Vue School</a></div>

docs/zh/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 介绍
22

3+
::: warning
4+
本文档基于 Vue2.x,新版本文档请移步至[这里](https://vue-test-utils.vuejs.org/v2/guide/introduction.html)
5+
:::
6+
37
Vue Test Utils 是 Vue.js 官方的单元测试实用工具库。
48

59
<div class="vueschool"><a href="https://vueschool.io/courses/learn-how-to-test-vuejs-components?friend=vuejs" target="_blank" rel="sponsored noopener" title="Learn how to use Vue Test Utils to test Vue.js Components with Vue School">在 Vue School 学习如何测试 Vue.js 组件</a></div>

0 commit comments

Comments
 (0)