-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Improve Sidebar Navigation Category Titles
Description
Currently, the expandable topics in the left-hand navigation bar display raw directory names ("getting-started" and "usage") rather than proper formatted titles. Additionally, there's confusion with having both a "Usage" page and a "usage" category in the sidebar.
Current Behavior
- Sidebar categories display lowercase, hyphenated directory names ("getting-started", "usage")
- There's redundancy with both "usage" (category) and "Usage" (page) appearing in the sidebar
- The formatting doesn't match the professional appearance of the rest of the site
Desired Behavior
- Sidebar categories should have proper titles (e.g., "Getting Started", "Usage")
- Consider consolidating the "Usage" page and "usage" category for better navigation
- Maintain consistent capitalization and formatting across the navigation
Possible Solutions
- Use category metadata in sidebars.ts: Replace auto-generated sidebar with explicit configuration that includes proper labels
- Use category.json files: Add metadata files to each directory to specify display names
- Restructure documentation: Consider reorganizing content to eliminate redundancy
Technical Notes
Docusaurus offers multiple ways to customize category labels:
- Using
_category_.jsonfiles in each directory - Configuring explicit sidebar items in
sidebars.tswith proper labels - Using frontmatter in an index.md file in each category
Impact
Improving the sidebar navigation will enhance user experience by providing clearer, more professional navigation labels and reducing confusion from redundant items.
Metadata
Metadata
Assignees
Labels
No labels