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

Splitting presentation into multiple files in version 3?

Open HoverBaum opened this issue 5 years ago • 10 comments

Is it still possible to split larger presentation into multiple files with version 3?

At least the way it worked in v2 doesn't seem to work anymore and I can't find anything in the docs. Really a feature I am relying on to keep my slides manageable.

HoverBaum avatar Jul 17 '19 14:07 HoverBaum

Hi! I’d like to figure out a way to support that, but the old approach doesn’t work in v3 with some of the other changes. It does, however, support a multi-deck mode which lets you start a server for multiple deck files in a single directory at once. Each deck will have its own route based on the file name, but you can use Gatsby link to go from one to another. Not sure if that’s helpful for your use case, but I haven’t added docs for that yet

jxnblk avatar Jul 17 '19 15:07 jxnblk

Sadly that doesn't really help me out as I would aim to have one presentation in the end. Only wanting to split it into multiple files to keep an overview over longer presentations.

Gonna be moving to one file for now. Would be awesome to see this coming back eventually.

HoverBaum avatar Jul 18 '19 11:07 HoverBaum

Hi, this is about examples/multiple right ? This example does not work in v3, this is what you are saying ?

How can we run the server for multiple deck files in a single directory at once ? Thanks in anticipate

pluxain avatar Sep 18 '19 05:09 pluxain

@pluxain This Issue is more about splitting your presentation into multiple files that result in a single presentation. I think the use-case of serving multi presentation which are all stored in the same folder is something different.

HoverBaum avatar Sep 19 '19 12:09 HoverBaum

@HoverBaum my understanding of examples/multiple was that it was splitting one presentation into multiple files aggregating the files content in deck.js to serve them as slides to mdx-deck

pluxain avatar Sep 20 '19 10:09 pluxain

Hmm from what @jxnblk posted above Each deck will have its own route based on the file name, but you can use Gatsby link to go from one to another. I would understand that each file gets hosted as it's own presentation. But maybe @jxnblk can clear this up 🙂

HoverBaum avatar Sep 20 '19 14:09 HoverBaum

Would be great to have some documentation on how to split up large presentations in v3+. In v1, we could do something like:

import Break from "./slides/break.mdx";
import ESModules from "./slides/part1ModernJS/ESModules.mdx";
import ArrowFunctions from "./slides/part1ModernJS/ArrowFunctions.mdx";
import ArrayMethods from "./slides/part1ModernJS/ArrayMethods.mdx";
import TemplateLiterals from "./slides/part1ModernJS/TemplateLiterals.mdx";
import DefaultParameters from "./slides/part1ModernJS/DefaultParameters.mdx";
import DestructuringAssignment from "./slides/part1ModernJS/DestructuringAssignment.mdx";
import SpreadAndRest from "./slides/part1ModernJS/SpreadAndRest.mdx";
import Promises from "./slides/part1ModernJS/Promises.mdx";
import Fetch from "./slides/part1ModernJS/Fetch.mdx";
import TheFuture from "./slides/part1ModernJS/TheFuture.mdx";

export default [
  ...Intro,
  ...ESModules,
  ...ArrowFunctions,
  ...Break,
  ...ArrayMethods,
  ...TemplateLiterals,
  ...DefaultParameters,
  ...Break,
  ...DestructuringAssignment,
  ...SpreadAndRest,
  ...Promises,
  ...Break,
  ...Fetch,
  ...TheFuture
];

trevordmiller avatar Jan 02 '20 21:01 trevordmiller

"It does, however, support a multi-deck mode which lets you start a server for multiple deck files in a single directory at once. Each deck will have its own route based on the file name, but you can use Gatsby link to go from one to another."

@jxnblk Any chance we could get docs on how to do this? Thank you! mdx-deck is great and I really appreciate all your hard work :)

trevordmiller avatar Jan 02 '20 21:01 trevordmiller

@jxnblk Curious if you have any thoughts on this? I'd be happy to submit a pull request if you could point me in the right direction. Thank you for all you do, mdx-deck is wonderful!

trevordmiller avatar May 22 '20 17:05 trevordmiller

Damn, I was really hoping this was possible. Subscribing 👍🏻

rawkode avatar Aug 28 '20 12:08 rawkode