1
-
2
-
3
- // GitHub Settings
4
- const repository = 'https://github.com/cardano-foundation/developer-portal' ;
5
- const branch = 'staging' ;
1
+ // GitHub Settings
2
+ const repository = "https://github.com/cardano-foundation/developer-portal" ;
3
+ const branch = "staging" ;
6
4
7
5
// Docusaurus Config
8
6
module . exports = {
9
- title : ' Cardano Developer Portal' ,
10
- tagline : ' together, we can change the world for the better' ,
11
- url : ' https://staging-dev-portal.netlify.app' ,
12
- baseUrl : '/' ,
13
- onBrokenLinks : ' throw' ,
14
- onBrokenMarkdownLinks : ' warn' ,
15
- favicon : ' img/favicon.ico' ,
16
- organizationName : ' cardano-foundation' ,
17
- projectName : ' developer-portal' ,
7
+ title : " Cardano Developer Portal" ,
8
+ tagline : " together, we can change the world for the better" ,
9
+ url : " https://staging-dev-portal.netlify.app" ,
10
+ baseUrl : "/" ,
11
+ onBrokenLinks : " throw" ,
12
+ onBrokenMarkdownLinks : " warn" ,
13
+ favicon : " img/favicon.ico" ,
14
+ organizationName : " cardano-foundation" ,
15
+ projectName : " developer-portal" ,
18
16
customFields : {
19
- repository : `${ repository } ` ,
20
- branch : `${ branch } ` ,
17
+ repository : `${ repository } ` ,
18
+ branch : `${ branch } ` ,
21
19
} ,
22
20
themeConfig : {
23
-
24
21
// Docs Sidebar
25
22
hideableSidebar : true ,
26
23
@@ -30,154 +27,151 @@ module.exports = {
30
27
// with true defaultMode is overridden by user system preferences.
31
28
respectPrefersColorScheme : true ,
32
29
switchConfig : {
33
- darkIcon : '🌙' ,
30
+ darkIcon : "🌙" ,
34
31
darkIconStyle : {
35
- marginLeft : ' 2px' ,
32
+ marginLeft : " 2px" ,
36
33
} ,
37
- lightIcon : '☀️' ,
34
+ lightIcon : "☀️" ,
38
35
lightIconStyle : {
39
- marginLeft : ' 1px' ,
36
+ marginLeft : " 1px" ,
40
37
} ,
41
38
} ,
42
39
} ,
43
40
44
41
// Announcement Bar
45
42
announcementBar : {
46
- id : ' support_us' , // Any value that will identify this message.
43
+ id : " support_us" , // Any value that will identify this message.
47
44
content :
48
- //`If you like the new portal, give it a star on <a target="_blank" rel="noopener noreferrer" href="${repository}">GitHub</a>! ⭐️`,
49
- `<strong>Support the Cardano Stack Exchange proposal <a target="_blank" rel="noopener noreferrer" href="https://area51.stackexchange.com/proposals/125174/cardano?referrer=YWI2YzZhYjZmZTVjODFjOTllMDk5YTU2MDk3YjM1NjE2NTRjZjk1NzUzOGVjNjg5ZWEzNTA5NjQ3YjQyNTg4Ne5A16BO-qeH4pXFAL-53fFirIzQZfSEYKOnpbAIMnZD0">by clicking here</a></strong>` ,
50
- backgroundColor : ' #FD7575' , // Defaults to `#fff`.
51
- textColor : ' #ffffff' , // Defaults to `#000`.
45
+ //`If you like the new portal, give it a star on <a target="_blank" rel="noopener noreferrer" href="${repository}">GitHub</a>! ⭐️`,
46
+ `<strong>Support the Cardano Stack Exchange proposal <a target="_blank" rel="noopener noreferrer" href="https://area51.stackexchange.com/proposals/125174/cardano?referrer=YWI2YzZhYjZmZTVjODFjOTllMDk5YTU2MDk3YjM1NjE2NTRjZjk1NzUzOGVjNjg5ZWEzNTA5NjQ3YjQyNTg4Ne5A16BO-qeH4pXFAL-53fFirIzQZfSEYKOnpbAIMnZD0">by clicking here</a></strong>` ,
47
+ backgroundColor : " #FD7575" , // Defaults to `#fff`.
48
+ textColor : " #ffffff" , // Defaults to `#000`.
52
49
isCloseable : true , // Defaults to `true`.
53
50
} ,
54
51
55
-
56
52
// Meta Image that will be used for your meta tag, in particular og:image and twitter:image
57
53
// Relative to your site's "static" directory, cannot be SVGs.
58
- image : 'mg/og-developer-portal.png' ,
59
- metadatas : [ { name : 'twitter:card' , content : 'summary' } ] ,
60
-
54
+ image : "mg/og-developer-portal.png" ,
55
+ metadatas : [ { name : "twitter:card" , content : "summary" } ] ,
61
56
62
57
// Algolia Search
63
58
algolia : {
64
- appId : ' 6QH8YVQXAE' ,
65
- apiKey : ' 6033c09f3af6454c8c25efce0460b84a' ,
66
- indexName : ' developer-portal' ,
59
+ appId : " 6QH8YVQXAE" ,
60
+ apiKey : " 6033c09f3af6454c8c25efce0460b84a" ,
61
+ indexName : " developer-portal" ,
67
62
contextualSearch : true ,
68
63
} ,
69
64
70
65
// Navbar title, logo and items
71
66
navbar : {
72
67
hideOnScroll : false ,
73
- title : ' Developers' ,
68
+ title : " Developers" ,
74
69
logo : {
75
- alt : ' Cardano Logo' ,
76
- src : ' img/cardano-black.svg' ,
77
- srcDark : ' img/cardano-white.svg' ,
70
+ alt : " Cardano Logo" ,
71
+ src : " img/cardano-black.svg" ,
72
+ srcDark : " img/cardano-white.svg" ,
78
73
} ,
79
74
80
75
items : [
81
76
{
82
- to : ' tools' ,
83
- label : ' Tools' ,
84
- position : ' left'
77
+ to : " tools" ,
78
+ label : " Tools" ,
79
+ position : " left" ,
85
80
} ,
86
81
{
87
- to : ' showcase' ,
88
- label : ' Showcase' ,
89
- position : ' left'
82
+ to : " showcase" ,
83
+ label : " Showcase" ,
84
+ position : " left" ,
90
85
} ,
91
86
{
92
- to : ' blog/' ,
93
- label : ' Dev Blog' ,
94
- position : ' left'
87
+ to : " blog/" ,
88
+ label : " Dev Blog" ,
89
+ position : " left" ,
95
90
} ,
96
91
{
97
- href : ' https://docs.cardano.org/en/latest/' ,
98
- label : ' Docs' ,
99
- position : ' left' ,
92
+ href : " https://docs.cardano.org/en/latest/" ,
93
+ label : " Docs" ,
94
+ position : " left" ,
100
95
} ,
101
96
{
102
97
href : `${ repository } ` ,
103
- position : ' right' ,
104
- className : ' header-github-link' ,
98
+ position : " right" ,
99
+ className : " header-github-link" ,
105
100
} ,
106
-
107
101
] ,
108
102
} ,
109
103
footer : {
110
- style : ' dark' ,
104
+ style : " dark" ,
111
105
links : [
112
106
{
113
- title : ' Developer Portal' ,
107
+ title : " Developer Portal" ,
114
108
items : [
115
109
{
116
- label : ' Contributors' ,
117
- to : ' docs/portal-contributors/' ,
110
+ label : " Contributors" ,
111
+ to : " docs/portal-contributors/" ,
118
112
} ,
119
113
{
120
- label : ' How to Contribute' ,
121
- to : ' docs/portal-contribute/' ,
114
+ label : " How to Contribute" ,
115
+ to : " docs/portal-contribute/" ,
122
116
} ,
123
117
{
124
- label : ' Style Guide' ,
125
- to : ' docs/portal-style-guide' ,
118
+ label : " Style Guide" ,
119
+ to : " docs/portal-style-guide" ,
126
120
} ,
127
-
128
121
] ,
129
122
} ,
130
123
{
131
- title : ' Developer Community' ,
124
+ title : " Developer Community" ,
132
125
items : [
133
126
{
134
- label : ' Cardano Forum' ,
135
- href : ' https://forum.cardano.org/c/developers/29' ,
127
+ label : " Cardano Forum" ,
128
+ href : " https://forum.cardano.org/c/developers/29" ,
136
129
} ,
137
130
{
138
- label : ' Discord' ,
139
- href : ' https://discord.gg/kfATXEENPD' ,
131
+ label : " Discord" ,
132
+ href : " https://discord.gg/kfATXEENPD" ,
140
133
} ,
141
134
{
142
- label : ' Reddit' ,
143
- href : ' https://www.reddit.com/r/CardanoDevelopers/' ,
135
+ label : " Reddit" ,
136
+ href : " https://www.reddit.com/r/CardanoDevelopers/" ,
144
137
} ,
145
138
{
146
- label : ' Stack Exchange' ,
147
- href : ' https://area51.stackexchange.com/proposals/125174/cardano' ,
139
+ label : " Stack Exchange" ,
140
+ href : " https://area51.stackexchange.com/proposals/125174/cardano" ,
148
141
} ,
149
142
{
150
- label : 'Slack' ,
151
- href : 'https://join.slack.com/t/iohkdevcommunity/shared_invite/zt-mdvb06fr-8Tv8pjl~iR0~lGrimqK_yg' ,
143
+ label : "Slack" ,
144
+ href :
145
+ "https://join.slack.com/t/iohkdevcommunity/shared_invite/zt-mdvb06fr-8Tv8pjl~iR0~lGrimqK_yg" ,
152
146
} ,
153
147
{
154
- label : ' Telegram' ,
155
- href : ' https://t.me/CardanoDevelopersOfficial' ,
148
+ label : " Telegram" ,
149
+ href : " https://t.me/CardanoDevelopersOfficial" ,
156
150
} ,
157
151
] ,
158
152
} ,
159
153
{
160
- title : ' More about Cardano' ,
154
+ title : " More about Cardano" ,
161
155
items : [
162
156
{
163
- label : ' Cardano Enterprise' ,
164
- href : ' https://cardano.org/enterprise' ,
157
+ label : " Cardano Enterprise" ,
158
+ href : " https://cardano.org/enterprise" ,
165
159
} ,
166
160
{
167
- label : ' Cardano Foundation' ,
168
- href : ' https://www.cardanofoundation.org' ,
161
+ label : " Cardano Foundation" ,
162
+ href : " https://www.cardanofoundation.org" ,
169
163
} ,
170
164
{
171
- label : ' Development Updates' ,
172
- to : ' https://cardanoupdates.com' ,
165
+ label : " Development Updates" ,
166
+ to : " https://cardanoupdates.com" ,
173
167
} ,
174
168
{
175
- label : ' Ouroboros Protocol' ,
176
- to : ' https://cardano.org/ouroboros/' ,
169
+ label : " Ouroboros Protocol" ,
170
+ to : " https://cardano.org/ouroboros/" ,
177
171
} ,
178
172
{
179
- label : ' Why Cardano?' ,
180
- href : ' https://why.cardano.org' ,
173
+ label : " Why Cardano?" ,
174
+ href : " https://why.cardano.org" ,
181
175
} ,
182
176
] ,
183
177
} ,
@@ -189,7 +183,7 @@ module.exports = {
189
183
} ,
190
184
plugins : [
191
185
[
192
- ' @docusaurus/plugin-ideal-image' ,
186
+ " @docusaurus/plugin-ideal-image" ,
193
187
{
194
188
quality : 70 ,
195
189
max : 1030 , // max resized image's size.
@@ -200,22 +194,20 @@ module.exports = {
200
194
] ,
201
195
presets : [
202
196
[
203
- ' @docusaurus/preset-classic' ,
197
+ " @docusaurus/preset-classic" ,
204
198
{
205
199
docs : {
206
200
showLastUpdateAuthor : true ,
207
201
showLastUpdateTime : true ,
208
- sidebarPath : require . resolve ( './sidebars.js' ) ,
209
- editUrl :
210
- `${ repository } /edit/${ branch } ` ,
202
+ sidebarPath : require . resolve ( "./sidebars.js" ) ,
203
+ editUrl : `${ repository } /edit/${ branch } ` ,
211
204
} ,
212
205
blog : {
213
206
showReadingTime : true ,
214
- editUrl :
215
- `${ repository } /edit/${ branch } ` ,
207
+ editUrl : `${ repository } /edit/${ branch } ` ,
216
208
} ,
217
209
theme : {
218
- customCss : require . resolve ( ' ./src/css/custom.css' ) ,
210
+ customCss : require . resolve ( " ./src/css/custom.css" ) ,
219
211
} ,
220
212
} ,
221
213
] ,
0 commit comments