Skip to content

Commit 6735701

Browse files
committed
Update code styling
1 parent 112a6a1 commit 6735701

File tree

3 files changed

+166
-186
lines changed

3 files changed

+166
-186
lines changed

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
2+
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
33
};

docusaurus.config.js

+85-93
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
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";
64

75
// Docusaurus Config
86
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",
1816
customFields: {
19-
repository : `${repository}`,
20-
branch : `${branch}`,
17+
repository: `${repository}`,
18+
branch: `${branch}`,
2119
},
2220
themeConfig: {
23-
2421
// Docs Sidebar
2522
hideableSidebar: true,
2623

@@ -30,154 +27,151 @@ module.exports = {
3027
// with true defaultMode is overridden by user system preferences.
3128
respectPrefersColorScheme: true,
3229
switchConfig: {
33-
darkIcon: '🌙',
30+
darkIcon: "🌙",
3431
darkIconStyle: {
35-
marginLeft: '2px',
32+
marginLeft: "2px",
3633
},
37-
lightIcon: '☀️',
34+
lightIcon: "☀️",
3835
lightIconStyle: {
39-
marginLeft: '1px',
36+
marginLeft: "1px",
4037
},
4138
},
4239
},
4340

4441
// Announcement Bar
4542
announcementBar: {
46-
id: 'support_us', // Any value that will identify this message.
43+
id: "support_us", // Any value that will identify this message.
4744
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`.
5249
isCloseable: true, // Defaults to `true`.
5350
},
5451

55-
5652
// Meta Image that will be used for your meta tag, in particular og:image and twitter:image
5753
// 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" }],
6156

6257
// Algolia Search
6358
algolia: {
64-
appId: '6QH8YVQXAE',
65-
apiKey: '6033c09f3af6454c8c25efce0460b84a',
66-
indexName: 'developer-portal',
59+
appId: "6QH8YVQXAE",
60+
apiKey: "6033c09f3af6454c8c25efce0460b84a",
61+
indexName: "developer-portal",
6762
contextualSearch: true,
6863
},
6964

7065
// Navbar title, logo and items
7166
navbar: {
7267
hideOnScroll: false,
73-
title: 'Developers',
68+
title: "Developers",
7469
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",
7873
},
7974

8075
items: [
8176
{
82-
to: 'tools',
83-
label: 'Tools',
84-
position: 'left'
77+
to: "tools",
78+
label: "Tools",
79+
position: "left",
8580
},
8681
{
87-
to: 'showcase',
88-
label: 'Showcase',
89-
position: 'left'
82+
to: "showcase",
83+
label: "Showcase",
84+
position: "left",
9085
},
9186
{
92-
to: 'blog/',
93-
label: 'Dev Blog',
94-
position: 'left'
87+
to: "blog/",
88+
label: "Dev Blog",
89+
position: "left",
9590
},
9691
{
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",
10095
},
10196
{
10297
href: `${repository}`,
103-
position: 'right',
104-
className: 'header-github-link',
98+
position: "right",
99+
className: "header-github-link",
105100
},
106-
107101
],
108102
},
109103
footer: {
110-
style: 'dark',
104+
style: "dark",
111105
links: [
112106
{
113-
title: 'Developer Portal',
107+
title: "Developer Portal",
114108
items: [
115109
{
116-
label: 'Contributors',
117-
to: 'docs/portal-contributors/',
110+
label: "Contributors",
111+
to: "docs/portal-contributors/",
118112
},
119113
{
120-
label: 'How to Contribute',
121-
to: 'docs/portal-contribute/',
114+
label: "How to Contribute",
115+
to: "docs/portal-contribute/",
122116
},
123117
{
124-
label: 'Style Guide',
125-
to: 'docs/portal-style-guide',
118+
label: "Style Guide",
119+
to: "docs/portal-style-guide",
126120
},
127-
128121
],
129122
},
130123
{
131-
title: 'Developer Community',
124+
title: "Developer Community",
132125
items: [
133126
{
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",
136129
},
137130
{
138-
label: 'Discord',
139-
href: 'https://discord.gg/kfATXEENPD',
131+
label: "Discord",
132+
href: "https://discord.gg/kfATXEENPD",
140133
},
141134
{
142-
label: 'Reddit',
143-
href: 'https://www.reddit.com/r/CardanoDevelopers/',
135+
label: "Reddit",
136+
href: "https://www.reddit.com/r/CardanoDevelopers/",
144137
},
145138
{
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",
148141
},
149142
{
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",
152146
},
153147
{
154-
label: 'Telegram',
155-
href: 'https://t.me/CardanoDevelopersOfficial',
148+
label: "Telegram",
149+
href: "https://t.me/CardanoDevelopersOfficial",
156150
},
157151
],
158152
},
159153
{
160-
title: 'More about Cardano',
154+
title: "More about Cardano",
161155
items: [
162156
{
163-
label: 'Cardano Enterprise',
164-
href: 'https://cardano.org/enterprise',
157+
label: "Cardano Enterprise",
158+
href: "https://cardano.org/enterprise",
165159
},
166160
{
167-
label: 'Cardano Foundation',
168-
href: 'https://www.cardanofoundation.org',
161+
label: "Cardano Foundation",
162+
href: "https://www.cardanofoundation.org",
169163
},
170164
{
171-
label: 'Development Updates',
172-
to: 'https://cardanoupdates.com',
165+
label: "Development Updates",
166+
to: "https://cardanoupdates.com",
173167
},
174168
{
175-
label: 'Ouroboros Protocol',
176-
to: 'https://cardano.org/ouroboros/',
169+
label: "Ouroboros Protocol",
170+
to: "https://cardano.org/ouroboros/",
177171
},
178172
{
179-
label: 'Why Cardano?',
180-
href: 'https://why.cardano.org',
173+
label: "Why Cardano?",
174+
href: "https://why.cardano.org",
181175
},
182176
],
183177
},
@@ -189,7 +183,7 @@ module.exports = {
189183
},
190184
plugins: [
191185
[
192-
'@docusaurus/plugin-ideal-image',
186+
"@docusaurus/plugin-ideal-image",
193187
{
194188
quality: 70,
195189
max: 1030, // max resized image's size.
@@ -200,22 +194,20 @@ module.exports = {
200194
],
201195
presets: [
202196
[
203-
'@docusaurus/preset-classic',
197+
"@docusaurus/preset-classic",
204198
{
205199
docs: {
206200
showLastUpdateAuthor: true,
207201
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}`,
211204
},
212205
blog: {
213206
showReadingTime: true,
214-
editUrl:
215-
`${repository}/edit/${branch}`,
207+
editUrl: `${repository}/edit/${branch}`,
216208
},
217209
theme: {
218-
customCss: require.resolve('./src/css/custom.css'),
210+
customCss: require.resolve("./src/css/custom.css"),
219211
},
220212
},
221213
],

0 commit comments

Comments
 (0)