-
Notifications
You must be signed in to change notification settings - Fork 15
/
gatsby-config.js
74 lines (68 loc) · 1.98 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
// @ts-check
const playgroundHastPlugin = require("./src/utils/playgroundHastPlugin")
module.exports = {
siteMetadata: {
title: "Gatsby Starter",
description: "-- placeholder --",
author: "damassi.pappas@gmail.com",
},
plugins: [
{
resolve: "gatsby-mdx",
options: {
extensions: [".mdx", ".md"],
// Default layouts are meta wrappers around .mdx pages. Can be useful to
// share queries across different types of pages.
defaultLayouts: {
default: require.resolve("./src/layouts/DefaultLayout.tsx"),
},
// MDX AST transformers
hastPlugins: [playgroundHastPlugin],
// Imports here are available globally to .mdx files, with the exception
// of automatically created pages located in /pages. This is a bug in
// gatsby-mdx. See https://github.com/ChristopherBiscardi/gatsby-mdx/issues/243
//
// Also note: For mdx to work in NetlifyCMS, global scope passed in here
// also be passed into `cms.js`, under the `scope` key.
//
globalScope: `
import { UIComponents } from 'Theme'
export default {
...UIComponents
}
`,
// mdPlugins: [],
// gatsbyRemarkPlugins: [{}],
},
},
{
resolve: "gatsby-plugin-netlify-cms",
options: {
modulePath: `${__dirname}/src/cms/cms.jsx`,
enableIdentityWidget: false,
publicPath: "admin",
htmlTitle: "Admin",
manualInit: true,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "blog",
path: `${__dirname}/content/blog/`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "mdx",
path: `${__dirname}/content/mdx/`,
},
},
"gatsby-plugin-catch-links",
"gatsby-plugin-styled-components",
"gatsby-plugin-typescript",
"gatsby-transformer-sharp",
"gatsby-plugin-sharp",
],
}