Skip to content

Commit 8dc368a

Browse files
authored
Merge pull request #100 from Mister-Hope/main
chore: bump deps
2 parents 6830f8e + 93d172e commit 8dc368a

File tree

10 files changed

+4879
-5600
lines changed

10 files changed

+4879
-5600
lines changed

.github/workflows/deploy-docs.yml

+8-14
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,34 @@
1-
21
name: Deploy Docs
32

43
on:
54
push:
65
branches:
7-
# make sure this is the branch you are using
86
- main
97

108
jobs:
119
deploy-gh-pages:
1210
runs-on: ubuntu-latest
1311
steps:
1412
- name: Checkout
15-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1614
with:
1715
fetch-depth: 0
18-
# if your docs needs submodules, uncomment the following line
19-
# submodules: true
20-
2116

17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v4
2219

2320
- name: Setup Node.js
24-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2522
with:
26-
node-version: 18
27-
cache: npm
23+
node-version: 22
24+
cache: pnpm
2825

2926
- name: Install Deps
30-
run: npm install
27+
run: pnpm install --frozen-lockfile
3128

3229
- name: Build Docs
33-
env:
34-
NODE_OPTIONS: --max_old_space_size=8192
3530
run: |-
36-
npm run docs:build
31+
pnpm docs:build
3732
> dist/.nojekyll
3833
3934
- name: Deploy Docs
@@ -42,4 +37,3 @@ jobs:
4237
# This is the branch where the docs are deployed to
4338
branch: gh-pages
4439
folder: dist
45-

docs/.vuepress/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineUserConfig } from "vuepress";
22
import { viteBundler } from "@vuepress/bundler-vite";
3-
import theme from "./theme.js";
43
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
4+
import theme from "./theme.js";
55

