This repository has been archived by the owner on Aug 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
gatsby-config.js
106 lines (105 loc) · 2.71 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
97
98
99
100
101
102
103
104
105
106
const i18nConfig = require("./src/config/i18n.js");
const algolia = require("./search-queries.js");
const path = require("path");
module.exports = {
siteMetadata: {
title: "Freesewing beta"
},
plugins: [
"gatsby-plugin-react-helmet",
"gatsby-plugin-catch-links",
"gatsby-plugin-sass",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: `gatsby-source-filesystem`,
options: {
path: path.join(__dirname, "src", "markdown"),
name: "markdown",
ignore: [`**/\.*`]
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: path.join(__dirname, "src", "assets", "images"),
name: "images",
ignore: [`**/\.*`]
}
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
"gatsby-remark-autolink-headers",
"gatsby-remark-external-links",
"gatsby-remark-copy-linked-files",
"gatsby-remark-smartypants",
{
resolve: "gatsby-remark-component",
options: { components: ["api-example", "pattern-example"] }
},
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 650,
showCaptions: true,
linkImagesToOriginal: true,
backgroundColor: "#000"
}
},
{
resolve: "gatsby-remark-toc",
options: {
header: "Table of Contents", // the custom header text
include: [
"markdown/**/*.md" // an include glob to match against
],
mdastUtilTocOptions: { maxDepth: 3 }
}
},
{
resolve: `gatsby-remark-prismjs`,
options: {
showLineNumbers: false,
noInlineHighlight: false,
languages: ["javascript", "json", "yaml"]
}
}
]
}
},
{
resolve: "gatsby-plugin-typography",
options: {
pathToConfigModule: `src/config/typography`,
omitGoogleFont: true
}
},
{
resolve: "gatsby-plugin-i18n",
options: {
langKeyForNull: "any",
langKeyDefault: i18nConfig.defaultLanguage,
useLangKeyLayout: false
}
},
{
resolve: `gatsby-plugin-nprogress`,
options: {
color: "#1FAA00",
showSpinner: false
}
},
//{
// resolve: `gatsby-plugin-algolia`,
// options: {
// appId: process.env.GATSBY_ALGOLIA_API_ID,
// apiKey: process.env.GATSBY_ALGOLIA_UPDATE_KEY,
// queries: algolia,
// chunkSize: 10000
// }
//},
"gatsby-plugin-netlify"
]
};