If you create a folder structure like the following:
- docs/
- test.mdx
- subfolder/
- a/
- index.mdx
- index.mdx
You'll end up with document IDs
test
,
subfolder/a/index
and
subfolder/index
. The URL
docs/subfolder
works perfectly fine and resolves to
index.mdx
, but you have to specify
subfolder/index
in the sidebars file.
When the file is called
index.mdx
, the ID should be auto-computed to just the directory name. This would ensure that document IDs and URLs match by default.
Currently the logic to calculate auto-computed IDs is hard-coded in the docs plugin, so the only way of overriding it is to fork the whole plugin.