Skip to content

Improve sidebar navigation category titles #34

@bhouston

Description

@bhouston

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

  1. Use category metadata in sidebars.ts: Replace auto-generated sidebar with explicit configuration that includes proper labels
  2. Use category.json files: Add metadata files to each directory to specify display names
  3. Restructure documentation: Consider reorganizing content to eliminate redundancy

Technical Notes

Docusaurus offers multiple ways to customize category labels:

  • Using _category_.json files in each directory
  • Configuring explicit sidebar items in sidebars.ts with 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions