-
Notifications
You must be signed in to change notification settings - Fork 26
/
docusaurus.config.js
197 lines (195 loc) · 5.75 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
var extraPlugins;
try {
extraPlugins = require('./extra-plugins.js');
} catch (e) {
extraPlugins = [];
console.log('no extra plugins');
}
module.exports = {
title: 'Open Source Continuous Profiling Platform',
tagline: 'Debug performance issues down to a single line of code',
url: 'https://pyroscope.io',
baseUrl: '/',
onBrokenLinks: 'throw', // Talk to Dmitry (@petethepig) if you ever want to change this setting
favicon: 'img/favicon.ico',
organizationName: 'pyroscope-io', // Usually your GitHub org/user name.
projectName: 'pyroscope', // Usually your repo name.
trailingSlash: true, // Talk to Dmitry (@petethepig) if you ever want to change this setting
customFields: {
apiAddress: process.env.API_ADDRESS || 'https://pyroscope.io', // Usually your repo name.
},
themeConfig: {
image: "/img/demo-thumbnail.png",
metadatas: [
{
name: 'og:image', content: "/img/demo-thumbnail.png"
}
],
prism: {
additionalLanguages: ['ruby', 'rust', 'java'],
},
posthog: {
apiKey: "phc_MwF5liyV3wxYN2keLgioVUu4FMiMze7Iu3rh6denuDb",
appUrl: "https://app.posthog.com", // optional
enableInDevelopment: false, // optional
},
// algolia: {
// apiKey: '36ebff722c41a8fb7d1b11b4abcc980c',
// indexName: 'pyroscope',
// contextualSearch: false,
// searchParameters: {},
// },
googleAnalytics: {
trackingID: 'UA-185672451-1'
},
colorMode: {
defaultMode: 'light',
disableSwitch: false
},
navbar: {
title: 'Pyroscope',
logo: {
alt: 'Pyroscope Logo',
src: 'img/logo-v3-small.png',
},
items: [
{
href: "https://grafana.com/docs/pyroscope/latest/",
label: 'Docs',
position: 'left',
},
{to: 'blog', label: 'Blog', position: 'left'},
{
href: 'https://slack.grafana.com/',
icon: "/img/navbar/slack.svg",
label: 'Slack',
position: 'right',
},
{
href: 'https://github.com/pyroscope-io/pyroscope',
icon: "/img/navbar/github.svg",
label: 'GitHub',
position: 'right',
},
{
href: 'https://twitter.com/PyroscopeIO',
icon: "/img/navbar/twitter.svg",
label: 'Twitter',
position: 'right',
},
],
},
announcementBar: {
id: 'news',
content: '<strong>NEWS:</strong> Pyroscope Cloud is NOW Grafana Cloud Profiles <a class="button" style="text-decoration: none;" target="_blank" href="https://grafana.com/blog/2023/08/09/grafana-cloud-profiles-for-continuous-profiling/">Read more</a>',
backgroundColor: '#D14600', // Defaults to `#fff`
textColor: 'white', // Defaults to `#000`
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Getting Started',
href: "https://grafana.com/docs/pyroscope/latest/",
},
{
label: 'Downloads',
href: 'https://github.com/grafana/pyroscope/releases',
},
{
label: 'Deployment Guide',
href: 'https://grafana.com/docs/pyroscope/latest/deploy-kubernetes/',
},
],
},
{
title: 'Community',
items: [
// {
// label: 'Stack Overflow',
// href: 'https://stackoverflow.com/questions/tagged/pyroscope',
// },
{
label: 'Slack',
icon: "/img/navbar/slack.svg",
href: "https://pyroscope.io/slack/",
},
{
label: 'Twitter',
icon: "/img/navbar/twitter.svg",
href: 'https://twitter.com/PyroscopeIO',
},
{
label: 'GitHub',
icon: "/img/navbar/github.svg",
href: 'https://github.com/pyroscope-io/pyroscope',
},
{
label: 'Contribute',
to: 'https://github.com/pyroscope-io/pyroscope/blob/main/CONTRIBUTING.md',
},
{
label: 'Roadmap',
to: 'https://github.com/pyroscope-io/pyroscope/projects/1',
}
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'Careers',
href: 'https://apply.workable.com/pyroscope/',
},
{
label: 'Privacy Policy',
href: '/privacy',
},
{
label: 'Contact Us',
href: 'mailto:contact@pyroscope.io',
},
{
label: 'Status Page',
href: 'https://pyroscope.statuspage.io/',
}
],
},
],
copyright: `Copyright © 2020 – ${new Date().getFullYear()} <img style="width:22px; vertical-align: sub;" src="/img/logo.svg"/> Pyroscope, Inc`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/pyroscope-io/docs/edit/main/',
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/pyroscope-io/docs/edit/main/',
blogSidebarTitle: 'All posts',
blogSidebarCount: 'ALL',
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
sitemap: {},
},
],
],
plugins: [
'docusaurus-plugin-sass',
'webpack-plugin',
'posthog-docusaurus'
].concat(extraPlugins)
};