-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.ts
188 lines (184 loc) · 4.78 KB
/
docusaurus.config.ts
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
import { themes } from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type {Options as DocsOptions} from '@docusaurus/plugin-content-docs';
import type {Options as BlogOptions} from '@docusaurus/plugin-content-blog';
export default async function createConfigAsync() {
return {
i18n: {
defaultLocale: 'ko',
locales: ['ko'],
},
title: 'Kooku\'s log',
tagline: '문제에 대해 고민하고, 공부한 내용들을 기록하는 공간입니다.',
url: 'https://kooku0.github.io',
baseUrl: '/',
onBrokenLinks: 'ignore', // default is throw
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'kooku0', // Usually your GitHub org/user name.
projectName: 'kooku0.github.io', // Usually your repo name.
deploymentBranch: 'gh-pages',
trailingSlash: true,
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
editUrl: 'https://github.com/kooku0/kooku0.github.io/edit/main/',
} satisfies DocsOptions,
blog: {
blogSidebarTitle: '모든 게시물',
blogSidebarCount: 'ALL',
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/kooku0/kooku0.github.io/edit/main/',
postsPerPage: 'ALL',
path: 'blog',
id: 'blog'
} satisfies BlogOptions,
theme: {
customCss: './src/css/custom.css',
},
gtag: {
trackingID: 'G-KVSM4B0KPY',
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
},
}),
],
],
plugins: [
[
'content-blog',
{
id: 'retrospect',
routeBasePath: 'retrospect',
path: 'retrospect',
blogTitle: '경험을 돌아봄',
blogDescription: '경험을 돌아보고 깨달음을 얻어 발전하는 과정',
exclude: ['**/archive'],
} satisfies BlogOptions,
],
[
'content-blog',
{
id: 'journal',
routeBasePath: 'journal',
path: 'journal',
blogTitle: 'Journal',
blogSidebarCount: 'ALL',
postsPerPage: 'ALL',
} satisfies BlogOptions,
],
[
"docusaurus-plugin-dotenv",
{
path: './.env',
systemvars: true,
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Kooku\'s log',
logo: {
alt: 'My Site Logo',
src: 'img/favicon.ico',
},
items: [
{
to: '/blog',
label: 'Blog',
position: 'left'
},
{
to: '/books/',
type: 'docSidebar',
sidebarId: 'books',
position: 'left',
label: 'Book',
},
{
to: '/journal',
label: 'Journal',
position: 'left',
},
{
to: '/smartfarm',
type: 'docSidebar',
sidebarId: 'smartfarm',
label: 'Smartfarm',
position: 'left',
},
{
to: '/stock',
type: 'docSidebar',
sidebarId: 'stock',
label: 'Stock',
position: 'left',
},
{
href: 'https://github.com/kooku0/kooku0.github.io',
label: 'GitHub',
position: 'right',
},
],
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true
}
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: '블로그',
to: '/blog',
},
{
label: '책',
to: '/docs/books/',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/kooku0/kooku0.github.io',
},
{
label: 'LinkedIn',
href: 'https://www.linkedin.com/in/mingyu-gu-25aa761b5/'
}
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} kooku's log, Inc. Built with Docusaurus.`,
},
prism: {
theme: themes.github,
darkTheme: themes.vsDark,
additionalLanguages: ['java', 'scala', 'docker', 'yaml']
},
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: false
},
}),
} satisfies Config;
};