-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
docusaurus.config.js
278 lines (269 loc) · 15.5 KB
/
docusaurus.config.js
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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
require('dotenv').config()
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'TCET Open Source',
tagline: 'Official Website of TCET Open Source',
favicon: 'img/favicon.ico?v=3',
// Set the production url of your site here
url: 'https://opensource.tcetmumbai.in/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'tcet-opensource', // Usually your GitHub org/user name.
projectName: 'documentation', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
// customFields: {
// 'apiKey': process.env.API_KEY,
// 'appId': process.env.APPLICATION_ID,
// },
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarCollapsible: true,
breadcrumbs: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/tcet-opensource/documentation/edit/main/',
},
blog: {
showReadingTime: true,
blogTitle: "Blogs",
blogDescription: "TCET Open Source Blogging Page",
blogSidebarCount: 'ALL',
postsPerPage: 3,
truncateMarker: /<!--\s*(truncate)\s*-->/,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/banner.png',
docs: {
sidebar: {
autoCollapseCategories: true,
hideable: true,
},
},
metadata: [{name: 'TCET Open Source', content: 'Empowering students via Open Source, in Education'}],
// Do not remove announcement bar. Comment it when not required.
// announcementBar: {
// id: 'MumbaiFoss2.0',
// content:
// 'Biggest FossConference of Mumbai is back, MumbaiFOSS2.0!! <a target="_blank" rel="noopener noreferrer" href="https://indiafoss.net/Mumbai/2024">Register for the event.</a>',
// backgroundColor: '#09b74e',
// textColor: '#FFFFFF',
// isCloseable: true,
// },
navbar: {
hideOnScroll: true,
title: 'TCET Open Source',
logo: {
alt: 'TCET Open Source Logo',
src: 'img/logo.png',
},
items: [
{
type: 'doc',
docId: 'about-tcetopensource',
sidebarId: 'docs',
position: 'left',
label: 'Docs',
},
{to: '/blog', label: 'Blog', position: 'left'},
// {
// label: 'OpenConf 2023',
// href: 'https://openconf.tcetmumbai.in',
// position: 'left',
// },
{
href: 'https://github.com/tcet-opensource',
// label: 'GitHub',
'aria-label': 'GitHub',
html: `<svg
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 496 512"
height="22"
width="22"
xmlns="http://www.w3.org/2000/svg">
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path>
</svg>`,
position: 'right',
},
{
href: 'https://twitter.com/tcetopensource',
// label: 'Twitter',
'aria-label': 'Twitter',
html: `<svg
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 512 512"
height="22" width="22"
xmlns="http://www.w3.org/2000/svg">
<path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path>
</svg>`,
position: 'right',
},
{
href: 'https://discord.gg/r7ZhAREg2M',
// label: 'Discord',
'aria-label': 'Discord',
html: `<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 640 512" height="24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"></path></svg>`,
position: 'right',
},
{
href: 'https://www.instagram.com/tcetopensource/',
// label: 'Instagram',
'aria-label': 'Instagram',
html: `<svg stroke="currentColor" fill="currentColor" stroke-width="0" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 2476 2476" id="instagram"><path d="M825.4 1238c0-227.9 184.7-412.7 412.6-412.7 227.9 0 412.7 184.8 412.7 412.7 0 227.9-184.8 412.7-412.7 412.7-227.9 0-412.6-184.8-412.6-412.7m-223.1 0c0 351.1 284.6 635.7 635.7 635.7s635.7-284.6 635.7-635.7-284.6-635.7-635.7-635.7S602.3 886.9 602.3 1238m1148-660.9c0 82 66.5 148.6 148.6 148.6 82 0 148.6-66.6 148.6-148.6s-66.5-148.5-148.6-148.5-148.6 66.5-148.6 148.5M737.8 2245.7c-120.7-5.5-186.3-25.6-229.9-42.6-57.8-22.5-99-49.3-142.4-92.6-43.3-43.3-70.2-84.5-92.6-142.3-17-43.6-37.1-109.2-42.6-229.9-6-130.5-7.2-169.7-7.2-500.3s1.3-369.7 7.2-500.3c5.5-120.7 25.7-186.2 42.6-229.9 22.5-57.8 49.3-99 92.6-142.4 43.3-43.3 84.5-70.2 142.4-92.6 43.6-17 109.2-37.1 229.9-42.6 130.5-6 169.7-7.2 500.2-7.2 330.6 0 369.7 1.3 500.3 7.2 120.7 5.5 186.2 25.7 229.9 42.6 57.8 22.4 99 49.3 142.4 92.6 43.3 43.3 70.1 84.6 92.6 142.4 17 43.6 37.1 109.2 42.6 229.9 6 130.6 7.2 169.7 7.2 500.3 0 330.5-1.2 369.7-7.2 500.3-5.5 120.7-25.7 186.3-42.6 229.9-22.5 57.8-49.3 99-92.6 142.3-43.3 43.3-84.6 70.1-142.4 92.6-43.6 17-109.2 37.1-229.9 42.6-130.5 6-169.7 7.2-500.3 7.2-330.5 0-369.7-1.2-500.2-7.2M727.6 7.5c-131.8 6-221.8 26.9-300.5 57.5-81.4 31.6-150.4 74-219.3 142.8C139 276.6 96.6 345.6 65 427.1 34.4 505.8 13.5 595.8 7.5 727.6 1.4 859.6 0 901.8 0 1238s1.4 378.4 7.5 510.4c6 131.8 26.9 221.8 57.5 300.5 31.6 81.4 73.9 150.5 142.8 219.3 68.8 68.8 137.8 111.1 219.3 142.8 78.8 30.6 168.7 51.5 300.5 57.5 132.1 6 174.2 7.5 510.4 7.5 336.3 0 378.4-1.4 510.4-7.5 131.8-6 221.8-26.9 300.5-57.5 81.4-31.7 150.4-74 219.3-142.8 68.8-68.8 111.1-137.9 142.8-219.3 30.6-78.7 51.6-168.7 57.5-300.5 6-132.1 7.4-174.2 7.4-510.4s-1.4-378.4-7.4-510.4c-6-131.8-26.9-221.8-57.5-300.5-31.7-81.4-74-150.4-142.8-219.3C2199.4 139 2130.3 96.6 2049 65c-78.8-30.6-168.8-51.6-300.5-57.5-132-6-174.2-7.5-510.4-7.5-336.3 0-378.4 1.4-510.5 7.5"></path></svg>`,
position: 'right',
},
{
href: 'https://www.youtube.com/@tcetopensource',
// label: 'YouTube',
'aria-label': 'YouTube',
html: `<svg
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 600 600"
height="25" width="25"
xmlns="http://www.w3.org/2000/svg">
<path d="M 301.914062 74.960938 L 305.25 74.960938 C 336.074219 75.074219 492.261719 76.199219 534.375 87.523438 C 560.285156 94.558594 580.496094 114.84375 587.4375 140.773438 C 591.226562 155.023438 593.886719 173.886719 595.6875 193.351562 L 596.0625 197.25 L 596.886719 207 L 597.1875 210.898438 C 599.625 245.175781 599.925781 277.273438 599.960938 284.289062 L 599.960938 287.101562 C 599.925781 294.375 599.585938 328.648438 596.886719 364.351562 L 596.585938 368.289062 L 596.25 372.1875 C 594.375 393.636719 591.601562 414.9375 587.4375 430.613281 C 580.515625 456.558594 560.296875 476.847656 534.375 483.863281 C 490.875 495.5625 325.539062 496.386719 302.625 496.425781 L 297.300781 496.425781 C 285.710938 496.425781 237.789062 496.199219 187.539062 494.476562 L 181.164062 494.25 L 177.898438 494.101562 L 171.488281 493.835938 L 165.074219 493.574219 C 123.449219 491.738281 83.8125 488.773438 65.550781 483.824219 C 39.640625 476.820312 19.421875 456.542969 12.488281 430.613281 C 8.324219 414.976562 5.550781 393.636719 3.675781 372.1875 L 3.375 368.25 L 3.074219 364.351562 C 1.222656 338.941406 0.199219 313.476562 0 288 L 0 283.386719 C 0.0742188 275.324219 0.375 247.460938 2.398438 216.710938 L 2.664062 212.851562 L 2.773438 210.898438 L 3.074219 207 L 3.898438 197.25 L 4.273438 193.351562 C 6.074219 173.886719 8.738281 154.988281 12.523438 140.773438 C 19.445312 114.828125 39.667969 94.539062 65.585938 87.523438 C 83.851562 82.648438 123.488281 79.648438 165.113281 77.773438 L 171.488281 77.511719 L 177.9375 77.289062 L 181.164062 77.175781 L 187.574219 76.914062 C 223.265625 75.765625 258.96875 75.125 294.675781 75 L 301.914062 75 Z M 240 195.335938 L 240 376.011719 L 395.886719 285.710938 Z M 240 195.335938"></path>
</svg>`,
position: 'right',
},
{
type: 'search',
position: 'right',
}
],
},
algolia: {
apiKey: '066a2ed9cfc332fb09112a9059ccdbf7',
appId: 'QFLBKAUEYJ',
indexName: 'tcetopensource'
},
footer: {
style: 'dark',
links: [
{
title: 'About',
items: [
{
label: 'TCET Open Source',
to: '/docs/about-tcetopensource',
},
{
label: 'Docs Website',
to: '/docs/projects/docs-site/about-docs',
},
{
label: 'T&P Website',
to: '/docs/projects/tnp-website/about-tnp-website',
},
{
label: 'TCET Linux',
to: '/docs/projects/tcet-linux/about-tcet-linux',
}
],
},
{
title: 'More',
items: [
{
label: 'Blogs',
to: '/blog',
},
{
label: 'Workflows',
to: '/docs/category/workflows',
},
],
},
{
title: 'Community',
items: [
{
label: 'Github',
to: 'https://github.com/tcet-opensource/documentation',
},
{
label: 'Discord',
to: 'https://discord.gg/r7ZhAREg2M',
},
],
},
{
title: 'Connect with us',
items: [
{
label: 'Instagram',
to: "https://www.instagram.com/tcetopensource/ ",
},
{
label: 'Twitter',
to: 'https://twitter.com/tcetopensource',
},
{
label: 'LinkedIn',
to: 'https://www.linkedin.com/company/tcet-opensource/mycompany/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} TCET Open Source.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
plugins: [
async function myPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
],
};
module.exports = config;