1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-09-11 06:35:24 +03:00

Adjust gatsby theme

This commit is contained in:
Brent Jackson 2020-01-30 14:17:15 -05:00
parent 8f850561f7
commit b839e11b3b
4 changed files with 4 additions and 48 deletions

View File

@ -7,12 +7,4 @@
---
Does HMR break with this change?
---
Beep boop bop
---
Or not
HMR *should* work now

View File

@ -168,11 +168,12 @@ exports.onCreateNode = ({
if (node.internal.type !== `Mdx` || source !== contentPath) return
const slug = toPath(fileNode)
const id = createNodeId(`${node.id} >>> Deck`)
createNode({
slug,
// Required fields.
id: createNodeId(`${node.id} >>> Deck`),
id,
parent: node.id,
children: [],
internal: {
@ -182,7 +183,7 @@ exports.onCreateNode = ({
description: `Slide Decks`,
},
})
createParentChildLink({ parent: fileNode, child: node })
createParentChildLink({ parent: fileNode, child: getNode(id) })
}
exports.onCreateDevServer = ({ app }) => {

View File

@ -120,7 +120,6 @@ export default ({
<Global
styles={{
body: {
margin: 0,
overflow: context.mode === modes.normal ? 'hidden' : null,
},
}}

View File

@ -9,25 +9,6 @@ import {
Split,
SplitRight,
} from '..'
// hack for gatsby-plugin-mdx caching bug
import {
dark,
future,
condensed,
yellow,
swiss,
poppins,
book,
script,
comic,
notes,
lobster,
hack,
rye,
big,
aspect,
aspect43,
} from '@mdx-deck/themes'
export default {
Appear,
@ -39,21 +20,4 @@ export default {
Invert,
Split,
SplitRight,
// hack for gatsby-plugin-mdx caching bug
dark,
future,
condensed,
yellow,
swiss,
poppins,
book,
script,
comic,
notes,
lobster,
hack,
rye,
big,
aspect,
aspect43,
}