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

how to create code blocks new design #9889

Closed
2 tasks done
malaypunye opened this issue Feb 24, 2024 · 1 comment
Closed
2 tasks done

how to create code blocks new design #9889

malaypunye opened this issue Feb 24, 2024 · 1 comment
Labels
closed: invalid This issue / PR is low quality, unwanted or spam and doesn't qualify as a contribution in any way. 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

Comments

@malaypunye
Copy link

Have you read the Contributing Guidelines on issues?

Description

Hello guys i can req design code blocks

code-blocks-design-request

tab code blocks use icon

tab-icon

thanks

Has this been requested on Canny?

No response

Motivation

easy for users to understand

API design

No response

Have you tried building it?

No response

Self-service

  • I'd be willing to contribute this feature to Docusaurus myself.
@malaypunye malaypunye 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 Feb 24, 2024
@slorber slorber added status: needs triage This issue has not been triaged by maintainers closed: invalid This issue / PR is low quality, unwanted or spam and doesn't qualify as a contribution in any way. and removed status: needs triage This issue has not been triaged by maintainers labels Feb 24, 2024
@slorber
Copy link
Collaborator

slorber commented Feb 24, 2024

You can swizzle the code block component and enhance it according to your custom needs.

If you don't know how to do it, it's your lucky day because the Ionic docs site is a Docusaurus open-source site, so you can just copy/paste what they did:
https://ionicframework.com/docs/components

The goal of Docusaurus is not to solve all the fancy use cases you can imagine, but rather expose primitives to let you implement custom things yourself.

You can create your own code block component with the UX of your choice

@slorber slorber closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: invalid This issue / PR is low quality, unwanted or spam and doesn't qualify as a contribution in any way. 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
Projects
None yet
Development

No branches or pull requests

2 participants