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

[Bug]: rspress dev does not update navbar item title when changing H1 inside doc #1439

Open
o-l-a-v opened this issue Oct 5, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@o-l-a-v
Copy link

o-l-a-v commented Oct 5, 2024

Version

  • System: Windows 11 23H2
  • Browser: Google Chrome
  • RSPress v1.31.1
  • pnpm v9.12.0

Details

  1. Run rspress live with pnpm rspress dev
  2. Change # Title of a doc, say from "Title" to "Title 2". Save.
  3. New title is not reflected to navbar.

Image

Fix:

  1. CTRL + C to stop rspress live view.
  2. pnpm rspress dev to start live view again.
  3. New title is reflected in navbar.

Image

Reproduce link

See details

Reproduce Steps

See details

@o-l-a-v o-l-a-v added the 🐞 bug Something isn't working label Oct 5, 2024
@Timeless0911
Copy link
Contributor

Yeah, we currently only support sidebar HMR when we change _meta.json, so you can config the overview page title in label option at _meta.json.

{
  "type": "file",
  "name": "index",
  "label": "API Overview"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants