Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
6 of 7 tasks
lebalz opened this issue Dec 8, 2024 · 0 comments · Fixed by #10754
Closed
6 of 7 tasks

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

lebalz opened this issue Dec 8, 2024 · 0 comments · Fixed by #10754
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@lebalz
Copy link
Contributor

lebalz commented Dec 8, 2024

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

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.
@lebalz lebalz added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Dec 8, 2024
@slorber slorber removed the status: needs triage This issue has not been triaged by maintainers label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants