-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgatsby-config.js
78 lines (78 loc) · 2.74 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
const siteMetadata = require('./site-metadata.json');
module.exports = {
pathPrefix: '/',
siteMetadata: siteMetadata,
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-source-data',
'gatsby-transformer-remark',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: `${__dirname}/src/pages`
}
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: ['gatsby-remark-prismjs-copy-button', 'gatsby-remark-prismjs'],
},
},
{
resolve: 'gatsby-remark-code-buttons',
options: {
// Optional button container class name. Defaults
// to 'gatsby-code-button-container'.
buttonContainerClass: `customButtonContainerClass`,
// Optional button class name. Defaults to 'gatsby-code-button'.
buttonClass: `customButtonClass`,
// Optional button text. Defaults to ''.
buttonText: `customButtonText`,
// Optional svg icon class name. Defaults to 'gatsby-code-button-icon'.
svgIconClass: `customSvgIconClass`,
// Optional svg icon. Defaults to svg string and can be
// replaced with any other valid svg. Use custom classes
// in the svg string and skip `iconClass` option.
svgIcon: `customSvgIcon`,
// Optional tooltip text. Defaults to ''.
tooltipText: `customTooltipText`,
// Optional toaster class name. Defaults to ''.
toasterClass: `customToasterClass`,
// Optional toaster text class name. Defaults to ''.
toasterTextClass: `customToasterTextClass`,
// Optional toaster text. Defaults to ''.
toasterText: 'customToasterText',
// Optional toaster duration. Defaults to 3500.
toasterDuration: 5000
},
},
{
resolve: 'gatsby-plugin-disqus',
options: {
shortname: 'webdevhub-1',
}
},
{
resolve: 'gatsby-plugin-sass',
options: {}
},
{
resolve: 'gatsby-remark-page-creator',
options: {}
},
{
resolve: '@stackbit/gatsby-plugin-menus',
options: {
sourceUrlPath: 'fields.url',
pageContextProperty: 'menus',
},
},
{
resolve: 'gatsby-plugin-disqus',
options: {
shortname: 'webdevhub-1'
}
},
]
};