-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
93 lines (92 loc) · 2.38 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
require("dotenv").config();
const config = require("./config");
const plugins = [
'gatsby-plugin-sitemap',
'gatsby-plugin-sharp',
'gatsby-plugin-catch-links',
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/templates/docs.js`)
}
},
'gatsby-plugin-emotion',
'gatsby-plugin-react-helmet',
{
resolve: "gatsby-source-filesystem",
options: {
name: "docs",
path: `${__dirname}/content/`
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "docs",
path: `${__dirname}/images/`
}
},
{
resolve: 'gatsby-plugin-mdx',
options: {
gatsbyRemarkPlugins: [
{
resolve: "gatsby-remark-images",
options: {
maxWidth: 1035,
}
},
'gatsby-remark-copy-linked-files',
'gatsby-remark-katex',
'gatsby-remark-relative-images',
],
extensions: [".mdx", ".md"]
}
},
{
resolve: `gatsby-plugin-gdpr-cookies`,
options: {
googleAnalytics: {
trackingId: 'UA-187924281-1',
cookieName: 'gatsby-gdpr-google-analytics', // default
// Setting this parameter is optional
anonymize: true
},
googleTagManager: {
trackingId: '', // leave empty if you want to disable the tracker
cookieName: 'gatsby-gdpr-google-tagmanager', // default
dataLayerName: 'dataLayer', // default
},
facebookPixel: {
pixelId: '', // leave empty if you want to disable the tracker
cookieName: 'gatsby-gdpr-facebook-pixel', // default
},
// Defines the environments where the tracking should be available - default is ["production"]
// environments: ['production', 'development']
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
icon: `images/favicon.png`,
name: `Robotics Explained`,
short_name: `RobExpl`,
start_url: `/`,
background_color: `#f7f0eb`,
theme_color: `#a2466c`,
display: `standalone`,
}
},
];
module.exports = {
pathPrefix: '/',
siteMetadata: {
title: 'Robotics Explained | Robot Course',
description: 'A course about robotics',
docsLocation: config.siteMetadata.docsLocation,
ogImage: config.siteMetadata.ogImage,
favicon: 'images/favicon.png',
siteUrl: 'https://robotics-explained.com',
},
plugins: plugins
};