-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondifficulty: starterIssues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.domain: content pluginRelated to content plugin emitting metadata for theme consumptionRelated to content plugin emitting metadata for theme consumption
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand 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
When generating pagination from the sidebar, the "Next" and "Previous" Cards will ignore the doc label and default to the file name. (when the doc has no H1 or Title property)
{
type: 'doc',
label: 'Quick Start',
id: 'some_example_doc',
}
Reproducible demo
No response
Steps to reproduce
- Create a doc without H1 or Title
- Set the sidebar manually with the label property
Expected behavior
The generated Pagination would use the label property from the sidebar and not the file name
Actual behavior
The generated Pagination ignores the label property from the sidebar and uses the file name
Your environment
- Docusaurus version used: 3.1.0
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome 120
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 11 Pro (Version 10.0.22631 Build 22631 )
Self-service
- I'd be willing to fix this bug myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondifficulty: starterIssues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.domain: content pluginRelated to content plugin emitting metadata for theme consumptionRelated to content plugin emitting metadata for theme consumption