-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
126 lines (122 loc) · 3.27 KB
/
docusaurus.config.js
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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
require('dotenv').config();
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'HOJUNIN',
tagline: 'HOJUNIN',
url: 'https://www.hojunin.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'https://github.com/hojunin.png',
organizationName: 'hojunin',
projectName: 'hojunin',
customFields: {
password: process.env.PASSWORD,
},
i18n: {
defaultLocale: 'ko',
locales: ['ko'],
},
headTags: [
{
tagName: 'meta',
attributes: {
name: 'google-site-verification',
content: 'uwCYoBoSwTC9uFmHW4NboXtooElpmJxhrxozRvx3l-w',
},
},
{
tagName: 'meta',
attributes: {
name: 'naver-site-verification',
content: 'b1ce78632311098322928fbebb74013086198e5c',
},
},
],
scripts: ['https://asset-server.vercel.app/scripts/clarify.js'],
themes: ['@docusaurus/theme-mermaid'],
markdown: {
mermaid: true,
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: false, // 옵션: 문서 플러그인 사용 여부
blog: {
routeBasePath: '/',
blogSidebarTitle: '모든 포스트',
blogSidebarCount: 'ALL',
blogTitle: 'HJ 개발 블로그',
postsPerPage: 5,
readingTime: ({ content, frontMatter, defaultReadingTime }) =>
defaultReadingTime({ content, options: { wordsPerMinute: 300 } }),
},
gtag: {
trackingID: 'G-98C5STM243',
anonymizeIP: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'HJ__INN',
items: [
{
to: '/books',
label: '독서기록',
position: 'left',
},
{
href: 'https://hjinn.notion.site/hjinn/Full-Speed-Ahead-2d604da39fcd473d9328cf26877bb8cd',
label: '내 소개',
position: 'left',
},
{
href: 'https://github.com/hojunin',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: '더 알아보기',
items: [
{
label: '이력서',
href: 'https://hjinn.notion.site/hjinn/Full-Speed-Ahead-2d604da39fcd473d9328cf26877bb8cd',
},
{
label: '브런치',
href: 'https://brunch.co.kr/@dlsghwns',
},
{
label: '깃허브',
href: 'https://github.com/hojunin',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} HOJUN IN`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;