forked from kyma-project/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
executable file
·96 lines (95 loc) · 2.23 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
const siteMetadata = require("./config").siteMetadata;
module.exports = {
siteMetadata,
plugins: [
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-plugin-styled-components",
options: {
ssr: false,
displayName: true,
},
},
"gatsby-plugin-lodash",
"gatsby-plugin-typescript",
{
resolve: "gatsby-source-filesystem",
options: {
name: "content",
path: `${__dirname}/content/`,
},
},
{
resolve: "gatsby-plugin-copy-files",
options: {
source: `${__dirname}/content`,
destination: "/assets",
extensions: ["jpeg", "jpg", "gif", "png", "svg", "json", "yaml", "yml"],
// add regex possibility
excludeDirs: ["i18n"],
excludeFiles: [
"docs/versions.json",
"docs.config.json",
"manifest.yaml",
"events.yaml",
],
},
},
{
resolve: "gatsby-plugin-anchor-behavior",
options: {
paths: {
"/docs/": {
defaultOffset: 16,
mobileOffset: 74,
},
"/roadmap/": {
defaultOffset: 0,
mobileOffset: 0,
},
},
defaultOffset: 16,
mobileOffset: 74,
mobileOffsetInclude: ["/docs"],
},
},
"gatsby-plugin-banner-slides-yml",
"gatsby-plugin-early-adopters-yml",
{
resolve: "gatsby-transformer-remark",
options: {
excerpt_separator: `<!-- overview -->`,
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: "Kyma",
short_name: "Kyma",
start_url: "/",
background_color: "#fff",
theme_color: "#0073e6",
display: "standalone",
icon: "static/android-chrome-512x512.png",
},
},
{
resolve: `gatsby-plugin-gtag`,
options: {
trackingId: "UA-122665881-1",
head: true,
anonymize: true,
},
},
`gatsby-plugin-sitemap`,
`gatsby-plugin-netlify`,
`gatsby-plugin-netlify-cache`,
{
resolve: `gatsby-plugin-env-variables`,
options: {
whitelist: ["GOOGLE_CSE", "ALGOLIA_API_KEY", "ALGOLIA_INDEX_NAME"],
},
},
],
pathPrefix: "/website",
};