Open
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clear
oryarn 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.


Expected behaviour: those pages are unlisted so there should not be any recognised child pages.
Reproducible demo
No response
Steps to reproduce
- Add unlisted child pages to a folder with an index.md page
- 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.