Open HoverBaum opened 5 years ago
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
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.
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 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 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
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 🙂
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
];
"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 :)
@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!
Damn, I was really hoping this was possible. Subscribing 👍🏻
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.