Skip to content

Commit d4b63ea

Browse files
authored
docs: update tiny-pro docs (#16)
1 parent 00276b2 commit d4b63ea

38 files changed

Lines changed: 4227 additions & 42 deletions

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
## 本地启动
66

77
```shell
8+
# 安装依赖
89
pnpm i
10+
11+
# 启动官网
912
pnpm dev
13+
14+
# 启动文档
15+
pnpm dev:docs
1016
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"private": true,
44
"scripts": {
55
"dev": "pnpm -F opentiny-design-home dev",
6+
"dev:docs": "pnpm -F opentiny-docs start",
67
"build:common": "pnpm -F opentiny-design-common build:open",
78
"build": "pnpm -F opentiny-design-home build"
89
}

packages/opentiny-docs/src/components/menu/configs/vue-pro.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,26 @@ const vueProMenuIcon = [
113113
icon: null,
114114
id: 'BackEnd',
115115
},
116+
{
117+
value: '后端设计架构',
118+
icon: null,
119+
id: 'Back-End Architecture',
120+
},
121+
{
122+
value: '后端接口规格说明书',
123+
icon: null,
124+
id: 'Back-End API Specification',
125+
},
126+
{
127+
value: 'Spring Boot 后端开发指南',
128+
icon: null,
129+
id: 'Back-End Guide Spring Boot',
130+
},
131+
{
132+
value: '响应式适配指南',
133+
icon: null,
134+
id: 'Responsive Adaptation Guide',
135+
},
116136
];
117137
const vueProMenuIconUs = [
118138
{

packages/opentiny-docs/src/router/vue-pro/index.ts

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ const routerList = [
102102
},
103103
},
104104
{
105-
path: 'internationa',
106-
name: 'Internationa',
107-
id: 'Internationa',
105+
path: 'international',
106+
name: 'International',
107+
id: 'International',
108108
label: '国际化',
109-
component: () => import('@src/views/vue-pro/internation.md'),
109+
component: () => import('@src/views/vue-pro/international.md'),
110110
meta: {
111111
requiresAuth: true,
112112
order: 6,
@@ -222,6 +222,46 @@ const routerList = [
222222
requiresAuth: true,
223223
},
224224
},
225+
{
226+
path: 'back-end-architecture',
227+
name: 'Back-End Architecture',
228+
id: 'Back-End Architecture',
229+
label: '后端设计架构',
230+
component: () => import('@src/views/vue-pro/back-end-design.md'),
231+
meta: {
232+
requiresAuth: true,
233+
},
234+
},
235+
{
236+
path: 'back-end-api-specification',
237+
name: 'Back-End API Specification',
238+
id: 'Back-End API Specification',
239+
label: '后端接口规格说明书',
240+
component: () => import('@src/views/vue-pro/back-end-api-specification.md'),
241+
meta: {
242+
requiresAuth: true,
243+
},
244+
},
245+
{
246+
path: 'back-end-guide-spring-boot',
247+
name: 'Back-End Guide Spring Boot',
248+
id: 'Back-End Guide Spring Boot',
249+
label: 'Spring Boot 后端开发指南',
250+
component: () => import('@src/views/vue-pro/back-end-guide-spring-boot.md'),
251+
meta: {
252+
requiresAuth: true,
253+
},
254+
},
255+
{
256+
path: 'responsive-adaptation-guide',
257+
name: 'Responsive Adaptation Guide',
258+
id: 'Responsive Adaptation Guide',
259+
label: '响应式适配指南',
260+
component: () => import('@src/views/vue-pro/responsive-adaptation-guide.md'),
261+
meta: {
262+
requiresAuth: true,
263+
},
264+
},
225265
],
226266
},
227267
];
@@ -267,7 +307,7 @@ const routerListUs = [
267307
name: '',
268308
id: '',
269309
label: 'Internationalization',
270-
component: () => import('@src/views/vue-pro/internation-us.md'),
310+
component: () => import('@src/views/vue-pro/international-us.md'),
271311
},
272312
{
273313
path: '',

0 commit comments

Comments
 (0)