Skip to content

Proposal: add unlisted/draft banners in dev mode #8285

@slorber

Description

@slorber

Have you read the Contributing Guidelines on issues?

Motivation

#8004 brings support for unlisted to all 3 content plugins, including a banner to make it clear a content is unlisted:

image

I think it could improve the DX to also display such a banner in dev for both draft: true and unlisted: true

Note in our current implementation, the doc metadata.unlisted is never true in dev mode so this metadata is not a good way to display the banner in dev. We could read frontMatter.unlisted directly instead.

Self-service

  • I'd be willing to do some initial work on this proposal myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apprenticeIssues that are good candidates to be handled by a Docusaurus apprentice / traineeproposalThis issue is a proposal, usually non-trivial change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions