Skip to content

Commit c413dfe

Browse files
committed
vp2
1 parent 0a40611 commit c413dfe

File tree

12 files changed

+3287
-9160
lines changed

12 files changed

+3287
-9160
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platformse
22

3-
custom: https://afdian.net/a/mc_monday
3+
custom: https://afdian.com/a/jdnjk

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- name: Node.js
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: 16.x
18-
- run: yarn
19-
- run: yarn run docs:build
17+
node-version: 20.x
18+
- run: pnpm install
19+
- run: pnpm docs:build

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
.vuepress\dist
3+
.vuepress\.cache
4+
.vuepress\.temp
35
.vscode

docs/.vuepress/config.ts

Lines changed: 121 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,126 @@
1-
import { defineConfig } from 'vuepress/config'
2-
import {Sidebar4ZH} from './config/index'
1+
import { defaultTheme } from '@vuepress/theme-default'
2+
import { defineUserConfig } from 'vuepress'
3+
import { viteBundler } from '@vuepress/bundler-vite'
4+
//import { docsearchPlugin } from '@vuepress/plugin-docsearch'
5+
export default defineUserConfig({
6+
7+
lang: 'zh-CN',
8+
title: 'Monday 帮助文档',
9+
description: 'Monday官方服务器文档😋',
310

4-
export default defineConfig(ctx => ({
5-
title: 'Monday 帮助文档',
6-
description: 'Monday官方服务器文档😋',
7-
editLinks: true,
8-
themeConfig: {
9-
plugins: [
10-
[
11-
'@vuepress/last-updated',
12-
{
13-
transformer: (timestamp, lang) => {
14-
return new Date(timestamp).toLocaleDateString();
15-
}
16-
}
11+
theme: defaultTheme({
12+
repo: 'MondayServer/docs',
13+
docsRepo: 'MondayServer/docs',
14+
docsDir: 'docs',
15+
16+
navbar: [
17+
{
18+
text: '教程',
19+
children: [
20+
'/guide/README.md',
21+
'/guide/gfq.md',
22+
'/guide/help.md'
1723
],
18-
[
19-
'sitemap',
20-
{
21-
hostname: 'https://docs.monday-ovo.eu.org'
22-
}
23-
]
24+
},
25+
{
26+
text: '协议',
27+
children: [
28+
'/ly/README.md',
29+
'/ly/wjly.md',
30+
'/ly/ysly.md'
31+
],
32+
},
33+
],
34+
sidebar: {
35+
'/guide/': [
36+
{
37+
text: '教程',
38+
children: [
39+
'/guide/README.md',
40+
'/guide/gfq.md',
41+
'/guide/help.md'
42+
],
43+
},
44+
],
45+
'/ly/': [
46+
{
47+
text: '协议',
48+
children: [
49+
'/ly/README.md',
50+
'/ly/wjly.md',
51+
'/ly/ysly.md'
52+
],
53+
},
2454
],
25-
nav: [
26-
{ text: '首页', link: '/' },
27-
{
28-
text: '指南',
29-
link: '/guide/'
55+
},
56+
// page meta
57+
editLinkText: '在 GitHub 上编辑此页',
58+
lastUpdatedText: '上次更新',
59+
contributorsText: '贡献者',
60+
tip: '提示',
61+
warning: '注意',
62+
danger: '警告',
63+
notFound: [
64+
'这里什么都没有',
65+
'我们怎么到这来了?',
66+
'这是一个 404 页面',
67+
'看起来我们进入了错误的链接',
68+
],
69+
backToHome: '返回首页',
70+
openInNewWindow: '在新窗口打开',
71+
toggleColorMode: '切换颜色模式',
72+
toggleSidebar: '切换侧边栏',
73+
}),
74+
75+
/*plugins: [
76+
docsearchPlugin({
77+
appId: 'VXFWRUIH25',
78+
apiKey: '328e575a3431fb48ea09026db382e3ee',
79+
indexName: 'monday-ovo-eu',
80+
locales: {
81+
'/': {
82+
placeholder: '搜索文档',
83+
translations: {
84+
button: {
85+
buttonText: '搜索文档',
86+
buttonAriaLabel: '搜索文档',
3087
},
31-
{
32-
text: '规则',
33-
link: '/ly/'
88+
modal: {
89+
searchBox: {
90+
resetButtonTitle: '清除查询条件',
91+
resetButtonAriaLabel: '清除查询条件',
92+
cancelButtonText: '取消',
93+
cancelButtonAriaLabel: '取消',
94+
},
95+
startScreen: {
96+
recentSearchesTitle: '搜索历史',
97+
noRecentSearchesText: '没有搜索历史',
98+
saveRecentSearchButtonTitle: '保存至搜索历史',
99+
removeRecentSearchButtonTitle: '从搜索历史中移除',
100+
favoriteSearchesTitle: '收藏',
101+
removeFavoriteSearchButtonTitle: '从收藏中移除',
102+
},
103+
errorScreen: {
104+
titleText: '无法获取结果',
105+
helpText: '你可能需要检查你的网络连接',
106+
},
107+
footer: {
108+
selectText: '选择',
109+
navigateText: '切换',
110+
closeText: '关闭',
111+
searchByText: '搜索提供者',
112+
},
113+
noResultsScreen: {
114+
noResultsText: '无法找到相关结果',
115+
suggestedQueryText: '你可以尝试查询',
116+
reportMissingResultsText: '你认为该查询应该有结果?',
117+
reportMissingResultsLinkText: '点击反馈',
118+
},
34119
},
35-
],
36-
algolia: {
37-
apiKey: '328e575a3431fb48ea09026db382e3ee',
38-
indexName: 'monday-ovo-eu',
39-
appId: 'VXFWRUIH25',
40-
},
41-
repo: 'MondayServer/docs',
42-
repoLabel: 'Github',
43-
docsRepo: 'MondayServer/docs',
44-
lastUpdated: '上次更新',
45-
docsBranch: 'master',
46-
editLinks: true,
47-
editLinkText: '在 GitHub 上编辑此页',
48-
sidebar: Sidebar4ZH,
49-
label: '贡献者',
50-
}
51-
}))
120+
},
121+
},
122+
},
123+
}),
124+
],*/
125+
bundler: viteBundler(),
126+
})

docs/.vuepress/config/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/.vuepress/config/sidebar/shared.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

docs/.vuepress/config/sidebar/zh.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/.vuepress/public/sitemap.xml

Lines changed: 0 additions & 57 deletions
This file was deleted.

docs/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
home: true
33
heroImage: /hero.png
44
actionText: 阅读文档✔
5-
actionLink: /guide/
5+
actions:
6+
- text: 阅读文档✔
7+
link: /guide/
8+
type: primary
69
footer: Copyright © 2021-2025 Monday
710
---

package.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
{
22
"name": "mondaydocs",
3-
"version": "1.0.0",
4-
"main": "index.js",
3+
"description": "Monday官方服务器文档😋",
4+
"version": "0.0.1",
55
"license": "MIT",
6-
"devDependencies": {
7-
"vuepress": "^1.9.9",
8-
"vuepress-plugin-sitemap": "^2.3.1",
9-
"vuepress-plugin-sitemap1": "^1.31.0-beta.1"
10-
},
6+
"type": "module",
117
"scripts": {
8+
"docs:build": "vuepress build docs",
9+
"docs:clean-dev": "vuepress dev docs --clean-cache",
1210
"docs:dev": "vuepress dev docs",
13-
"docs:build": "vuepress build docs"
11+
"docs:update-package": "pnpm dlx vp-update"
12+
},
13+
"devDependencies": {
14+
"@vuepress/bundler-vite": "2.0.0-rc.20",
15+
"@vuepress/plugin-docsearch": "2.0.0-rc.112",
16+
"@vuepress/theme-default": "2.0.0-rc.88",
17+
"sass-embedded": "^1.86.0",
18+
"vue": "^3.5.13",
19+
"vuepress": "2.0.0-rc.20"
1420
}
1521
}

0 commit comments

Comments
 (0)