-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
144 lines (139 loc) · 3.53 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
144 lines (139 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
import type {Config} from '@docusaurus/types'
import {createRequire} from 'node:module'
import {
createFooterSocialLink,
createSocialNavbarItem,
} from './src/socialLinks'
const require = createRequire(import.meta.url)
type ConfigWithMarkdownHooks = Config & {
markdown?: Config['markdown'] & {
hooks?: {
onBrokenMarkdownLinks?: Config['onBrokenMarkdownLinks']
}
}
}
const config: ConfigWithMarkdownHooks = {
title: 'jaluik的个人博客',
tagline: 'jaluik的个人博客',
url: 'https://jaluik.top',
baseUrl: '/',
i18n: {
defaultLocale: 'zh-CN',
locales: ['zh-CN'],
},
onBrokenLinks: 'throw',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'warn',
},
},
favicon: 'img/favicon.ico',
organizationName: 'jaluik',
projectName: 'blog',
themeConfig: {
comments: {
provider: 'giscus',
repo: 'jaluik/blog',
repoId: 'MDEwOlJlcG9zaXRvcnkzNDU2MjkxNjU=',
category: 'General',
categoryId: 'MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMyNzA2OTAz',
mapping: 'pathname',
strict: '0',
reactionsEnabled: '1',
emitMetadata: '0',
inputPosition: 'top',
lightTheme: 'light',
darkTheme: 'dark',
lang: 'zh-CN',
loading: 'lazy',
},
navbar: {
title: 'Jaluik',
logo: {
alt: 'Jaluik',
src: 'img/logo.png',
},
items: [
{
to: 'docs/ai/openSourceAiResources',
activeBasePath: 'docs/ai',
label: 'AI',
position: 'left',
},
{
to: 'docs/frontEnd/sourceCode/redux',
activeBasePath: 'docs/frontEnd',
label: '前端漫谈',
position: 'left',
},
{
to: 'docs/backEnd/python/pythonProxyPool',
activeBasePath: 'docs/backEnd',
label: '后端浅析',
position: 'left',
},
{
to: 'docs/operations/gitActionsDeploy',
activeBasePath: 'docs/operations',
label: '运维之路',
position: 'left',
},
createSocialNavbarItem({
href: 'https://github.com/jaluik',
icon: 'github',
label: 'GitHub Jaluik',
}),
createSocialNavbarItem({
href: 'https://x.com/jaluik_',
icon: 'x',
label: 'X @jaluik_',
}),
],
},
footer: {
style: 'dark',
copyright: `<div class="footer-social-row"><span>Copyright © ${new Date().getFullYear()}</span><span class="footer-heart" aria-hidden="true">❤️</span>${createFooterSocialLink(
{
href: 'https://github.com/jaluik',
icon: 'github',
label: 'Jaluik',
},
)}<span class="footer-social-separator" aria-hidden="true">·</span>${createFooterSocialLink(
{
href: 'https://x.com/jaluik_',
icon: 'x',
label: '@jaluik_',
},
)}</div>`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.ts'),
editUrl: 'https://github.com/jaluik/blog/tree/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
},
],
],
plugins: [
'docusaurus-plugin-sass',
[
require.resolve('@easyops-cn/docusaurus-search-local'),
{
hashed: true,
indexBlog: false,
language: ['en', 'zh'],
},
],
],
}
export default config