Skip to content

html sidenav item not working #9569

Description

@meyermt

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Since migrating to Docusaurus v3, the html sidebar items in my project do not appear. Upon inspection I don't see any list item for them, either. From what I can tell, the spec for the item did not change in the new version. It can be reproduced from https://new.docusaurus.io as well (link attached).

Reproducible demo

https://stackblitz.com/edit/github-rha1jp?file=sidebars.js

Steps to reproduce

  1. Update sidebars.js to used the non auto-generated sidebar option, comment out the auto-generated option.
  2. Add an html sidebar item
  3. Run

Expected behavior

Expected html sidebar items to show up.

Actual behavior

Not seeing html sidebar items.

Your environment

  • Docusaurus version used: 3.0.0
  • Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome and Safari, Node.js 18.x

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executionclosed: duplicateThis issue or pull request already exists in another issue or pull request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions