-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docusaurus.config.js
137 lines (136 loc) · 3.53 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "ReScript React Native",
tagline: "The safest way to build React Native apps",
url: "https://rescript-react-native.github.io",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
favicon: "favicon.ico",
organizationName: "rescript-react-native",
projectName: "rescript-react-native.github.io",
themeConfig: {
algolia: {
appId: "W7CN8UK6UO",
apiKey: "6e1574674c062e3d14ab7c888da88f4f",
indexName: "rescript-react-native",
// contextualSearch: true,
// searchParameters: {},
},
navbar: {
style: "dark",
title: "ReScript React Native",
logo: {
alt: "ReScript React Native Logo",
src: "ReScriptReactNative.svg",
},
items: [
{
label: "Docs",
to: "docs/",
activeBasePath: "docs",
position: "left",
},
{
label: "Components",
to: "docs/components",
position: "left",
},
{
label: "APIs",
to: "docs/apis",
position: "left",
},
{ to: "blog", label: "Blog", position: "right" },
{
label: "GitHub",
href: "https://github.com/rescript-react-native",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Getting Started",
to: "docs/",
},
{
label: "Components",
to: "docs/components",
},
{
label: "APIs",
to: "docs/apis",
},
],
},
{
title: "Community",
items: [
{
label: "GitHub Discussions",
href: "https://github.com/rescript-react-native/rescript-react-native/discussions",
},
{
label: "StackOverflow",
href: "https://stackoverflow.com/questions/tagged/rescript-react-native",
},
{
label: "ReScript Forum",
href: "https://forum.rescript-lang.org",
},
],
},
{
title: "More",
items: [
{
label: "ReScript Documentation",
href: "https://rescript-lang.org",
},
{
label: "Blog",
to: "blog",
},
{
label: "GitHub",
href: "https://github.com/rescript-react-native",
},
{
label: "Wesbite Source",
href: "https://github.com/rescript-react-native/rescript-react-native.github.io",
},
],
},
],
copyright: `© ${new Date().getFullYear()} ReScript React Native`,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "docs",
sidebarPath: require.resolve("./sidebars.js"),
editCurrentVersion: false,
editUrl:
"https://github.com/rescript-react-native/rescript-react-native.github.io/edit/src/",
},
blog: {
showReadingTime: true,
editUrl:
"https://github.com/rescript-react-native/rescript-react-native.github.io/edit/src/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
};