Skip to content

docs: use triple backticks instead of @theme/CodeBlock component #1038

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JamBalaya56562
Copy link
Contributor

Description

The code blocks in Installation docs is different from the others.
Installation code blocks are surrounded by @theme/CodeBlock component.
This is useful to use variables.
However, this makes the unnecessary new line.
Moreover, copy and paste button doesn't show.


Image1: @theme/CodeBlock component

theme_codeblock


Image2: triple backticks

other_codeblock


Therefore, we should use triple backticks instead of @theme/CodeBlock if variables don't exist.

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. (Because this pull request was imported automatically, there will not be any future comments.)

@facebook-github-bot
Copy link
Contributor

@JamBalaya56562 has updated the pull request. You must reimport the pull request before landing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants