Skip to content

Commit ece1de7

Browse files
committed
update not found page
1 parent 7fd914a commit ece1de7

File tree

9 files changed

+623
-463
lines changed

9 files changed

+623
-463
lines changed

docs/.vuepress/config.ts

Lines changed: 121 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,126 @@
1-
import { viteBundler } from "@vuepress/bundler-vite"
1+
import { viteBundler } from "@vuepress/bundler-vite";
22
import {
3-
nesercodeTheme,
4-
extendDefaultNavbarConfig,
5-
extendDefaultSidebarConfig,
6-
} from "./theme"
7-
import { defineUserConfig } from "vuepress"
3+
nesercodeTheme,
4+
extendDefaultNavbarConfig,
5+
extendDefaultSidebarConfig,
6+
} from "./theme";
7+
import { defineUserConfig } from "vuepress";
88

99
export default defineUserConfig({
10-
bundler: viteBundler(),
11-
theme: nesercodeTheme({
12-
domain: "http://localhost:8080",
13-
giscus: {
14-
repo: "NeserCode/NeserCode.github.io",
15-
repoId: "R_kgDOHf8WIA",
16-
category: "General",
17-
categoryId: "DIC_kwDOHf8WIM4CRa-j",
18-
mapping: "title",
19-
strict: "1",
20-
theme: "light",
21-
darkTheme: "dark_dimmed",
22-
reactionsEnabled: "1",
23-
inputPosition: "top",
24-
language: "zh-CN",
25-
loading: "lazy",
26-
},
27-
footer: {
28-
year: "2022 - 2024",
29-
themeInfoDisplay: true,
30-
copyRight:
31-
"<a target='_blank' href='https://github.com/Nesercode'>NeserCode</a>",
32-
footerLinks: [
33-
{
34-
title: "GitHub",
35-
link: "https://github.com/nesercode",
36-
},
37-
{
38-
title: "Gitee",
39-
link: "https://gitee.com/nesercode",
40-
},
41-
{
42-
title: "Bilibili",
43-
link: "https://space.bilibili.com/nesercode",
44-
},
45-
],
46-
},
47-
navbar: extendDefaultNavbarConfig([
48-
{ text: "Github", link: "https://github.com/NeserCode" },
49-
]),
50-
sidebar: extendDefaultSidebarConfig([
51-
{
52-
text: "Desktop Application",
53-
collapsible: true,
54-
children: [
55-
{
56-
text: "RoCoX Codex(zh-CN)",
57-
link: "/blog/other/RoCoX-Codex.md",
58-
activeMatch: "^/blog/other/",
59-
},
60-
{
61-
text: "RoCoX Codex(en-US)",
62-
link: "/blog/other/RoCoX-Codex.en-US.md",
63-
activeMatch: "^/blog/other/",
64-
},
65-
{
66-
text: "KeyBoard Monitor(zh-CN)",
67-
link: "/blog/other/KeyBoard-Monitor.md",
68-
activeMatch: "^/blog/other/",
69-
},
70-
{
71-
text: "KeyBoard Monitor(zh-CN)",
72-
link: "/blog/other/KeyBoard-Monitor.en-US.md",
73-
activeMatch: "^/blog/other/",
74-
},
75-
],
76-
},
77-
]),
10+
bundler: viteBundler(),
11+
theme: nesercodeTheme({
12+
domain: "http://localhost:8080",
13+
giscus: {
14+
repo: "NeserCode/NeserCode.github.io",
15+
repoId: "R_kgDOHf8WIA",
16+
category: "General",
17+
categoryId: "DIC_kwDOHf8WIM4CRa-j",
18+
mapping: "title",
19+
strict: "1",
20+
theme: "light",
21+
darkTheme: "dark_dimmed",
22+
reactionsEnabled: "1",
23+
inputPosition: "top",
24+
language: "zh-CN",
25+
loading: "lazy",
26+
},
27+
footer: {
28+
year: "2022 - 2024",
29+
themeInfoDisplay: true,
30+
copyRight:
31+
"<a target='_blank' href='https://github.com/Nesercode'>NeserCode</a>",
32+
footerLinks: [
33+
{
34+
title: "GitHub",
35+
link: "https://github.com/nesercode",
36+
},
37+
{
38+
title: "Gitee",
39+
link: "https://gitee.com/nesercode",
40+
},
41+
{
42+
title: "Bilibili",
43+
link: "https://space.bilibili.com/nesercode",
44+
},
45+
],
46+
},
47+
navbar: extendDefaultNavbarConfig([
48+
{ text: "Github", link: "https://github.com/NeserCode" },
49+
]),
50+
sidebar: extendDefaultSidebarConfig([
51+
{
52+
text: "Desktop Application",
53+
collapsible: true,
54+
children: [
55+
{
56+
text: "RoCoX Codex(zh-CN)",
57+
link: "/blog/other/RoCoX-Codex.md",
58+
activeMatch: "^/blog/other/",
59+
},
60+
{
61+
text: "RoCoX Codex(en-US)",
62+
link: "/blog/other/RoCoX-Codex.en-US.md",
63+
activeMatch: "^/blog/other/",
64+
},
65+
{
66+
text: "KeyBoard Monitor(zh-CN)",
67+
link: "/blog/other/KeyBoard-Monitor.md",
68+
activeMatch: "^/blog/other/",
69+
},
70+
{
71+
text: "KeyBoard Monitor(zh-CN)",
72+
link: "/blog/other/KeyBoard-Monitor.en-US.md",
73+
activeMatch: "^/blog/other/",
74+
},
75+
],
76+
},
77+
]),
7878

79-
github: {
80-
username: "nesercode",
81-
// it got expired
82-
accessServer: "https://github-info-server.onrender.com",
83-
accessToken: "nesercode",
84-
},
85-
}),
79+
github: {
80+
username: "nesercode",
81+
// it got expired
82+
accessServer: "https://github-info-server.onrender.com",
83+
accessToken: "nesercode",
84+
},
8685

87-
title: "NeserCode",
88-
description: "Make learning useful.",
89-
lang: "zh-CN",
90-
head: [
91-
[
92-
// Icon
93-
"link",
94-
{
95-
rel: "icon",
96-
href: "https://q1.qlogo.cn/g?b=qq&nk=510648363&s=640",
97-
},
98-
],
99-
[
100-
// Font preload?
101-
"link",
102-
{
103-
rel: "preload",
104-
href: "https://static.imalan.cn/file/font/noto-serif-sc/fonts.css",
105-
as: "style",
106-
},
107-
],
108-
[
109-
// Font
110-
"link",
111-
{
112-
rel: "stylesheet",
113-
href: "https://static.imalan.cn/file/font/noto-serif-sc/fonts.css",
114-
},
115-
],
116-
],
117-
})
86+
notFound: [
87+
"嗯哼,这片区域,以后再来探索吧!",
88+
"哎呀,这里可没有什么宝藏哦。",
89+
"喂喂,你再怎么刷新就是没有东西的啊!",
90+
"哇哦,规则就是用来打破的!",
91+
"嘿嘿,虚晃你一手。",
92+
"嗯?这里是怎么回事?",
93+
],
94+
}),
95+
96+
title: "NeserCode",
97+
description: "Make learning useful.",
98+
lang: "zh-CN",
99+
head: [
100+
[
101+
// Icon
102+
"link",
103+
{
104+
rel: "icon",
105+
href: "https://q1.qlogo.cn/g?b=qq&nk=510648363&s=640",
106+
},
107+
],
108+
[
109+
// Font preload?
110+
"link",
111+
{
112+
rel: "preload",
113+
href: "https://static.imalan.cn/file/font/noto-serif-sc/fonts.css",
114+
as: "style",
115+
},
116+
],
117+
[
118+
// Font
119+
"link",
120+
{
121+
rel: "stylesheet",
122+
href: "https://static.imalan.cn/file/font/noto-serif-sc/fonts.css",
123+
},
124+
],
125+
],
126+
});

0 commit comments

Comments
 (0)