-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
executable file
·158 lines (158 loc) · 4.13 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
152
153
154
155
156
157
158
module.exports = {
siteMetadata: {
author: '',
description: '',
title: 'Processing',
twitter: 'processingOrg',
facebook: 'processingOrg',
github: 'processingOrg',
medium: 'processingOrg',
url: '',
},
plugins: [
{
resolve: `gatsby-source-twitter`,
options: {
q: `@processingOrg`,
count: 5,
credentials: {
consumer_key: 'cOZsubLVAMN59HXtzAhpgLvHO',
consumer_secret: 'jC6dpuZ84dJLHFqtVY4aoqVuNG9gdbNYouqlUiJFnp3cRG1ZHg',
bearer_token:
'AAAAAAAAAAAAAAAAAAAAAAf26AAAAAAA8HB4M75us%2FysAYucOonFiZbOJeQ%3DJB90KfZLEb72stffB0CeqO31tshjw4dXOOP5MeFZmG3UPMVPOb',
},
tweet_mode: 'compat',
},
},
{
resolve: 'gatsby-source-github',
options: {
headers: {
Authorization: `Bearer ${process.env.GIT_ACCESS_TOKEN}`,
},
queries: [
`{
repository(owner: "kirittanna", name: "pf2018") {
issues(last: 5, states: OPEN) {
edges {
node {
id
author {
url
}
title
url
}
}
}
}
}`,
],
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content`,
name: 'markdown-pages',
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: 'gatsby-remark-embed-video',
options: {
width: 800,
},
},
{
resolve: 'gatsby-remark-embed-snippet',
options: {
classPrefix: 'language-',
// Example code links are relative to this dir.
directory: `${__dirname}/public/assets/`,
},
},
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: 'language-',
aliases: {
pde: 'processing',
},
},
},
{
resolve: `gatsby-remark-responsive-image`,
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: 590,
},
},
'gatsby-remark-copy-linked-files',
'gatsby-remark-responsive-iframe',
],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `img`,
path: `${__dirname}/public/assets/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `code`,
path: `${__dirname}/public/code/`,
},
},
{
resolve: `gatsby-transformer-code`,
options: {
name: `code`,
extensions: ['pde', 'js'],
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: `@andrew-codes/gatsby-plugin-elasticlunr-search`,
options: {
// Fields to index
fields: ['title', 'path', 'body'],
// How to resolve each field's value for a supported node type
resolvers: {
// For any node of type MarkdownRemark, list how to resolve the fields' values
MarkdownRemark: {
title: node => node.frontmatter.title,
path: node => node.frontmatter.path,
body: node => node.html,
},
},
},
},
`gatsby-plugin-remove-trailing-slashes`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
//trackingId: `ADD YOUR TRACKING ID HERE`,
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-netlify-cms`,
/*options: {
// One convention is to place your Netlify CMS customization code in a
// `src/cms` directory.
modulePath: `${__dirname}/src/cms/cms.js`,
},*/
},
],
}