Skip to content

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

Closed
JamBalaya56562 wants to merge 1 commit intofacebook:mainfrom
JamBalaya56562:codeblock
Closed

docs: use triple backticks instead of @theme/CodeBlock component#1038
JamBalaya56562 wants to merge 1 commit intofacebook:mainfrom
JamBalaya56562:codeblock

Conversation

@JamBalaya56562
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

3 similar comments
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 718e3af.

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