-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
113 lines (112 loc) · 3 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
require('dotenv').config()
const config = require('./src/content/meta/config')
module.exports = {
siteMetadata: {
title: config.siteTitle,
siteUrl: config.siteUrl,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/content/images/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `parts`,
path: `${__dirname}/src/content/parts/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/content/pages/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `reference`,
path: `${__dirname}/src/content/docs/reference`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `api`,
path: `${__dirname}/src/content/docs/api`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `sdk/android`,
path: `${__dirname}/src/content/docs/sdk/android`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `sdk/ios`,
path: `${__dirname}/src/content/docs/sdk/ios`,
},
},
`gatsby-plugin-resolve-src`,
`gatsby-plugin-catch-links`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-autolink-headers`,
options: {
offsetY: `50`,
icon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>`,
},
},
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 690,
linkImagesToOriginal: false,
},
},
`gatsby-remark-responsive-iframe`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
`gatsby-remark-external-links`,
{
resolve: 'gatsby-remark-emojis',
options: {
active: true,
class: 'emojiIcon',
size: 64,
styles: {
display: 'inline',
width: '22px',
'vertical-align': 'top',
},
},
},
`gatsby-plugin-emotion`,
{
resolve: `gatsby-remark-prismjs`
},
],
},
},
/* {
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GOOGLE_ANALYTICS_ID,
},
},*/
// `gatsby-plugin-sitemap`
],
}