Skip to content
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

Add index page for multiple slides build #1791

Open
jaanli opened this issue Jul 31, 2024 · 1 comment
Open

Add index page for multiple slides build #1791

jaanli opened this issue Jul 31, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jaanli
Copy link

jaanli commented Jul 31, 2024

Describe the bug

Cannot host multiple entries.

Minimal reproduction

Steps to reproduce the behavior:

  1. Go to documentation: https://sli.dev/guide/hosting#multiple-builds
  2. Edit your build command in Vercel
Screenshot 2024-07-31 at 06 54 41
  1. Verify that the build works locally
  2. Verify that the build fails and that no index is created.

To reproduce with code, see here:

https://github.com/onefact/talks.onefact.org (and see the dist directory from vite to see an example of how there is no index page from which to access multiple slide decks!)

Environment

@KermanX KermanX added bug Something isn't working and removed bug Something isn't working labels Jul 31, 2024
@KermanX
Copy link
Member

KermanX commented Jul 31, 2024

In fact, currently, Slidev doesn't create an index page for your slides. slidev build a.md b.md is the same as slidev build a.md --out dist/a/ && slidev build b.md --out dist/b/. In your repo, it seems that the dist directory wasn't cleared after previous builds.

About how to host multiple slides, this discussion may help: #1777 (comment)

@KermanX KermanX changed the title Hosting multiple builds is broken Add index page for multiple slides build Jul 31, 2024
@KermanX KermanX added the enhancement New feature or request label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants