mdx-deck icon indicating copy to clipboard operation
mdx-deck copied to clipboard

mutiple decks not working

Open ReneCode opened this issue 5 years ago • 8 comments

try to use multiple decks like shown in the csb-examples.

// deck.js
import { slides as one } from './one.mdx'
import { slides as two } from './two.mdx'

export const slides = [...one, ...two]
// package.json

   "start": "mdx-deck deck.js"

but the result is only one page with "MDX Deck". (like in the example). what's my fault ?

ReneCode avatar Oct 06 '19 15:10 ReneCode

The latest version does not support merging decks like in your example. If you found that example in the docs in this repo, could you please let me know where so that it can be corrected

jxnblk avatar Oct 08 '19 15:10 jxnblk

I found the example here:

https://codesandbox.io/s/github/jxnblk/mdx-deck/tree/master/examples/multiple

referenced in the mdx-deck README.md / Usage Examples / Multiple Decks.

ReneCode avatar Oct 08 '19 16:10 ReneCode

@jxnblk would it be simple enough to post how to do multiple decks?

I would love to help and update the docs.

schaab avatar Oct 11 '19 17:10 schaab

@jxnblk I'm really interested in this as well! I see this as a critical organizational feature for longer presentations. If there is a new code pattern that allows multiple slide files with the newest version of mdx-deck, let me know how it works and I would be happy to write some docs around it.

andrewjensen avatar Oct 23 '19 03:10 andrewjensen

Same here, was following the example here https://codesandbox.io/s/github/jxnblk/mdx-deck/tree/master/examples/multiple and it doesn't work either.

okonet avatar Nov 05 '19 10:11 okonet

@okonet Thanks! Looks like that example should be removed

jxnblk avatar Nov 05 '19 15:11 jxnblk

Is there a way to support merging in the newest version?

christopherjbaker avatar Feb 18 '20 04:02 christopherjbaker

@christopherjbaker I am using the old version "mdx-deck": "^2.5.1" that works reasonably well for me. See here for an example.

pavestru avatar Feb 21 '20 08:02 pavestru