web-infra-dev / rspress

🦀💨 A fast Rspack-based static site generator.
https://rspress.dev
MIT License
1.44k stars 133 forks source link

[Bug]: `Overview` in nested page does not render #1534

Open JounQin opened 2 weeks ago

JounQin commented 2 weeks ago

Version

System: OS: macOS 15.0.1 CPU: (10) arm64 Apple M1 Max Memory: 4.83 GB / 64.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 130.0.6723.70 Safari: 18.0.1 npmPackages: @rspress/core: ^1.35.1 => 1.35.1

Details

|- guide
  |- index.md  // overview page
  |- test
    |- index.md  // also overview page
    |- nested
      |- index.md // also overview page

https://2thrdn-8080.csb.app/guide.html renders Overview correctly

https://2thrdn-8080.csb.app/guide/test.html and https://2thrdn-8080.csb.app/guide/test/nested.html don't work.

Image

Reproduce link

https://codesandbox.io/p/devbox/sad-zeh-2thrdn

Reproduce Steps

  1. run npm run dev
  2. visit /guide/test.html or /guide/test/nested.html
Timeless0911 commented 2 weeks ago

You can use rspress@0.0.0-next-20241029080927 to verify this behaviour.