66
export default defineUserConfig({
77
base: "/",

docs/.vuepress/shim.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module "*.vue" {
22
import type { DefineComponent } from "vue";
3-
const component: DefineComponent<{}, {}, any>;
3+
const component: DefineComponent;
44
export default component;
55
}

docs/.vuepress/styles/config.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// you can change config here
21
$code-lang: "css" "html" "js" "ts" "vue";
2+
$theme-color: #096dd9;

docs/.vuepress/styles/index.scss

-1
This file was deleted.

docs/.vuepress/styles/palette.scss

-2
This file was deleted.

docs/.vuepress/theme.ts

+105-140
Original file line numberDiff line numberDiff line change
@@ -2,176 +2,141 @@ import { hopeTheme } from "vuepress-theme-hope";
22
import { enNavbar, zhNavbar } from "./navbar/index.js";
33
import { enSidebar, zhSidebar } from "./sidebar/index.js";
44

5-
export default hopeTheme(
6-
{
7-
hostname: "https://uigf.org",
5+
export default hopeTheme({
6+
hostname: "https://uigf.org",
87

9-
author: {
10-
name: "UIGF-org",
11-
url: "https://github.com/UIGF-org",
12-
},
8+
author: {
9+
name: "UIGF-org",
10+
url: "https://github.com/UIGF-org",
11+
},
1312

14-
iconAssets: [
15-
"https://at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css",
16-
],
13+
iconAssets: ["https://at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css"],
1714

18-
logo: "/uigf-logo128.png",
15+
logo: "/uigf-logo128.png",
1916

20-
repo: "UIGF-org",
17+
repo: "UIGF-org",
2118

22-
repoDisplay: true,
19+
repoDisplay: true,
2320

24-
docsDir: "docs",
21+
docsDir: "docs",
2522

26-
pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
23+
pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
2724

28-
locales: {
29-
"/en/": {
30-
// navbar
31-
navbar: enNavbar,
25+
locales: {
26+
"/en/": {
27+
// navbar
28+
navbar: enNavbar,
3229

33-
// sidebar
34-
sidebar: enSidebar,
30+
// sidebar
31+
sidebar: enSidebar,
3532

36-
footer: "Uniformed Interchangeable GenshinData Format",
33+
footer: "Uniformed Interchangeable GenshinData Format",
3734

38-
displayFooter: true,
35+
displayFooter: true,
3936

40-
metaLocales: {
41-
editLink: "Edit this page on GitHub",
42-
},
37+
metaLocales: {
38+
editLink: "Edit this page on GitHub",
4339
},
40+
},
4441

45-
/**
46-
* Chinese locale config
47-
*/
48-
"/zh/": {
49-
// navbar
50-
navbar: zhNavbar,
42+
/**
43+
* Chinese locale config
44+
*/
45+
"/zh/": {
46+
// navbar
47+
navbar: zhNavbar,
5148

52-
// sidebar
53-
sidebar: zhSidebar,
49+
// sidebar
50+
sidebar: zhSidebar,
5451

55-
footer: "统一可交换原神数据标准",
52+
footer: "统一可交换原神数据标准",
5653

57-
displayFooter: true,
54+
displayFooter: true,
5855

59-
// page meta
60-
metaLocales: {
61-
editLink: "在 GitHub 上编辑此页",
62-
},
56+
// page meta
57+
metaLocales: {
58+
editLink: "在 GitHub 上编辑此页",
6359
},
6460
},
61+
},
6562

66-
plugins: {
67-
// Disable features you don't want here
68-
mdEnhance: {
69-
align: true,
70-
attrs: true,
71-
codetabs: true,
72-
hint: true,
73-
demo: true,
74-
gfm: false,
75-
imgSize: true,
76-
include: true,
77-
imgLazyload: true,
78-
mark: true,
79-
playground: {
80-
presets: ["ts", "vue"],
81-
},
82-
stylize: [
83-
{
84-
matcher: "Recommanded",
85-
replacer: ({ tag }) => {
86-
if (tag === "em")
87-
return {
88-
tag: "Badge",
89-
attrs: { type: "tip" },
90-
content: "Recommanded",
91-
};
92-
},
93-
},
94-
],
95-
sub: true,
96-
sup: true,
97-
tabs: true,
98-
vPre: true,
99-
},
100-
components: {
101-
components: ["SiteInfo", "Badge", "FontIcon"],
102-
},
63+
markdown: {
64+
include: true,
65+
imgLazyload: true,
66+
tabs: true,
67+
},
10368

104-
pwa: false,
105-
106-
docsearch: {
107-
appId: "8RHTTFZDBN",
108-
apiKey: "3ff93fd55e3600cff166ca199d6e05cd",
109-
indexName: "uigf",
110-
locales: {
111-
"/zh/": {
112-
placeholder: "搜索文档",
113-
translations: {
114-
button: {
115-
buttonText: "搜索文档",
116-
buttonAriaLabel: "搜索文档",
69+
plugins: {
70+
components: {
71+
components: ["SiteInfo", "Badge", "FontIcon"],
72+
},
73+
74+
docsearch: {
75+
appId: "8RHTTFZDBN",
76+
apiKey: "3ff93fd55e3600cff166ca199d6e05cd",
77+
indexName: "uigf",
78+
locales: {
79+
"/zh/": {
80+
placeholder: "搜索文档",
81+
translations: {
82+
button: {
83+
buttonText: "搜索文档",
84+
buttonAriaLabel: "搜索文档",
85+
},
86+
modal: {
87+
searchBox: {
88+
resetButtonTitle: "清除查询条件",
89+
resetButtonAriaLabel: "清除查询条件",
90+
cancelButtonText: "取消",
91+
cancelButtonAriaLabel: "取消",
92+
},
93+
startScreen: {
94+
recentSearchesTitle: "搜索历史",
95+
noRecentSearchesText: "没有搜索历史",
96+
saveRecentSearchButtonTitle: "保存至搜索历史",
97+
removeRecentSearchButtonTitle: "从搜索历史中移除",
98+
favoriteSearchesTitle: "收藏",
99+
removeFavoriteSearchButtonTitle: "从收藏中移除",
100+
},
101+
errorScreen: {
102+
titleText: "无法获取结果",
103+
helpText: "你可能需要检查你的网络连接",
104+
},
105+
footer: {
106+
selectText: "选择",
107+
navigateText: "切换",
108+
closeText: "关闭",
109+
searchByText: "搜索提供者",
117110
},
118-
modal: {
119-
searchBox: {
120-
resetButtonTitle: "清除查询条件",
121-
resetButtonAriaLabel: "清除查询条件",
122-
cancelButtonText: "取消",
123-
cancelButtonAriaLabel: "取消",
124-
},
125-
startScreen: {
126-
recentSearchesTitle: "搜索历史",
127-
noRecentSearchesText: "没有搜索历史",
128-
saveRecentSearchButtonTitle: "保存至搜索历史",
129-
removeRecentSearchButtonTitle: "从搜索历史中移除",
130-
favoriteSearchesTitle: "收藏",
131-
removeFavoriteSearchButtonTitle: "从收藏中移除",
132-
},
133-
errorScreen: {
134-
titleText: "无法获取结果",
135-
helpText: "你可能需要检查你的网络连接",
136-
},
137-
footer: {
138-
selectText: "选择",
139-
navigateText: "切换",
140-
closeText: "关闭",
141-
searchByText: "搜索提供者",
142-
},
143-
noResultsScreen: {
144-
noResultsText: "无法找到相关结果",
145-
suggestedQueryText: "你可以尝试查询",
146-
reportMissingResultsText: "你认为该查询应该有结果?",
147-
reportMissingResultsLinkText: "点击反馈",
148-
},
111+
noResultsScreen: {
112+
noResultsText: "无法找到相关结果",
113+
suggestedQueryText: "你可以尝试查询",
114+
reportMissingResultsText: "你认为该查询应该有结果?",
115+
reportMissingResultsLinkText: "点击反馈",
149116
},
150117
},
151118
},
152-
"/en/": {
153-
placeholder: "Search documents",
154-
translations: {
155-
button: {
156-
buttonText: "Search documents",
157-
},
119+
},
120+
"/en/": {
121+
placeholder: "Search documents",
122+
translations: {
123+
button: {
124+
buttonText: "Search documents",
158125
},
159126
},
160127
},
161128
},
162-
redirect: {
163-
defaultLocale: "/en/",
164-
defaultBehavior: "defaultLocale",
165-
autoLocale: true,
166-
localeConfig: {
167-
"/en/": ["en-US", "en-UK", "en"],
168-
"/zh/": ["zh-CN", "zh-TW", "zh"],
169-
},
170-
switchLocale: "modal",
129+
},
130+
131+
redirect: {
132+
defaultLocale: "/en/",
133+
defaultBehavior: "defaultLocale",
134+
autoLocale: true,
135+
localeConfig: {
136+
"/en/": ["en-US", "en-UK", "en"],
137+
"/zh/": ["zh-CN", "zh-TW", "zh"],
171138
},
139+
switchLocale: "modal",
172140
},
173141
},
174-
{
175-
custom: true,
176-
},
177-
);
142+
});

0 commit comments

Comments
 (0)