1
1
mirror of https://github.com/primer/css.git synced 2024-11-28 13:12:16 +03:00
css/docs/gatsby-config.js
Michelle Tilley 778d73d854
-_-
2020-04-08 12:27:34 -07:00

43 lines
985 B
JavaScript

const path = require('path')
module.exports = {
siteMetadata: {
title: 'Primer CSS',
shortName: 'CSS',
description: "CSS for GitHub's Primer design system",
imageUrl: 'https://user-images.githubusercontent.com/586552/47590375-121cad80-d93a-11e8-89f2-a1cf108e0548.png'
},
pathPrefix: '/css',
plugins: [
{
resolve: '@primer/gatsby-theme-doctocat',
options: {
repoRootPath: '..'
}
},
'gatsby-plugin-sass',
{
resolve: 'gatsby-plugin-svgr',
options: {
svgo: false
}
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: 'UA-126681523-2',
anonymize: true
}
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
'styled-components': path.resolve(__dirname, 'node_modules', 'styled-components'),
react: path.resolve(__dirname, 'node_modules', 'react')
}
}
}
]
}