Skip to content

Commit b74fff9

Browse files
committed
fix(omi-templates): add docs
1 parent d032875 commit b74fff9

File tree

5 files changed

+723
-1
lines changed

5 files changed

+723
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ dist
2020
*.sln
2121
*.sw?
2222
build
23-
docs
2423
coverage
2524
package.lock.json
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
export const docsConfig = {
2+
zh: {
3+
sidebar: [
4+
{
5+
text: '介绍',
6+
children: [
7+
{
8+
text: '开始',
9+
path: '#/product-docs/zh/getting-started',
10+
value: 'getting-started',
11+
},
12+
{
13+
text: '响应式',
14+
path: '#/product-docs/zh/reactivity',
15+
value: 'reactivity',
16+
},
17+
],
18+
},
19+
{
20+
text: '核心概念',
21+
children: [
22+
{
23+
text: '属性',
24+
path: '#/product-docs/zh/props',
25+
value: 'props',
26+
},
27+
],
28+
},
29+
],
30+
},
31+
en: {
32+
sidebar: [
33+
{
34+
text: 'Guide',
35+
items: [
36+
{ text: 'Introduction', link: '/introduction' },
37+
{ text: 'Reactivity', link: '/reactivity' },
38+
{ text: 'OOP & DOP', link: '/oop-dop' },
39+
],
40+
},
41+
{
42+
text: 'Core API',
43+
items: [
44+
{ text: 'Props', link: '/props' },
45+
{ text: 'CSS', link: '/css' },
46+
{ text: 'Event', link: '/event' },
47+
{ text: 'Ref', link: '/ref' },
48+
{ text: 'Slot', link: '/slot' },
49+
{ text: 'Provide-Inject', link: '/provide-inject' },
50+
{ text: 'Lifecycle', link: '/lifecycle' },
51+
{ text: 'Directive', link: 'directive' },
52+
{ text: 'Mixin', link: 'mixin' },
53+
{ text: 'Update', link: '/update' },
54+
{ text: 'Cross Frameworks', link: '/cross-frameworks' },
55+
],
56+
},
57+
],
58+
},
59+
}

0 commit comments

Comments
 (0)