-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.ts
224 lines (215 loc) · 5.6 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
import { themes as prismThemes } from "prism-react-renderer";
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
const config: Config = {
title: "Backmesh",
// open source Firebase for LLM APIs
// control panel for AI Apps
// open source Firebase for LLM APIs
// Firebase for LLM APIs"
// open source BaaS for LLM APIs
// JWT Proxy for LLM APIs
// open source Backend for LLM APIs
// open source BaaS for AI apps
tagline: "Open Source BaaS for AI apps",
favicon: "img/favicon.ico",
// Set the production url of your site here
url: "https://backmesh.com",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "backmesh", // Usually your GitHub org/user name.
projectName: "backmesh", // Usually your repo name.
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
docs: {
routeBasePath: "/docs",
exclude: [],
},
blog: {
showReadingTime: true,
routeBasePath: '/blog',
exclude: ['unlisted/*'],
blogSidebarTitle: 'All posts',
blogSidebarCount: 'ALL',
},
theme: {
customCss: "./src/css/custom.css",
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
ignorePatterns: ["/tags/**"],
filename: "sitemap.xml",
},
} satisfies Preset.Options,
],
],
plugins: [
[
"posthog-docusaurus",
{
apiKey: "phc_fZ3tyt5smshwvm17JYlrU8PbxUVlOoakvH2M5b6ktdO",
},
],
[
'@docusaurus/plugin-google-gtag',
{
trackingID: 'AW-941232918',
},
],
[
'@docusaurus/plugin-google-tag-manager',
{
containerId: 'GTM-5DZ7WT5X',
},
],
[
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
to: "https://forms.gle/DyceYMGhUesCJCEJ8", // The destination URL
from: ["/updates"], // The source URL(s)
},
],
},
],
],
themeConfig: {
colorMode: {
defaultMode: "light",
disableSwitch: true,
respectPrefersColorScheme: false,
},
// announcementBar: {
// id: "product-hunt-banner", // Any value that will identify this message.
// content:
// 'We are live on Product Hunt! 🎉 Check us out and support us <a target="_blank" rel="noopener noreferrer" href="https://www.producthunt.com/posts/backmesh">here</a>!',
// backgroundColor: "#DA552F", // Product Hunt's brand color.
// textColor: "#ffffff", // White text color for contrast.
// isCloseable: true, // Defaults to `true`.
// },
navbar: {
title: "Backmesh",
logo: {
alt: "Backmesh Logo",
src: "img/logo.png",
style: { padding: "4px" },
},
items: [
{
to: "/pricing",
position: "left",
label: "Pricing",
},
{
to: "docs",
position: "left",
label: "Docs",
},
{
to: "blog",
position: "left",
label: "Blog",
},
{
to: process.env.NODE_ENV === 'development' ? "http://localhost:8000" : "https://backmesh.com/app",
position: "right",
label: "Dashboard",
className: "navbar-button",
target: "_self",
},
{
href: "https://discord.backmesh.com",
position: "right",
className: "header-discord-link",
"aria-label": "Community",
},
{
href: "/~https://github.com/backmesh/backmesh",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
},
],
},
footer: {
style: 'light',
links: [
{
title: 'Product',
items: [
{
label: 'Dashboard',
to: process.env.NODE_ENV === 'development' ? "http://localhost:8000" : "https://backmesh.com/app",
},
{
label: 'Pricing',
to: '/pricing',
},
],
},
{
title: 'Content',
items: [
{
label: 'Docs',
to: '/docs',
},
{
label: 'Blog',
to: '/blog',
},
],
},
{
title: 'Utils',
items: [
{
label: 'Supabase JWT Generator',
to: '/supabase-jwt',
},
{
label: 'Firebase JWT Generator',
to: '/firebase-jwt',
},
],
},
{
title: 'Community',
items: [
{
label: 'Questions?',
href: 'https://tawk.to/chat/67b9b45a4db380190f4dfecd/1ikmmh09h',
},
{
label: 'GitHub',
href: '/~https://github.com/backmesh/backmesh',
},
{
label: 'Discord',
href: 'https://discord.backmesh.com',
},
],
},
],
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ["dart"],
},
} satisfies Preset.ThemeConfig,
};
export default config;