forked from SigNoz/signoz.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
316 lines (308 loc) · 8.42 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
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
// @ts-check
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "SigNoz",
tagline: "Open source Observability platform",
url: "https://signoz.io",
baseUrl: "/",
onBrokenLinks: "throw",
trailingSlash: true,
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "SigNoz", // Usually your GitHub org/user name.
projectName: "signoz", // Usually your repo name.
themeConfig: {
algolia: {
// The application ID provided by Algolia
appId: 'E88QYIQ6K4',
// Public API key: it is safe to commit it
apiKey: '1061c173ae001d5f5aaa4f0354e373a0',
indexName: 'signoz',
},
prism: {
// Supported languages are:
// https://prismjs.com/index.html#supported-languages
additionalLanguages: ["ruby", "csharp", "php", "java"],
},
zoom: {
selector: 'figure[data-zoomable] > img',
config: {
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
background: {
light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)'
}
}
},
// googleAnalytics: {
// trackingID: 'UA-152867655-1',
// // Optional fields.
// // anonymizeIP: true, // Should IPs be anonymized?
// },
// announcementBar: {
// id: "support_us", // Any value that will identify this message.
// content:
// 'We tweet about DevOps, DevTools and fun stuff. Let\'s be friends on <a target="_blank" rel="noopener noreferrer" href="https://bit.ly/3H7bXwd">Twitter</a> 🙋🏼♀️ ',
// backgroundColor: "#CF2E09", // #151515, #dddddd Defaults to `#fff`.
// textColor: "#eeeeee", // Defaults to `#000`.
// isCloseable: false, // Defaults to `true`.
// },
// posthog: {
// apiKey: "H-htDCae7CR3RV57gUzmol6IAKtm5IMCvbcm_fwnL-w",
// appUrl: "https://app.posthog.com", // optional
// enableInDevelopment: false, // optional
// },
image: "/img/signoz_website_hero_image.webp",
colorMode: {
// "light" | "dark"
defaultMode: "dark",
},
navbar: {
title: "SigNoz",
logo: {
alt: "My Site Logo",
src: "img/SigNozLogo-orange.svg",
},
items: [
{
to: "docs/",
activeBasePath: "docs",
label: "Docs",
position: "left",
},
//docusaurus expects href elements to be full links
//https://stackoverflow.com/questions/63268853/how-do-i-link-to-non-docusaurus-defined-routes-from-a-docusuarus-footer
//{href: 'https://signoz.io/blog/', label: 'Blog', position: 'left'}
{
to: "blog/",
activeBasePath: "blog",
label: "Blog",
position: "left",
},
{
to: "opentelemetry/",
activeBasePath: "opentelemetry",
label: "OpenTelemetry",
position: "left",
},
{
to: "case-study/",
activeBasePath: "case-study/",
label: "Customer Stories",
position: "right",
},
{
href: "https://signoz.io/slack",
label: "Slack",
position: "right",
},
// {
// to: 'pricing/',
// activeBasePath: 'pricing',
// label: 'Cloud',
// position: 'right',
// },
// {
// to: "about-us/",
// label: "About",
// position: "right",
// },
{
to: "pricing/",
activeBasePath: "pricing",
label: "Pricing",
position: "left",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Introduction",
to: "docs/",
},
{
label: "Contributing",
to: "docs/contributing",
},
],
},
{
title: "Community",
items: [
// {
// label: 'Stack Overflow',
// href: 'https://stackoverflow.com/questions/tagged/signoz',
// },
{
label: "Slack",
href: "https://signoz.io/slack",
},
{
label: "Twitter",
href: "https://twitter.com/SigNozHQ",
},
{
label: "Support",
to: "support/",
},
{
label: "Learn",
to: "learn/",
},
{
label: "Community Archive",
href: "https://community-chat.signoz.io/",
},
],
},
{
title: "More",
items: [
{
label: "Technical Writer Program",
to: "technical-writer-program/",
},
{
label: "About",
to: "about-us/",
},
{
label: "Terms",
to: "terms-of-service/",
},
{
label: "Privacy",
to: "privacy/",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} SigNoz, Inc.`,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl: ({ docPath }) => {
// 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/SigNoz/signoz.io/edit/main/${nextVersionDocsDirPath}/${docPath}`;
},
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// editUrl:
// 'https://github.com/facebook/docusaurus/edit/master/website/blog/',
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
},
gtag: {
// You can also use your "G-" Measurement ID here.
trackingID: "UA-152867655-1",
// Optional fields.
// anonymizeIP: true, // Should IPs be anonymized?
},
},
],
],
// plugins: ["posthog-docusaurus"],
plugins: [
require.resolve('docusaurus-plugin-image-zoom'),
[
"@docusaurus/plugin-content-blog",
{
/**
* Required for any multi-instance plugin
*/
id: "opentelemetry",
/**
* URL route for the blog section of your site.
* *DO NOT* include a trailing slash.
*/
routeBasePath: "opentelemetry",
/**
* Path to data on filesystem relative to site dir.
*/
path: "./opentelemetry",
blogTitle: "OpenTelemetry",
},
],
[
"@docusaurus/plugin-content-blog",
{
/**
* Required for any multi-instance plugin
*/
id: "learn",
/**
* URL route for the blog section of your site.
* *DO NOT* include a trailing slash.
*/
routeBasePath: "learn",
/**
* Path to data on filesystem relative to site dir.
*/
path: "./learn",
blogTitle: "Learn with SigNoz",
},
],
[
"@docusaurus/plugin-pwa",
{
debug: true,
offlineModeActivationStrategies: [
"appInstalled",
"standalone",
"queryString",
],
pwaHead: [
{
tagName: "link",
rel: "icon",
href: "/img/icons/icon-512x512.png",
},
{
tagName: "link",
rel: "manifest",
href: "/manifest.json", // your PWA manifest
},
{
tagName: "meta",
name: "theme-color",
content: "rgb(95, 34, 20)",
},
],
},
],
],
// plugins: ['@docusaurus/plugin-google-gtag'],
// plugins: ['@docusaurus/plugin-google-analytics'],
// plugins: [
// [
// '@docusaurus/plugin-sitemap',
// {
// cacheTime: 600 * 1000, // 600 sec - cache purge period
// changefreq: 'weekly',
// priority: 0.5,
// trailingSlash: false,
// },
// ],
// ],
};
module.exports = config;