Skip to content

Multiple linked .md files #2014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
diego-betto opened this issue Jan 20, 2025 · 4 comments
Open

Multiple linked .md files #2014

diego-betto opened this issue Jan 20, 2025 · 4 comments

Comments

@diego-betto
Copy link

Is your feature request related to a problem? Please describe.
I wanted to find out if it was possible to create a single installation with several .md files, one per course for example.

Describe the solution you'd like
The idea is to organise the various courses into subfolders, each with a .md file, and then to have a main file with the TOC of the various courses and their links.

Another point is the possibility of linking the end of a course with a link to another course.

At the moment, it seems to be possible to build the various .md files, but then it does not seem trivial to link them together (both in development and in build)

Describe alternatives you've considered
In RevealJS this is possible pointing to multiple .html files.

Thank you!

@bguiz
Copy link

bguiz commented Feb 20, 2025

👋 @diego-betto - I've done exactly what you've described, using syntax like this:

---
src: ../mod01/slides.md
---

---
src: ../mod02/slides.md
---

It works OK, however, I have run into this problem: #2071

@diego-betto
Copy link
Author

Ya, but you are adding slides to the same presentation. Not linking differente presentations.
In RevealJS you link another .html file and start a new, different presentation.

@bguiz
Copy link

bguiz commented Feb 20, 2025

Ya, but you are adding slides to the same presentation.

I am doing this, for a "master deck".

Not linking differente presentations. In RevealJS you link another .html file and start a new, different presentation.

And I'm also doing this, for separate slide decks for each module.

Currently, the master deck works properly, but the individual decks need a workaround (see the linked issue).

@mathias-ewald
Copy link

You can do

slidev slides.md --open
slidev slides2.md --open

And similarly with the slidev export command, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants