-
Notifications
You must be signed in to change notification settings - Fork 29
/
docusaurus.config.js
198 lines (191 loc) · 6.36 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
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
189
190
191
192
193
194
195
196
197
198
const React = require("react");
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/okaidia");
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(
module.exports = {
title: "Rowy Docs",
tagline: "Open source and extendable spreadsheet for your database",
url: "https://docs.rowy.io",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.svg",
organizationName: "rowyio", // Usually your GitHub org/user name.
projectName: "rowydocs", // Usually your repo name.
titleDelimiter: "•",
plugins: [require.resolve('docusaurus-plugin-fathom')],
presets: [
[
"@docusaurus/preset-classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
// Please change this to your repo.
editUrl: "https://github.com/rowyio/docs/tree/main/",
breadcrumbs: false,
},
// blog: {
// showReadingTime: true,
// // Please change this to your repo.
// editUrl: "https://github.com/rowyio/docs/blog/",
// },
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-G41D01C293",
},
}),
],
],
stylesheets: [
"https://rsms.me/inter/inter.css",
"https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap",
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
hideOnScroll: true,
// title: "Rowy Docs",
logo: {
alt: "Rowy Docs",
src: "img/logo.svg",
srcDark: "img/logo-dark.svg",
},
items: [
// {
// type: "doc",
// docId: "introduction",
// position: "left",
// label: "Docs",
// },
// { to: "/blog", label: "Blog", position: "right" },
{
href: "https://rowy.io",
label: "rowy.io",
position: "right",
},
{
href: "https://discord.gg/B8yAD5PDX4",
className: "navbar__icon-link navbar__icon-link--discord",
"aria-label": "Discord community",
position: "right",
},
{
href: "https://twitter.com/rowyio",
className: "navbar__icon-link navbar__icon-link--twitter",
"aria-label": "Twitter",
position: "right",
},
{
href: "https://github.com/rowyio/rowy",
className: "navbar__icon-link navbar__icon-link--github",
"aria-label": "GitHub repository",
position: "right",
},
],
},
footer: {
style: "light",
links: [
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.com/invite/B8yAD5PDX4",
},
{
label: "Twitter",
href: "https://twitter.com/rowyio",
},
{
label: "GitHub",
href: "https://github.com/rowyio",
},
],
},
{
title: "Help",
items: [
{
label: "Feature Request",
href: "https://github.com/rowyio",
},
{
label: "Support",
href: "https://discord.com/invite/B8yAD5PDX4",
},
],
},
// {
// title: "More",
// items: [
// {
// label: "Blog",
// to: "/blog",
// },
// {
// label: "GitHub",
// href: "https://github.com/rowyio",
// },
// ],
// },
],
logo: {
alt: "Rowy",
src: "img/rowy-logo.png",
srcDark: "img/rowy-logo-dark.png",
href: "https://rowy.io",
},
copyright: `Copyright © ${new Date().getFullYear()} Rowy Inc.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
appId: "IY9HJR36YD",
apiKey: "d156e914da917ac8e4f129af98bbc732",
indexName: "rowy",
// Optional: see doc section below
contextualSearch: true,
},
fathomAnalytics: {
siteId: 'PVABIULD',
customDomain: 'https://cdn.usefathom.com',
},
colorMode: {
defaultMode: "light",
// disableSwitch: false,
respectPrefersColorScheme: true,
// switchConfig: {
// darkIcon: " ",
// lightIcon: "\u2600",
// darkIconStyle: {
// backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2A9.91 9.91 0 0 0 9 2.46A10 10 0 0 1 9 21.54A10 10 0 1 0 12 2Z' /%3E%3C/svg%3E")`,
// width: 18,
// height: 18,
// margin: -4,
// transform: "scaleX(-1)",
// },
// lightIconStyle: { color: "#fff" },
// },
},
announcementBar: {
id: "announcementBar", // Increment on change
content: `⭐️ If you like Rowy, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/rowyio/rowy">GitHub</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/rowyio">Twitter</a> `,
backgroundColor: "var(--ifm-background-surface-color)",
textColor: "var(--ifm-font-color-base)",
},
autoCollapseSidebarCategories: true,
hideableSidebar: true,
image: "img/meta.png",
}),
}
);