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

autogenerated trim parent prefix #6255

Closed
2 tasks done
wenerme opened this issue Jan 3, 2022 · 1 comment
Closed
2 tasks done

autogenerated trim parent prefix #6255

wenerme opened this issue Jan 3, 2022 · 1 comment
Labels
closed: wontfix A fix will bring significant overhead, or is out of scope (for feature requests) feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.

Comments

@wenerme
Copy link
Contributor

wenerme commented Jan 3, 2022

Have you read the Contributing Guidelines on issues?

Description

trim

  • java/
    • java-intro.md
  • go/
    • go-intro.md

to

  • java/intro
  • go/intro

Has this been requested on Canny?

No response

Motivation

Current docusaurus will trim the number prefix, but when writing, if there are alot topic, usally will have same layout like

  • java/
    • intro.md
  • go/
    • intro.md

but for better writing experience will layout like

  • java/
    • java-intro.md
  • go/
    • go-intro.md

because this is easier for search like

image

that's why there are alot docs under same tags https://wener.me/notes/tags/faq

API design

No response

Have you tried building it?

No response

Self-service

  • I'd be willing to contribute this feature to Docusaurus myself.
@wenerme wenerme 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 Jan 3, 2022
@slorber
Copy link
Collaborator

slorber commented Jan 5, 2022

This is a quite specific, magic and opinionated feature, you should ask on our Canny board instead of this issue, and we'll see if there's enough interest, and I doubt we would enable this by default. So I'm going to close it for now.

You can already use a custom slug: /java/intro frontmatter in your docs to make this happen in userland, why is this necessary to implement it, isn't this workaround good enough.

@slorber slorber closed this as completed Jan 5, 2022
@Josh-Cena Josh-Cena added closed: wontfix A fix will bring significant overhead, or is out of scope (for feature requests) and removed status: needs triage This issue has not been triaged by maintainers labels Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: wontfix A fix will bring significant overhead, or is out of scope (for feature requests) 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

3 participants