You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the console error message carefully (if applicable).
Description
In the sidebars.ts file, if you give multiple objects the same label (e.g., "How-to guides"), they will not generate unique translation keys. This means that the description field on those objects will not work as one of the objects will clobber all of the other ones.
As an example, let's say I want my site to look like this:
Topic A
Getting Started
...
How to guides
...
References
...
Topic B
Getting Started
...
How to guides
...
References
...
In my sidebars.ts file, I figured I could do something like this:
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
In the
sidebars.ts
file, if you give multiple objects the same label (e.g., "How-to guides"), they will not generate unique translation keys. This means that thedescription
field on those objects will not work as one of the objects will clobber all of the other ones.As an example, let's say I want my site to look like this:
In my
sidebars.ts
file, I figured I could do something like this:and
However, that will result in one of the categories not having the correct description:
Related information here: #10906 (comment)
Reproducible demo
https://github.com/mike-solomon/docusaurus-testing/tree/main/website
Steps to reproduce
foo/how-to
.bar/how-to
page.Expected behavior
I would expect the descriptions on the category pages to match what I wrote in the
sidebars.ts
file.Actual behavior
One or more of my pages descriptions gets clobbered with the incorrect description.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: