-
Notifications
You must be signed in to change notification settings - Fork 8
/
main.config.ts
328 lines (325 loc) · 9.48 KB
/
main.config.ts
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
import Config from './config';
import blogService from './services/Blogs';
import githubService from './services/GitHub';
const config: Config = {
render: 'static',
meta: {
title: 'OpenSource @ MapleLabs',
description:
'Get involved in open source communities, discover projects and learn about MapleLabs opensource program.',
robots: 'index, follow',
favicon: '/favicon.png',
},
header: {
id: 'index-header',
template: 'ElectricGorilla',
data: {
id: 'nav',
scrollSpySelector: 'intro-section',
logo: {
darkMode: '/images/dark-logo.svg',
lightMode: '/images/light-logo.svg',
},
menu: [
{
title: 'Projects',
path: '#projects',
},
{
title: 'Getting Started',
path: '#getstarted',
},
{
title: 'Blogs',
path: '#blogs',
},
],
},
},
body: {
sections: [
{
id: 'intro-section',
template: 'AggressiveClownfish',
data: {
id: 'intro-section',
title1: 'Embracing Collaboration.',
title2: 'Embracing Open Source.',
description:
"We at MapleLabs believe open source solves real-world problems. We are a passionate, open-minded and focused group of software enthusiasts pushing boundaries with an aim to contribute back to open-source by developing value adding applications, tools, plugins, utilities, etc relevant to company's product/services' offerings.",
button: {
text: 'MapleLabs on Github',
icon: 'github',
url: 'https://github.com/maplelabs',
},
backgroundImage: '../../../images/background_intro.svg',
},
},
{
id: 'featured-projects',
template: 'GoodFox',
data: {
id: 'projects',
title: 'Featured Projects',
columnHeaders: [
{
name: 'Project Name',
className: 'uk-width-large',
},
{
name: 'Tech Stack',
className: 'uk-width-small',
},
{
name: 'Category',
className: 'uk-width-small',
},
{
name: 'Tags',
className: 'uk-width-small',
},
{
name: 'Contributors',
},
],
},
dynamicData: async () => {
const featuredProjects = await githubService.fetchProjects({
filterTopics: ['featured', 'contribution-welcome'],
});
const listItems = featuredProjects.map((project) => ({
title: project.name || project.login,
description: project.description,
link: project.html_url,
languages: project.languages || [],
icon: project.icon,
tags: project.topics,
categories: [],
contributors:
project.top_contributors?.map((user) => ({
name: user.login,
src: user.avatar_url,
link: user.html_url,
})) ?? [],
}));
return { listItems };
},
},
{
id: 'discord',
template: 'SpotlessAntelope',
data: {
id: 'getstarted',
title: 'Getting Started',
subtitle:
'You can get started by choosing a project you want to use/contribute-to and go to the respective github link.',
description:
'It is easy to get started if you join our open source discord community',
button: {
text: 'Click to join',
url: 'https://discord.gg/XQudKrsmdk',
},
image: {
url: '/images/questions.svg',
},
},
},
{
id: 'featured-blogs',
template: 'UltimateCardinal',
data: {
id: 'blogs',
title: 'Blogs',
},
dynamicData: async () => {
const cards = blogService
.getBlogs()
.map(({ path, slug, frontMatter }) => ({
title: frontMatter.title,
thumbnail: frontMatter.thumbnail || frontMatter.banner,
author: frontMatter.author,
authorAvatar: frontMatter.authorAvatar,
slug,
path,
}));
return { cards };
},
},
{
id: 'top-contributors',
template: 'RainyCoral',
data: {
id: 'top-contributors',
title: 'Top Contributors',
description:
'Meet our contributors who believe in the notion that open source brings the best out in people. Join us in building the future with open source.',
},
dynamicData: async () => {
const projects = await githubService.fetchProjects({
filterTopics: ['contributions-welcome'],
});
const topContributors = await githubService.fetchTopContributors(
projects
);
const tiles =
topContributors?.map((item) => ({
id: item.login,
title: item.name || item.login,
subtitle: item._repo[0],
avatar: item.avatar_url,
link: {
icon: 'github',
text: 'View on GitHub',
url: item.html_url,
},
})) ?? [];
return { tiles };
},
},
{
id: 'featured-videos',
template: 'MiniatureAardwolf',
data: {
id: 'featured-videos',
title: 'Featured Videos',
medias: [
{
url: 'https://www.youtube.com/watch?v=JLmei2IUDm0',
text: 'What, Why And How Of Open Source',
thumbnail: '/images/videos/what-why-how-opensource.svg',
},
],
},
},
],
},
footer: {
id: 'footer',
template: 'SmallDragon',
data: {
id: 'footer',
copyRight: `Copyright © 2023 MapleLabs. All rights reserved.`,
address: [
{
name: 'INDIA OFFICE',
address:
'152, Siddhi Vinayak Towers, Sarjapur - Marathahalli Road, Jakkasandra, 1st Block, Koramangala, Bangalore – 560034',
},
{
name: 'USA OFFICE',
address: '1248 Reamwood Ave, Sunnyvale, CA 94089',
},
],
terms: [
{
text: 'Privacy Policy',
url: 'https://www.maplelabs.com/privacy_policy.html',
},
{
text: 'Terms of Use',
url: 'https://www.maplelabs.com/terms.html',
},
{
text: 'Cookie Policy',
url: 'https://www.maplelabs.com/cookies.html',
},
],
subSections: [
{
title: 'SERVICES',
list: [
{
text: 'Performance Engineering',
url: 'https://www.maplelabs.com/performance-engineering.html',
},
{ text: 'Dev Ops', url: 'https://www.maplelabs.com/devops.html' },
{
text: 'Site Reliability Engineering',
url: 'https://www.maplelabs.com/sreops.html',
},
{
text: 'Implementation Services',
url: 'https://www.maplelabs.com/services.html',
},
],
},
{
title: 'COMPANY',
list: [
{
text: 'Our Products',
url: 'https://www.snappyflow.io/',
},
{
text: 'What we do?',
url: 'https://www.maplelabs.com/index.html',
},
{
text: 'Careers',
url: 'https://jobs.maplelabs.com/jobs/Careers',
},
{
text: 'Contact Us',
url: 'https://www.maplelabs.com/getstarted.html',
},
],
},
],
social: {
title: 'CONNECT SOCIAL',
list: [
{
text: 'linkedin',
url: 'https://in.linkedin.com/company/maplelabs-cloud-solutions',
},
{
text: 'instagram',
url: 'https://www.instagram.com/maplelabs',
},
],
},
},
},
pages: {
blogs: {
pages: async () => {
const blogs = blogService.getBlogs();
const pages = {};
blogs.forEach(
(blog) =>
(pages[blog.slug] = {
header: {
id: `header-${blog.slug}`,
template: 'ElectricGorilla',
data: {
id: 'nav',
logo: {
darkMode: '/images/dark-logo.svg',
lightMode: '/images/light-logo.svg',
},
menu: [],
},
},
body: {
sections: [
{
id: `blog-content-${blog.slug}`,
template: 'AnnualFish',
dynamicData: async ({ params: { slug } }) => {
const { frontMatter, content } =
blogService.getBlogContents(slug.join('/'));
const recentBlogs =
blogService.getRecentBlogs(frontMatter);
return { frontMatter, content, recentBlogs };
},
},
],
},
})
);
return pages;
},
},
},
};
export default config;