Skip to content

[Bug]: notesSidebar causes crash — folder not linked properly in navbar #200

@gsaanvi

Description

@gsaanvi

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Title

notesSidebar causes crash — folder not linked properly in navbar

Issue

When running the project locally, the site crashes with the error:

"Sidebar with ID 'notesSidebar' doesn't have anything to be linked to"

This happens because the notesSidebar configuration cannot locate the corresponding folder or files.


Steps to Reproduce

  1. Clone the repository.
  2. Install dependencies using npm install.
  3. Run the project locally with npm start.
  4. Observe the crash in the browser when the navbar tries to load the notesSidebar.

Current Behavior

  • The site fails to load and displays an error instead of rendering the Notes section.

Expected Behavior

  • The Notes section should load properly, displaying all markdown files in the notes folder without crashing the page.

Screenshot

Image

Proposed Fix

  • Verify that the dirName in sidebars.ts matches the actual folder name in the docs directory (case-sensitive).
  • Ensure that the notesSidebar is correctly linked in the Docusaurus configuration so it can load the markdown files from the notes folder without errors.

Expected behavior

When running the project locally and clicking the Notes navbar item, the corresponding documentation from the notes folder should load without errors, displaying all 6 markdown files in the sidebar.

Add ScreenShots

Image Image

On which device are you experiencing this bug?

Windows

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC contributor
  • I have starred the repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions