forked from microsoft/data-science-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
89 lines (87 loc) · 2.63 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
const siteUrl = "https://microsoft.github.io"
const pathPrefix = "/data-science-editor"
const SITE_TITLE = `Data Science Editor.`
const SITE_DESCRIPTION = `Data Science Editor.`
module.exports = {
trailingSlash: "always",
siteMetadata: {
title: SITE_TITLE,
description: SITE_DESCRIPTION,
author: `Microsoft`,
siteUrl: siteUrl,
},
pathPrefix: pathPrefix,
flags: {
PRESERVE_FILE_DOWNLOAD_CACHE: true,
DEV_WEBPACK_CACHE: true,
FAST_DEV: true,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages`,
},
},
`gatsby-theme-material-ui`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.mdx`, `.md`],
mdxOptions: {
remarkPlugins: [require(`remark-gfm`)],
},
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-autolink-headers`,
options: {
enableCustomId: true
}
},
"gatsby-remark-external-links",
"gatsby-remark-static-images",
"gatsby-remark-copy-linked-files",
].filter(plugin => !!plugin),
},
},
"gatsby-plugin-sitemap",
{
resolve: `gatsby-plugin-manifest`,
options: {
name: SITE_TITLE,
short_name: `Data Science Editor`,
description: SITE_DESCRIPTION,
start_url: `/`,
background_color: `#ffc400`,
theme_color: `#ffc400`,
display: `standalone`,
cache_busting_mode: "none",
icon: `src/images/favicon.svg`,
crossOrigin: `use-credentials`,
},
},
{
resolve: `gatsby-plugin-offline`,
options: {
precachePages: [`/*`],
},
},
"gatsby-plugin-robots-txt",
"gatsby-plugin-meta-redirect",
"gatsby-plugin-webpack-bundle-analyser-v2",
{
resolve: `gatsby-plugin-catch-links`,
},
],
}