1
- const lightCodeTheme = require ( ' prism-react-renderer/themes/github' ) ;
2
- const darkCodeTheme = require ( ' prism-react-renderer/themes/dracula' ) ;
1
+ const lightCodeTheme = require ( " prism-react-renderer/themes/github" ) ;
2
+ const darkCodeTheme = require ( " prism-react-renderer/themes/dracula" ) ;
3
3
4
4
/** @type {import('@docusaurus/types').DocusaurusConfig } */
5
5
module . exports = {
6
- title : 'Parca' ,
7
- tagline : 'Open Source Infrastructure-wide continuous profiling' ,
8
- url : 'https://parca.dev' ,
9
- baseUrl : '/docs/' ,
10
- onBrokenLinks : 'throw' ,
11
- onBrokenMarkdownLinks : 'warn' ,
12
- favicon : 'img/favicon.svg' ,
13
- organizationName : 'facebook' , // Usually your GitHub org/user name.
14
- projectName : 'docusaurus' , // Usually your repo name.
15
- scripts : [ { src : 'https://plausible.io/js/plausible.js' , async : true , defer : true , 'data-domain' : 'parca.dev' } ] ,
6
+ title : "Parca" ,
7
+ tagline : "Open Source Infrastructure-wide continuous profiling" ,
8
+ url : "https://parca.dev" ,
9
+ baseUrl : "/docs/" ,
10
+ onBrokenLinks : "throw" ,
11
+ onBrokenMarkdownLinks : "warn" ,
12
+ favicon : "img/favicon.svg" ,
13
+ organizationName : "facebook" , // Usually your GitHub org/user name.
14
+ projectName : "docusaurus" , // Usually your repo name.
15
+ scripts : [
16
+ {
17
+ src : "https://plausible.io/js/plausible.js" ,
18
+ async : true ,
19
+ defer : true ,
20
+ "data-domain" : "parca.dev" ,
21
+ } ,
22
+ ] ,
16
23
plugins : [
17
24
require . resolve ( "./docusaurus-github-releases-plugin/src/index.js" ) ,
18
25
] ,
19
26
themeConfig : {
20
27
announcementBar : {
21
- id : 'github_star' ,
22
- content : '★ <a href="https://github.com/parca-dev/parca">If you like Parca, give it a star on GitHub!</a> ★' ,
23
- backgroundColor : '#64b5f6' , // Defaults to `#fff`.
24
- textColor : '#091E42' , // Defaults to `#000`.
28
+ id : "github_star" ,
29
+ content :
30
+ '★ <a href="https://github.com/parca-dev/parca">If you like Parca, give it a star on GitHub!</a> ★' ,
31
+ backgroundColor : "#64b5f6" , // Defaults to `#fff`.
32
+ textColor : "#091E42" , // Defaults to `#000`.
25
33
isCloseable : true , // Defaults to `true`.
26
34
} ,
27
- metadata : [ { name : ' og:image' , content : ' https://parca.dev/img/logo.png' } ] ,
35
+ metadata : [ { name : " og:image" , content : " https://parca.dev/img/logo.png" } ] ,
28
36
colorMode : {
29
37
disableSwitch : true ,
30
38
} ,
31
39
navbar : {
32
40
logo : {
33
- alt : ' Parca Logo' ,
34
- src : ' img/logo.svg' ,
35
- href : ' https://parca.dev/' ,
36
- target : ' _self' ,
41
+ alt : " Parca Logo" ,
42
+ src : " img/logo.svg" ,
43
+ href : " https://parca.dev/" ,
44
+ target : " _self" ,
37
45
} ,
38
46
items : [
39
47
{
40
- type : 'doc' ,
41
- docId : 'overview' ,
42
- position : 'left' ,
43
- label : 'Documentation' ,
48
+ type : "doc" ,
49
+ docId : "binary" ,
50
+ position : "left" ,
51
+ label : "Download" ,
52
+ } ,
53
+ {
54
+ type : "doc" ,
55
+ docId : "overview" ,
56
+ position : "left" ,
57
+ label : "Documentation" ,
44
58
} ,
45
59
{
46
- type : ' doc' ,
47
- docId : ' binary' ,
48
- position : ' left' ,
49
- label : ' Tutorial' ,
50
- } ,
60
+ type : " doc" ,
61
+ docId : " binary" ,
62
+ position : " left" ,
63
+ label : " Tutorial" ,
64
+ } ,
51
65
// {to: '/blog', label: 'Blog', position: 'left'},
52
66
{
53
- href : ' https://github.com/parca-dev/parca' ,
54
- label : ' GitHub' ,
55
- position : ' right' ,
67
+ href : " https://github.com/parca-dev/parca" ,
68
+ label : " GitHub" ,
69
+ position : " right" ,
56
70
} ,
57
71
{
58
- href : ' https://twitter.com/ParcaDev' ,
59
- label : ' Twitter' ,
60
- position : ' right' ,
72
+ href : " https://twitter.com/ParcaDev" ,
73
+ label : " Twitter" ,
74
+ position : " right" ,
61
75
} ,
62
76
{
63
- href : ' https://discord.gg/ZgUpYgpzXy' ,
64
- label : ' Discord' ,
65
- position : ' right' ,
66
- } ,
77
+ href : " https://discord.gg/ZgUpYgpzXy" ,
78
+ label : " Discord" ,
79
+ position : " right" ,
80
+ } ,
67
81
] ,
68
82
} ,
69
83
footer : {
70
- style : ' dark' ,
84
+ style : " dark" ,
71
85
links : [
72
86
{
73
- title : ' Docs' ,
87
+ title : " Docs" ,
74
88
items : [
75
89
{
76
- label : ' Overview' ,
77
- to : ' /docs/overview' ,
90
+ label : " Overview" ,
91
+ to : " /docs/overview" ,
78
92
} ,
79
93
{
80
- label : ' FAQ' ,
81
- to : ' /docs/faq' ,
94
+ label : " FAQ" ,
95
+ to : " /docs/faq" ,
82
96
} ,
83
97
{
84
- label : ' Governance' ,
85
- to : ' /docs/governance' ,
98
+ label : " Governance" ,
99
+ to : " /docs/governance" ,
86
100
} ,
87
101
] ,
88
102
} ,
89
103
{
90
- title : ' Quick Start' ,
104
+ title : " Quick Start" ,
91
105
items : [
92
106
{
93
- label : ' Parca from Binary' ,
94
- to : ' /docs/binary' ,
107
+ label : " Parca from Binary" ,
108
+ to : " /docs/binary" ,
95
109
} ,
96
110
{
97
- label : ' Parca from Snapcraft' ,
98
- to : ' /docs/snap' ,
111
+ label : " Parca from Snapcraft" ,
112
+ to : " /docs/snap" ,
99
113
} ,
100
114
{
101
- label : ' Parca in Kubernetes' ,
102
- to : ' /docs/kubernetes' ,
115
+ label : " Parca in Kubernetes" ,
116
+ to : " /docs/kubernetes" ,
103
117
} ,
104
118
] ,
105
119
} ,
106
120
{
107
- title : ' Community' ,
121
+ title : " Community" ,
108
122
items : [
109
123
//{
110
124
// label: 'Stack Overflow',
111
125
// href: 'https://stackoverflow.com/questions/tagged/docusaurus',
112
126
//},
113
127
{
114
- label : ' Discord' ,
115
- href : ' https://discord.gg/ZgUpYgpzXy' ,
128
+ label : " Discord" ,
129
+ href : " https://discord.gg/ZgUpYgpzXy" ,
116
130
} ,
117
131
{
118
- label : ' Twitter' ,
119
- href : ' https://twitter.com/ParcaDev' ,
132
+ label : " Twitter" ,
133
+ href : " https://twitter.com/ParcaDev" ,
120
134
} ,
121
135
{
122
- label : ' YouTube' ,
123
- href : ' https://www.youtube.com/channel/UCRrqAGuajRqIX_E_arNnYCw' ,
136
+ label : " YouTube" ,
137
+ href : " https://www.youtube.com/channel/UCRrqAGuajRqIX_E_arNnYCw" ,
124
138
} ,
125
139
] ,
126
140
} ,
127
141
{
128
- title : ' More' ,
142
+ title : " More" ,
129
143
items : [
130
144
//{
131
145
// label: 'Blog',
132
146
// to: '/blog',
133
147
//},
134
148
{
135
- label : ' GitHub' ,
136
- href : ' https://github.com/parca-dev/parca' ,
149
+ label : " GitHub" ,
150
+ href : " https://github.com/parca-dev/parca" ,
137
151
} ,
138
152
{
139
153
html : `
@@ -150,27 +164,26 @@ module.exports = {
150
164
//theme: lightCodeTheme,
151
165
darkTheme : darkCodeTheme ,
152
166
} ,
153
- algolia : {
154
- apiKey : ' 525d17aaac0e93dea054f39af7b692bd' ,
155
- indexName : ' parca' ,
156
- appId : ' BH4D9OD16A' ,
157
- contextualSearch : false ,
158
- } ,
167
+ algolia : {
168
+ apiKey : " 525d17aaac0e93dea054f39af7b692bd" ,
169
+ indexName : " parca" ,
170
+ appId : " BH4D9OD16A" ,
171
+ contextualSearch : false ,
172
+ } ,
159
173
} ,
160
174
presets : [
161
175
[
162
- ' @docusaurus/preset-classic' ,
176
+ " @docusaurus/preset-classic" ,
163
177
{
164
178
docs : {
165
- routeBasePath : '/' ,
166
- sidebarPath : require . resolve ( ' ./sidebars.js' ) ,
179
+ routeBasePath : "/" ,
180
+ sidebarPath : require . resolve ( " ./sidebars.js" ) ,
167
181
// Please change this to your repo.
168
- editUrl :
169
- 'https://github.com/parca-dev/parca.dev/edit/main/' ,
182
+ editUrl : "https://github.com/parca-dev/parca.dev/edit/main/" ,
170
183
} ,
171
184
blog : false ,
172
185
theme : {
173
- customCss : require . resolve ( ' ./src/css/custom.css' ) ,
186
+ customCss : require . resolve ( " ./src/css/custom.css" ) ,
174
187
} ,
175
188
} ,
176
189
] ,
0 commit comments