Skip to content

feat: improve sidebar generation for modules#1

Merged
it-nalon merged 5 commits intoHyperting:masterfrom
enginespot:fix/sidebar-improvements
Nov 3, 2025
Merged

feat: improve sidebar generation for modules#1
it-nalon merged 5 commits intoHyperting:masterfrom
enginespot:fix/sidebar-improvements

Conversation

@enginespot
Copy link
Copy Markdown

  • Fix sidebar key generation for nested modules
  • Add proper handling for leaf items
  • Improve module hierarchy display
  • Add _children and _items sidebar variants

- Fix sidebar key generation for nested modules
- Add proper handling for leaf items
- Improve module hierarchy display
- Add _children and _items sidebar variants
@it-nalon
Copy link
Copy Markdown
Member

it-nalon commented Nov 2, 2025

Hi, thank you for opening the PR. We didn’t expect anyone to try using this.

Unfortunately, I can’t build your branch.

I see the same error that appears in the CI.

hongde added 3 commits November 2, 2025 21:57
Citation: The previous commit attempted to fix the sidebar issue but did not fully resolve the problem. This commit addresses the missing parts to ensure the sidebar works as expected.
Citation: The previous commit attempted to fix the sidebar issue but did not fully resolve the problem. This commit addresses the missing parts to ensure the sidebar works as expected.
Citation: The previous commit attempted to fix the sidebar issue but did not fully resolve the problem. This commit addresses the missing parts to ensure the sidebar works as expected.
@enginespot
Copy link
Copy Markdown
Author

Thanks for reviewing!

I'm building an open-source Rust framework and found rustdoc's interactivity limited. When I tried using this tool with my generated JSON, Docusaurus failed with "sidebar doesn't exist" errors because parent modules weren't generating index.md files or sidebar entries.

This PR fixes that issue. Really appreciate your work on this tool! As my API evolves, I may submit more improvements. Let me know if you need reproduction steps or prefer a different approach.

Citation: The previous commit attempted to fix the sidebar issue but did not fully resolve the problem. This commit addresses the missing parts to ensure the sidebar works as expected.
@it-nalon it-nalon merged commit 6176370 into Hyperting:master Nov 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants