-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.mjs
188 lines (182 loc) · 4.8 KB
/
gatsby-config.mjs
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
import { createRequire } from 'module';
import remarkGfm from 'remark-gfm';
import remarkExternalLinks from 'remark-external-links';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
const require = createRequire(import.meta.url);
const pkg = require('./package.json');
const config = {
siteMetadata: {
siteUrl: 'https://satsummit.io',
title: 'SatSummit',
subtitle: `Satellite data for global development`,
description: `SatSummit convenes leaders in the satellite industry and experts in global development for presentations and in-depth conversations on solving the world's most critical development challenges with satellite data.`,
author: {
name: `Development Seed & DevGlobal`
},
social: {
twitter: `@sat_summit`
}
},
// More easily incorporate content into your pages through automatic
// TypeScript type generation and better GraphQL IntelliSense. If you use
// VSCode you can also use the GraphQL plugin Learn more at:
// https://gatsby.dev/graphql-typegen
graphqlTypegen: true,
plugins: [
// {
// resolve: 'gatsby-plugin-google-tagmanager',
// options: {
// id: 'GTM-5NPWQ998'
// }
// },
{
resolve: `gatsby-plugin-gdpr-cookies`,
options: {
environments: ['production', 'development'],
googleTagManager: {
trackingId: 'GTM-5NPWQ998'
}
}
},
'gatsby-plugin-image',
'gatsby-transformer-yaml-full',
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: [`.md`, `.mdx`],
gatsbyRemarkPlugins: [
'gatsby-remark-copy-linked-files',
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1200,
linkImagesToOriginal: false,
quality: 75
}
}
],
mdxOptions: {
remarkPlugins: [
// Add GitHub Flavored Markdown (GFM) support
remarkGfm,
// To pass options, use a 2-element array with the
// configuration in an object in the second element
[remarkExternalLinks, { target: false }]
],
rehypePlugins: [
// Generate heading ids for rehype-autolink-headings
rehypeSlug,
// To pass options, use a 2-element array with the
// configuration in an object in the second element
[
rehypeAutolinkHeadings,
{ behavior: `wrap`, properties: { class: 'anchor-heading' } }
]
]
}
}
},
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: '@chakra-ui/gatsby-plugin',
options: {
/**
* @property {boolean} [resetCSS=true]
* if false, this plugin will not use `<CSSReset />
*/
resetCSS: true,
/**
* @property {number} [portalZIndex=undefined]
* The z-index to apply to all portal nodes. This is useful
* if your app uses a lot z-index to position elements.
*/
portalZIndex: undefined
}
},
{
resolve: `gatsby-plugin-webfonts`,
options: {
fonts: {
google2: [
{
family: 'Barlow',
axes: 'ital,wght@0,400;0,700;1,400;1,700'
},
{
family: 'Barlow Condensed',
axes: 'ital,wght@0,500;0,600;1,600;1,700'
}
]
}
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: './src/images/'
},
__key: 'images'
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: './src/pages/'
},
__key: 'pages'
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'letter',
path: './content/letter/'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: `sponsor`,
path: `./content/sponsors`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: `event`,
path: `./content/events`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: `people`,
path: `./content/people`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: `edition`,
path: `./content/editions`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'updates',
path: './content/updates/'
}
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: pkg.alias,
extensions: ['js', 'jsx', 'ts', 'tsx']
}
}
]
};
export default config;