This repository has been archived by the owner on Jan 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
executable file
·142 lines (141 loc) · 3.66 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
title: "React Native Seoul",
url: "https://reactnativeseoul.com",
baseUrl: "/",
onBrokenLinks: "throw",
favicon: "img/favicon.ico",
organizationName: "react-native-seoul",
projectName: "reactnativeseoul.com",
onBrokenLinks: "ignore",
i18n: {
defaultLocale: "ko",
locales: ["en", "ko"],
},
plugins: [
[
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
to: "/docs/current/introduction",
from: "/docs",
},
{
to: "/docs/current/introduction",
from: "/docs/introduction",
}
],
},
],
],
themeConfig: {
navbar: {
title: "React Native Seoul",
logo: {
alt: "reactnativeseoul",
src: "img/logo.png",
},
items: [
{
to: "/docs/current/introduction",
label: "Community",
position: "left",
},
{ to: "/blog", label: "Blog", position: "left" },
{ href: "https://forums.reactnativeseoul.com", label: "Forums", position: "left" },
{
href: "https://github.com/react-native-seoul/reactnativeseoul.com",
label: "GitHub",
position: "right",
},
{
type: "localeDropdown",
position: "right",
},
{
type: "docsVersionDropdown",
position: "right",
dropdownActiveClassDisabled: true,
dropdownItemsAfter: [],
},
],
},
footer: {
style: "dark",
links: [
{
title: "Community",
items: [
{
label: "Forums",
href: "https://forums.reactnativeseoul.com",
},
{
label: "Slack",
href: "https://dooboolab.com/joinRNSeoul",
},
],
},
{
title: "Offline",
items: [
{
label: "Meetup",
href: "https://www.meetup.com/ko-KR/react-native-seoul",
},
],
},
{
title: "Contents",
items: [
{
label: "Medium",
href: "https://medium.com/react-native-seoul",
},
{
label: "Youtube",
href: "https://www.youtube.com/playlist?list=PLMu8UG37vF6oJLNhjsjoy_ApcJFZZwJOo",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} dooboolab.`,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "docs",
lastVersion: "current",
versions: {
current: {
label: "current",
path: "current",
},
},
sidebarPath: require.resolve("./sidebars.js"),
editUrl: ({ locale, docPath }) => {
if (locale !== "en") {
return `https://github.com/react-native-seoul/reactnativeseoul.com/tree/main/${locale}`;
}
// We want users to submit doc updates to the upstream/next version!
// Otherwise we risk losing the update on the next release.
const nextVersionDocsDirPath = "docs";
return `https://github.com/react-native-seoul/reactnativeseoul.com/edit/main/${nextVersionDocsDirPath}/${docPath}`;
},
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
};