forked from leic-pt/resumos-leic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
151 lines (151 loc) · 4.86 KB
/
gatsby-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
module.exports = {
siteMetadata: {
title: `Resumos LEIC-A`,
shortTitle: `Resumos LEIC-A`,
description: `Resumos das UCs de LEIC-A do IST`,
siteUrl: 'https://resumos.leic.pt',
sidebarSections: [
{ key: 'topLevelPage' },
{ key: 'content', name: '📝 Conteúdo' },
{ key: 'labsProg', name: '👨💻 Laboratórios' },
{ key: 'cheatsheets', name: '📃 Cheat Sheets' },
{ key: 'misc', name: 'Misc' },
{ key: 'exercises', name: '✏️ Exercícios' },
{ key: 'tools', name: '🛠 Ferramentas' },
{ key: 'guides', name: '📚 Guias' },
],
navbar: {
siteTitle: 'Resumos LEIC-A',
links: [
{
title: 'IST LEIC-A',
href: 'https://fenix.tecnico.ulisboa.pt/cursos/leic-a',
},
{
title: 'GitHub',
href: 'https://github.com/leic-pt/resumos-leic',
},
],
},
footer: {
owner: {
name: 'Diogo Correia',
website: 'https://diogotc.com',
},
githubLink: 'https://github.com/leic-pt/resumos-leic',
contributionGuideLink: 'https://leic-pt.github.io/docs',
contributorsLink: 'https://github.com/leic-pt/resumos-leic/graphs/contributors',
vercelLink: 'https://vercel.com/?utm_source=leic-pt&utm_campaign=oss',
},
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/content`,
},
},
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`gatsby-remark-color`,
`gatsby-remark-pre-image-data`,
{
resolve: `gatsby-remark-images`,
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 740,
backgroundColor: 'transparent',
withWebp: true,
showCaptions: ['title'],
tracedSVG: true,
quality: 80,
},
},
`gatsby-remark-post-image-data`,
`gatsby-remark-directive`,
{
resolve: `gatsby-remark-katex`,
options: {
// Add any KaTeX options from https://github.com/KaTeX/KaTeX/blob/master/docs/options.md here
strict: `ignore`,
macros: {
'\\d': '\\mathop{}\\!\\mathrm d',
'\\1': '1\\!\\!1',
'\\Q': '\\mathbb{Q}',
'\\C': '\\mathbb{C}',
'\\car': '\\operatorname{car}',
'\\ondiv': '\\operatorname{div}',
'\\rot': '\\operatorname{rot}',
'\\augmatrix':
'\\left[\\hspace{-5pt}\\begin{array}{#1}#2\\end{array}\\hspace{-5pt}\\right]',
'\\lapt': '\\mathcal{L}\\left\\{#1\\right\\}', // Laplace Transfomation
'\\smartcolor': '\\htmlClass{md-color--#1}{#2}', // Handle colors on light/dark mode
'\\op': '\\operatorname{#1}',
'\\indep': '\\perp \\!\\!\\! \\perp',
'\\iid': '\\stackrel{iid}{\\sim}',
'\\sima': '\\stackrel{a}{\\sim}',
},
throwOnError: false,
trust: (context) =>
context.command === '\\htmlClass' && /md-color--[a-zA-Z]+/.test(context.class),
},
},
{
resolve: `gatsby-remark-table-of-contents`,
options: {
tight: true,
},
},
`gatsby-remark-mermaid`,
`gatsby-remark-embed-snippet`,
{
resolve: `gatsby-remark-prismjs`,
options: {
noInlineHighlight: true,
},
},
`gatsby-remark-copy-linked-files`,
`gatsby-remark-autolink-headers`,
`gatsby-remark-external-links`,
],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Resumos LEIC-A`,
short_name: `Resumos LEIC-A`,
start_url: `/`,
background_color: `#1b1b1b`,
theme_color: `#00a0e4`,
display: `standalone`,
icon: `src/images/android-icon-192x192.png`, // This path is relative to the root of the site.
},
},
`gatsby-plugin-use-dark-mode`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-umami`,
options: {
websiteId: '711c662a-45bd-41e0-bf82-302096490211',
srcUrl: 'https://umami.diogotc.com/umami.js',
includeInDevelopment: false,
autoTrack: true,
respectDoNotTrack: true,
},
},
{
resolve: `gatsby-plugin-remove-serviceworker`,
options: {
filename: 'service-worker.js',
},
},
],
};