Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to define "items": [] in _category_.json #6149

Closed
1 of 2 tasks
softmarshmallow opened this issue Dec 21, 2021 · 1 comment
Closed
1 of 2 tasks

Allow to define "items": [] in _category_.json #6149

softmarshmallow opened this issue Dec 21, 2021 · 1 comment
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.

Comments

@softmarshmallow
Copy link

Have you read the Contributing Guidelines on issues?

Description

we can easily customize sidebar hierarchy via sidebars.js, but sometimes using _category_.json under direct directory is more effecient.

The problem is we cannot define which documents to show withing _category_.json

Has this been requested on Canny?

No response

Motivation

more usecases with only using _category_.json

API design

Where in documents under /docs/layouts has item from one.md, two.md, three.md ~ ten.md

We can define items to be shown with this directory’s category when autogenerated.

{
  "label": "Layouts",
  "items": ["one", "two", "three"]
}

This is useful to ignore files on main/master branch that are incomplete for production.

Have you tried building it?

No response

Self-service

  • I'd be willing to contribute this feature to Docusaurus myself.
@softmarshmallow softmarshmallow added feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers labels Dec 21, 2021
@Josh-Cena
Copy link
Collaborator

Sorry, duplicate of #5689. That issue wasn't finalized so let's move the discussion there and see what would be good for us.

@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers labels Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Projects
None yet
Development

No branches or pull requests

2 participants