forked from emotion-js/emotion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
41 lines (40 loc) · 978 Bytes
/
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
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}/../${pkg}/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`
}
},
`gatsby-transformer-remark`,
`gatsby-plugin-react-helmet`,
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-catch-links',
'gatsby-plugin-sitemap',
'gatsby-plugin-netlify'
])
}