Skip to content

Commit f8ac043

Browse files
committed
feat(projects): v1.0 docs prepare
1 parent 4130b8b commit f8ac043

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1877
-5071
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ root = true
44

55
[*]
66
charset = utf-8
7-
indent_style = tab
7+
indent_style = space
88
indent_size = 2
99
end_of_line = lf
1010
trim_trailing_whitespace = true

.eslintrc.cjs

-3
This file was deleted.

.gitattributes

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"*.vue" eol=lf
2+
"*.js" eol=lf
3+
"*.ts" eol=lf
4+
"*.jsx" eol=lf
5+
"*.tsx" eol=lf
6+
"*.cjs" eol=lf
7+
"*.cts" eol=lf
8+
"*.mjs" eol=lf
9+
"*.mts" eol=lf
10+
"*.json" eol=lf
11+
"*.html" eol=lf
12+
"*.css" eol=lf
13+
"*.less" eol=lf
14+
"*.scss" eol=lf
15+
"*.sass" eol=lf
16+
"*.styl" eol=lf

.gitignore

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@ coverage
2121
.vscode/*
2222
!.vscode/extensions.json
2323
!.vscode/settings.json
24+
!.vscode/launch.json
2425
.idea
2526
*.suo
2627
*.ntvs*
2728
*.njsproj
2829
*.sln
2930
*.sw?
30-
.vitepress/cache
31+
32+
package-lock.json
33+
yarn.lock
34+
35+
.VSCodeCounter
36+
**/.vitepress/cache

.npmrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
registry=https://registry.npmmirror.com/
22
shamefully-hoist=true
3-
strict-peer-dependencies=false
4-
auto-install-peers=true
3+
ignore-workspace-root-check=true

.vitepress/config.mts

-127
This file was deleted.

.vitepress/config.ts

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
import process from 'node:process';
2+
import path from 'node:path';
3+
import { defineConfig } from 'vitepress';
4+
import { qqSvg } from './icon.js';
5+
6+
export default defineConfig({
7+
locales: {
8+
root: {
9+
label: 'English',
10+
lang: 'en',
11+
dir: 'src/en',
12+
title: 'Soybean Admin',
13+
description: 'a fresh and elegant admin template'
14+
},
15+
zh: {
16+
label: '简体中文',
17+
lang: 'zh',
18+
dir: 'src/zh',
19+
title: 'Soybean Admin',
20+
description: '一个清新优雅的后台管理模板',
21+
themeConfig: {
22+
footer: {
23+
message: '根据 MIT 许可证发布',
24+
copyright: 'Copyright © 2021 Soybean'
25+
},
26+
nav: [
27+
{ text: '指引', link: '/zh/guide/introduction', activeMatch: '/zh/guide/' },
28+
{ text: '常见问题', link: '/zh/faq/', activeMatch: '/zh/faq/' },
29+
{ text: '规范', link: '/zh/standard/', activeMatch: '/zh/standard/' },
30+
{ text: '教程', link: '/zh/tutorial/', activeMatch: '/zh/tutorial/' },
31+
{
32+
text: '捐赠',
33+
link: '/zh/other/donate'
34+
},
35+
{
36+
text: '链接',
37+
items: [
38+
{
39+
text: 'Preview',
40+
link: 'https://soybeanjs.cn'
41+
},
42+
{
43+
text: 'Repository',
44+
link: 'https://github.com/honghuangdc/soybean-admin'
45+
}
46+
]
47+
}
48+
],
49+
sidebar: {
50+
'/zh/guide/': [
51+
{
52+
text: '介绍',
53+
link: '/guide/introduction'
54+
}
55+
],
56+
'/zh/faq/': [],
57+
'/zh/standard/': []
58+
}
59+
}
60+
}
61+
},
62+
head: [
63+
['meta', { name: 'author', content: 'Soybean' }],
64+
[
65+
'meta',
66+
{
67+
name: 'keywords',
68+
content: 'soybean, soybean-admin, soybean-admin docs'
69+
}
70+
],
71+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }],
72+
[
73+
'meta',
74+
{
75+
name: 'viewport',
76+
content: 'width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'
77+
}
78+
],
79+
['link', { rel: 'icon', href: '/favicon.ico' }]
80+
],
81+
assetsDir: path.join(process.cwd(), 'public'),
82+
srcDir: path.join(process.cwd(), 'src'),
83+
themeConfig: {
84+
logo: '/logo.svg',
85+
socialLinks: [
86+
{ icon: 'github', link: 'https://github.com/soybeanjs' },
87+
{ icon: 'discord', link: 'https://discord.gg/n44HfksX' },
88+
{
89+
icon: {
90+
svg: qqSvg
91+
},
92+
link: 'https://qm.qq.com/cgi-bin/qm/qr?k=XTjkqjV1KynFoEAdrqxMd6i71-TtCVGV&jump_from=webapi'
93+
}
94+
],
95+
algolia: {
96+
appId: '98WN1RY04S',
97+
apiKey: '13e9f5767b774422a5880723d9c23265',
98+
indexName: 'soybean'
99+
},
100+
footer: {
101+
message: 'Publish under the MIT license',
102+
copyright: 'Copyright © 2021 Soybean'
103+
},
104+
nav: [
105+
{ text: 'Guide', link: '/guide/introduction', activeMatch: '/guide/' },
106+
{ text: 'FAQ', link: '/faq/', activeMatch: '/faq/' },
107+
{ text: 'Standard', link: '/standard/', activeMatch: '/standard/' },
108+
{ text: 'Tutorial', link: '/tutorial/', activeMatch: '/tutorial/' },
109+
{
110+
text: 'Donate',
111+
link: '/other/donate'
112+
},
113+
{
114+
text: 'Links',
115+
items: [
116+
{
117+
text: 'Preview',
118+
link: 'https://soybeanjs.cn'
119+
},
120+
{
121+
text: 'Repository',
122+
link: 'https://github.com/honghuangdc/soybean-admin'
123+
}
124+
]
125+
}
126+
],
127+
sidebar: {
128+
'/guide/': [
129+
{
130+
text: 'Introduction',
131+
link: '/guide/introduction'
132+
}
133+
],
134+
'/faq/': [],
135+
'/standard/': []
136+
}
137+
}
138+
});
File renamed without changes.

0 commit comments

Comments
 (0)