Skip to content

Commit 5cf12fc

Browse files
committed
feat(doc-site): update vue-xrender components docs
1 parent d98c0b0 commit 5cf12fc

File tree

14 files changed

+476
-13
lines changed

14 files changed

+476
-13
lines changed

packages/doc-site/.vuepress/config/navbar/zh.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export const zh: NavbarConfig = [
1111
children: [
1212
{
1313
text: 'vue-xrender',
14-
children: ['/zh/libs/vue-xrender/README.md']
14+
link: '/zh/libs/vue-xrender/README.md'
1515
},
1616
{
1717
text: 'class-mock',
18-
children: ['/zh/libs/class-mock/README.md']
18+
link: '/zh/libs/class-mock/README.md'
1919
}
2020
]
2121
},

packages/doc-site/.vuepress/config/sidebar/zh.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@ export const zh: SidebarConfig = {
44
'/zh/guide/': [
55
{
66
text: '指南',
7-
children: ['/zh/guide/README.md', '/zh/guide/getting-started.md']
7+
children: ['/zh/guide/README.md', '/zh/guide/questions.md']
88
}
99
],
1010
'/zh/libs/vue-xrender/': [
1111
{
1212
text: 'vue-xrender',
13-
children: ['/zh/libs/vue-xrender/README.md']
13+
children: [
14+
'/zh/libs/vue-xrender/README.md',
15+
'/zh/libs/vue-xrender/components.md',
16+
'/zh/libs/vue-xrender/hooks.md'
17+
]
1418
}
1519
],
1620
'/zh/libs/class-mock/': [
1721
{
1822
text: 'class-mock',
19-
children: ['/zh/libs/class-mock/README.md']
23+
children: [
24+
'/zh/libs/class-mock/README.md',
25+
'/zh/libs/class-mock/property-config-decorators.md',
26+
'/zh/libs/class-mock/property-faker-decorators.md',
27+
'/zh/libs/class-mock/class-decorators.md',
28+
'/zh/libs/class-mock/utils.md'
29+
]
2030
}
2131
]
2232
}

packages/doc-site/zh/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ home: true
33
title: 首页
44
heroImage: /images/logo.png
55
actions:
6-
- text: 起步
7-
link: /zh/guide/getting-started.html
8-
type: primary
9-
- text: 介绍
6+
- text: 快速上手
107
link: /zh/guide/
8+
type: primary
9+
- text: Github
10+
link: https://github.com/2214962083/vue-superman
1111
type: secondary
1212
features:
1313
- title: vue-xrender
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
# 指南
1+
# 介绍
2+
3+
Vue Superman 不是一个具体的 npm 包,它是我把工作中可复用部分抽离出来的库集合。
4+
5+
虽然它叫 Vue Superman,但提供的库并不局限于 Vue。希望里面的库或小工具能够解决你一些开发难点,让你开发得更舒服。
6+
7+
## 库列表
8+
9+
- [vue-xrender](/zh/libs/vue-xrender/)
10+
11+
在 template 中渲染 jsx 或在 jsx 中渲染 template 字符串,自由渲染由你做主。
12+
13+
- [class-mock](/zh/libs/class-mock/)
14+
15+
装饰器生成 mock 数据,基于 faker.js 库,妈妈再也不用担心对接后端时出现一堆 ui bug 了

packages/doc-site/zh/guide/getting-started.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 常见问题
2+
3+
## Vue Superman 干什么的?
4+
5+
Vue Superman 不是一个具体的 npm 包,它是我把工作中可复用部分抽离出来的库集合。
6+
7+
虽然它叫 Vue Superman,但提供的库并不局限于 Vue。希望里面的库或小工具能够解决你一些开发难点,让你开发得更舒服。
8+
9+
你可以查看[目前已有的库](/zh/guide/#库列表)
10+
11+
## 为什么不拆分到多个 Git 仓库里?
12+
13+
主要是因为工作繁忙,太多仓库会影响我的维护热情,所以集合到一起,方便统一维护,后续如果体量上来可以考虑拆分成 multiple repos。
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Class Mock
1+
# 介绍
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 类装饰器
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 属性配置装饰器
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 属性 faker.js 装饰器

0 commit comments

Comments
 (0)