Skip to content

Sidebar dropdown icon, and DocCardList, still recognise "unlisted" child documents #11147

Open
@robbieaverill

Description

@robbieaverill

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

Given I have a document structure like this:

my-folder/
  index.md
  some-unlisted-doc.md
  another-unlisted-doc.md
  third-unlisted-doc.md

and all child documents except index.md have "unlisted" annotations:

---
unlisted: true
---

The sidebar dropdown caret and the DocCardList components still behave as if there are listed child pages.

Image Image The dropdown caret does nothing as child pages are unlisted.

Expected behaviour: those pages are unlisted so there should not be any recognised child pages.

Reproducible demo

No response

Steps to reproduce

  1. Add unlisted child pages to a folder with an index.md page
  2. Open the docs page

Expected behavior

Dropdown caret should not show, DocCardList should render index.md contents

Actual behavior

It behaves like it should with listed child pages

Your environment

  • Docusaurus version used: 3.7.0

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 executionstatus: needs triageThis issue has not been triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions