forked from emotion-js/emotion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
92 lines (91 loc) · 2.43 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
const path = require('path')
const packages = require('./docs-yaml')().filter(
({ title }) => title === 'Packages'
)[0].items
module.exports = {
siteMetadata: {
siteUrl: 'https://emotion.sh',
title: `emotion`
},
plugins: packages
.map(pkg =>
path.resolve(
`${__dirname}/../packages/${pkg.replace('@emotion/', '')}/README.md`
)
)
.map(file => ({
resolve: 'gatsby-source-filesystem',
options: {
path: file
}
}))
.concat([
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'docs',
path: `${__dirname}/../docs`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/../emotion.png`
}
},
{
// todo: contribute to gatsby-plugin-manifest
// https://github.com/gatsbyjs/gatsby/issues/5887
resolve: `gatsby-plugin-favicon-fork`,
options: {
logo: `${__dirname}/../emotion.png`,
injectHTML: true,
icons: {
android: false,
appleIcon: true,
appleStartup: false,
coast: false,
favicons: true,
firefox: false,
twitter: false,
yandex: false,
windows: false
}
}
},
'gatsby-plugin-emotion-next-compat',
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: ['.mdx', '.md'],
gatsbyRemarkPlugins: [
{
resolve: require.resolve(
'./plugins/gatsby-remark-remove-readme-titles'
)
},
{ resolve: require.resolve('./plugins/gatsby-remark-fix-links') },
{
resolve: require.resolve('./plugins/gatsby-remark-change-awesome')
},
{ resolve: require.resolve('./plugins/gatsby-remark-live-code') },
{ resolve: 'gatsby-remark-autolink-headers' },
{ resolve: 'gatsby-remark-prismjs' },
{ resolve: 'gatsby-remark-smartypants' }
]
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-101206186-1'
}
},
`gatsby-plugin-react-helmet`,
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-catch-links',
'gatsby-plugin-sitemap',
'gatsby-plugin-netlify'
])
}