slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Is it possible to implement a slide management system similar to VuePress for Slidev?

Open li1553770945 opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

I'm facing difficulties managing multiple Slidev presentations. Currently, each presentation is a separate project, and I have to manually build and place the output in different folders. This approach becomes cumbersome as I add more slideshows, and it leads to unnecessary duplication of assets (e.g., 30-50MB per slideshow).

Describe the solution you'd like

I would like to implement a system similar to VuePress for Slidev, where multiple slideshows can be managed within a single project. Each slideshow should have its own route and be listed in a central interface. When a new slideshow is added, I should only need to run a build command to automatically update all the slideshows and routes.

Describe alternatives you've considered

Currently, I manage slides manually by building and moving them to a static folder, served by Nginx. However, this is inefficient and doesn't scale well, especially with duplicated assets across presentations.

I understand that this request might conflict with Slidev’s design philosophy. I’m willing to work on implementing this feature myself, but I’m not entirely sure where to start. Could anyone provide some guidance or suggestions on how to approach the design and implementation of this feature?

li1553770945 avatar Dec 07 '24 08:12 li1553770945

this should be made possible by #1392

cnguyen-de avatar Dec 16 '24 11:12 cnguyen-de

Right now we don't have a plan for working on that. But feel free to experiment on that, and maybe create your own library/wrapper for that.

antfu avatar Dec 27 '24 03:12 antfu

@antfu Hi! I’m wondering how to integrate Slidev into my custom Node.js server project. Since Slidev is CLI-based, it seems my only option is using a child process to run something like 'npx slidev file.md' to either create a new project or use the single-file mode. Is there a simpler way to quickly implement a feature like "upload a Markdown file for presentation"? I’d appreciate any insights—thanks! 😄

Roxasora avatar Jan 02 '25 16:01 Roxasora