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:
parent
8f850561f7
commit
b839e11b3b
@ -7,12 +7,4 @@
|
||||
|
||||
---
|
||||
|
||||
Does HMR break with this change?
|
||||
|
||||
---
|
||||
|
||||
Beep boop bop
|
||||
|
||||
---
|
||||
|
||||
Or not
|
||||
HMR *should* work now
|
||||
|
@ -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 }) => {
|
||||
|
@ -120,7 +120,6 @@ export default ({
|
||||
<Global
|
||||
styles={{
|
||||
body: {
|
||||
margin: 0,
|
||||
overflow: context.mode === modes.normal ? 'hidden' : null,
|
||||
},
|
||||
}}
|
||||
|
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user