Skip to content

Index Page not shown when only unlisted documents are present #10749

@lebalz

Description

@lebalz

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

The index page is not listed, when the folder only contains unlisted documents.

docs
├── test
    ├── index.md                // unlisted=false
    └── unlisted-doc.md         // unlisted=true

I'd expect that the index.md would be displayed as the category page.

The issue happens only when the site is built and served in production.

Reproducible demo

https://codesandbox.io/p/devbox/old-bush-9jlkhj

Steps to reproduce

  1. build the site
  2. serve the site and see that the test-directory is not displayed.

Expected behavior

the test directory should be listed

Actual behavior

the test directory is not displayed

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used:
  • Environment name and version (e.g. Chrome 89, Node.js 16.4):
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

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 execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions