Single file with same name as folder is stripped from sidebar (Category index) - since 2.0.0-beta.19 #7446
Closed
3 of 7 tasks
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Since 2.0.0-beta.19, a folder
docs/Same
with a single filedocs/Same/Same.md
is not shown in sidebar. It work in 2.0.0-beta.18 as documented here.Observe
Same
folder being absent from the sidebar:Reproducible demo
https://stackblitz.com/edit/github-vnuu5v?file=docs/Same/Same.md
Steps to reproduce
docs/Same
.docs/Same/Same.md
Expected behavior
With a folder
docs/Same
containing a single filedocs/Same/Same.md
, the expected output as per https://docusaurus.io/docs/sidebar/autogenerated#category-index-convention would be to have the Sidebar displaydocs/Same
as a link, linking todocs/Same/Same.md
.Actual behavior
A folder
docs/Same
with a single filedocs/Same/Same.md
is not shown in sidebar.Note that if you rename the file to
docs/Same/Different.md
, or if add another file todocs/Same
folder, it work as expected.Your environment
Self-service
The text was updated successfully, but these errors were encountered: