8000 Generated Sidebar Pagination will not use doc Label but the File Name · Issue #9781 · facebook/docusaurus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
Generated Sidebar Pagination will not use doc Label but the File Name #9781
Closed
@LeonnardoVerol

Description

@LeonnardoVerol

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

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

  1. Create a doc without H1 or Title
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn 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.domain: content pluginRelated to content plugin emitting metadata for theme consumption

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0