1
1
// @ts -check
2
2
// Note: type annotations allow type checking and IDEs autocompletion
3
3
4
- const lightCodeTheme = require ( " prism-react-renderer/themes/github" ) ;
5
- const darkCodeTheme = require ( " prism-react-renderer/themes/dracula" ) ;
6
- const dotenv = require ( " dotenv" ) ;
4
+ const lightCodeTheme = require ( ' prism-react-renderer/themes/github' ) ;
5
+ const darkCodeTheme = require ( ' prism-react-renderer/themes/dracula' ) ;
6
+ const dotenv = require ( ' dotenv' ) ;
7
7
8
8
dotenv . config ( ) ;
9
9
10
10
const config = {
11
- title : " Pomerium" ,
12
- tagline : " Documentation" ,
13
- url : " https://www.pomerium.com" ,
14
- baseUrl : "/" ,
15
- onBrokenLinks : " throw" ,
16
- onBrokenMarkdownLinks : " throw" ,
17
- favicon : " img/favicon.ico" ,
18
- organizationName : " pomerium" ,
19
- projectName : " documentation" ,
11
+ title : ' Pomerium' ,
12
+ tagline : ' Documentation' ,
13
+ url : ' https://www.pomerium.com' ,
14
+ baseUrl : '/' ,
15
+ onBrokenLinks : ' throw' ,
16
+ onBrokenMarkdownLinks : ' throw' ,
17
+ favicon : ' img/favicon.ico' ,
18
+ organizationName : ' pomerium' ,
19
+ projectName : ' documentation' ,
20
20
trailingSlash : false ,
21
21
22
22
customFields : {
@@ -25,31 +25,31 @@ const config = {
25
25
26
26
presets : [
27
27
[
28
- " classic" ,
28
+ '@docusaurus/preset- classic' ,
29
29
{
30
30
docs : {
31
- path : " content" ,
32
- routeBasePath : "/" ,
33
- sidebarPath : require . resolve ( " ./sidebars.js" ) ,
34
- editUrl : " https://github.com/pomerium/documentation/tree/main" ,
35
- remarkPlugins : [ require ( " mdx-mermaid" ) ] ,
31
+ path : ' content' ,
32
+ routeBasePath : '/' ,
33
+ sidebarPath : require . resolve ( ' ./sidebars.js' ) ,
34
+ editUrl : ' https://github.com/pomerium/documentation/tree/main' ,
35
+ remarkPlugins : [ require ( ' mdx-mermaid' ) ] ,
36
36
} ,
37
37
theme : {
38
- customCss : require . resolve ( " ./src/css/custom.css" ) ,
38
+ customCss : require . resolve ( ' ./src/css/custom.css' ) ,
39
39
} ,
40
40
googleAnalytics : {
41
41
trackingID : process . env . GA ,
42
42
} ,
43
43
sitemap : {
44
- filename : " docs/sitemap.xml" ,
45
- ignorePatterns : [ " /docs/examples/**" ] ,
44
+ filename : ' docs/sitemap.xml' ,
45
+ ignorePatterns : [ ' /docs/examples/**' ] ,
46
46
} ,
47
47
} ,
48
48
] ,
49
49
] ,
50
50
51
51
themeConfig : {
52
- image : " docs/img/logo.svg" ,
52
+ image : ' docs/img/logo.svg' ,
53
53
algolia : {
54
54
appId : process . env . ALGOALIA_APPID ,
55
55
apiKey : process . env . ALGOLIA_APIKEY ,
@@ -58,61 +58,61 @@ const config = {
58
58
searchPagePath : false ,
59
59
} ,
60
60
navbar : {
61
- title : "" ,
61
+ title : '' ,
62
62
logo : {
63
- alt : " Pomerium Logo" ,
64
- src : " img/logo.svg" ,
65
- href : " https://www.pomerium.com" ,
66
- target : " _self" ,
63
+ alt : ' Pomerium Logo' ,
64
+ src : ' img/logo.svg' ,
65
+ href : ' https://www.pomerium.com' ,
66
+ target : ' _self' ,
67
67
} ,
68
68
items : [
69
69
{
70
70
//href: '/',
71
- docId : " docs" ,
72
- position : " right" ,
73
- label : " Documentation" ,
74
- to : " /docs/" ,
75
- activeBaseRegex : " docs/(?!guides|reference|enterprise)" ,
71
+ docId : ' docs' ,
72
+ position : ' right' ,
73
+ label : ' Documentation' ,
74
+ to : ' /docs/' ,
75
+ activeBaseRegex : ' docs/(?!guides|reference|enterprise)' ,
76
76
} ,
77
77
{
78
- type : " doc" ,
79
- docId : " docs/reference" ,
80
- position : " right" ,
81
- label : " Reference" ,
82
- to : " /docs/reference/" ,
78
+ type : ' doc' ,
79
+ docId : ' docs/reference' ,
80
+ position : ' right' ,
81
+ label : ' Reference' ,
82
+ to : ' /docs/reference/' ,
83
83
} ,
84
84
{
85
- type : " docSidebar" ,
86
- sidebarId : " guides" ,
87
- position : " right" ,
88
- label : " Guides" ,
89
- to : " /docs/guides/" ,
85
+ type : ' docSidebar' ,
86
+ sidebarId : ' guides' ,
87
+ position : ' right' ,
88
+ label : ' Guides' ,
89
+ to : ' /docs/guides/' ,
90
90
} ,
91
91
{
92
- type : " doc" ,
93
- docId : " docs/enterprise/about" ,
94
- position : " right" ,
95
- label : " Enterprise" ,
96
- to : " /docs/enterprise/" ,
92
+ type : ' doc' ,
93
+ docId : ' docs/enterprise/about' ,
94
+ position : ' right' ,
95
+ label : ' Enterprise' ,
96
+ to : ' /docs/enterprise/' ,
97
97
} ,
98
98
{
99
- href : " https://github.com/pomerium/documentation" ,
100
- label : " GitHub" ,
101
- position : " right" ,
99
+ href : ' https://github.com/pomerium/documentation' ,
100
+ label : ' GitHub' ,
101
+ position : ' right' ,
102
102
} ,
103
103
{
104
- type : " dropdown" ,
105
- label : " v18" ,
106
- position : " right" ,
104
+ type : ' dropdown' ,
105
+ label : ' v18' ,
106
+ position : ' right' ,
107
107
items : [
108
108
{
109
- label : " v17" ,
110
- href : " https://v17.docs.pomerium.com/docs" ,
109
+ label : ' v17' ,
110
+ href : ' https://v17.docs.pomerium.com/docs' ,
111
111
} ,
112
112
{
113
- type : " doc" ,
114
- label : " Archived Versions" ,
115
- docId : " docs/versions" ,
113
+ type : ' doc' ,
114
+ label : ' Archived Versions' ,
115
+ docId : ' docs/versions' ,
116
116
} ,
117
117
] ,
118
118
} ,
@@ -121,56 +121,56 @@ const config = {
121
121
footer : {
122
122
links : [
123
123
{
124
- title : " Resources" ,
124
+ title : ' Resources' ,
125
125
items : [
126
126
{
127
- label : " Documentation" ,
128
- to : " https://www.pomerium.com/docs/" ,
127
+ label : ' Documentation' ,
128
+ to : ' https://www.pomerium.com/docs/' ,
129
129
} ,
130
130
{
131
- label : " Community" ,
132
- to : " https://discuss.pomerium.com/" ,
131
+ label : ' Community' ,
132
+ to : ' https://discuss.pomerium.com/' ,
133
133
} ,
134
134
{
135
- label : " Guides" ,
136
- to : " https://www.pomerium.com/docs/guides" ,
135
+ label : ' Guides' ,
136
+ to : ' https://www.pomerium.com/docs/guides' ,
137
137
} ,
138
138
{
139
- label : " Comparisons" ,
140
- to : " https://www.pomerium.com/comparisons/" ,
139
+ label : ' Comparisons' ,
140
+ to : ' https://www.pomerium.com/comparisons/' ,
141
141
} ,
142
142
{
143
- label : " Integrations" ,
144
- to : " https://www.pomerium.com/integrations/" ,
143
+ label : ' Integrations' ,
144
+ to : ' https://www.pomerium.com/integrations/' ,
145
145
} ,
146
146
] ,
147
147
} ,
148
148
{
149
- title : " Company" ,
149
+ title : ' Company' ,
150
150
items : [
151
151
{
152
- label : " Blog" ,
153
- to : " https://www.pomerium.com/blog/" ,
152
+ label : ' Blog' ,
153
+ to : ' https://www.pomerium.com/blog/' ,
154
154
} ,
155
155
{
156
- label : " About" ,
157
- to : " https://www.pomerium.com/about/" ,
156
+ label : ' About' ,
157
+ to : ' https://www.pomerium.com/about/' ,
158
158
} ,
159
159
{
160
- label : " Press Kit" ,
161
- to : " https://www.pomerium.com/press/" ,
160
+ label : ' Press Kit' ,
161
+ to : ' https://www.pomerium.com/press/' ,
162
162
} ,
163
163
{
164
- label : " Careers" ,
165
- to : " https://www.pomerium.com/careers/" ,
164
+ label : ' Careers' ,
165
+ to : ' https://www.pomerium.com/careers/' ,
166
166
} ,
167
167
] ,
168
168
} ,
169
169
] ,
170
170
logo : {
171
- alt : " Pomerium Logo" ,
172
- src : " img/logo.svg" ,
173
- href : " https://www.pomerium.com" ,
171
+ alt : ' Pomerium Logo' ,
172
+ src : ' img/logo.svg' ,
173
+ href : ' https://www.pomerium.com' ,
174
174
width : 161 ,
175
175
height : 28 ,
176
176
} ,
@@ -179,16 +179,16 @@ const config = {
179
179
prism : {
180
180
theme : lightCodeTheme ,
181
181
darkTheme : darkCodeTheme ,
182
- additionalLanguages : [ " actionscript" , " log" , " ini" , " nginx" , " rego" ] ,
182
+ additionalLanguages : [ ' actionscript' , ' log' , ' ini' , ' nginx' , ' rego' ] ,
183
183
} ,
184
184
} ,
185
185
stylesheets : [
186
- " https://fonts.googleapis.com/icon?family=Material+Icons" ,
187
- " https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/brands.min.css" ,
186
+ ' https://fonts.googleapis.com/icon?family=Material+Icons' ,
187
+ ' https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/brands.min.css' ,
188
188
] ,
189
189
plugins : [
190
190
[
191
- require . resolve ( " docusaurus-gtm-plugin" ) ,
191
+ require . resolve ( ' docusaurus-gtm-plugin' ) ,
192
192
{
193
193
id : process . env . GTM ,
194
194
} ,
0 commit comments