-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathgatsby-config.js
84 lines (84 loc) · 2.26 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
module.exports = {
siteMetadata: {
title: 'OpenPitrix',
keywords: 'openpitrix, openpitrix.io, multi-cloud, application management, kubernetes',
version: '0.4',
description: 'openpitrix official site'
},
plugins: [
'gatsby-plugin-styled-components',
'gatsby-plugin-sass',
'gatsby-plugin-react-helmet',
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
// {
// resolve: "gatsby-remark-images",
// options: {
// maxWidth: 690
// }
// },
{
resolve: "gatsby-remark-responsive-iframe"
},
"gatsby-remark-prismjs",
"gatsby-remark-copy-linked-files",
"gatsby-remark-autolink-headers",
"gatsby-remark-format"
]
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: `docs`,
path: `${__dirname}/docs/`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: `blogs`,
path: `${__dirname}/blogs/`,
},
},
{
resolve: 'gatsby-plugin-svgr',
options: {
include: /assets/
},
},
{
resolve: "gatsby-plugin-nprogress",
options: {
color: '#8454cd',
showSpinner: true
}
},
{
resolve: "gatsby-plugin-no-sourcemaps",
},
// "gatsby-plugin-sharp",
"gatsby-plugin-catch-links",
"gatsby-transformer-json",
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "OpenPitrix",
short_name: "openpitrix",
start_url: "/",
background_color: "#f9fafb",
theme_color: "#6b37bf",
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
display: "standalone",
icon: "./static/logo.svg", // This path is relative to the root of the site.
// An optional attribute which provides support for CORS check.
// If you do not provide a crossOrigin option, it will skip CORS for manifest.
// Any invalid keyword or empty string defaults to `anonymous`
crossOrigin: `use-credentials`,
},
},
],
}