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

Docs: Code block does not work for tabs on the documentation. #7738

Open
abranhe opened this issue Mar 14, 2024 · 0 comments
Open

Docs: Code block does not work for tabs on the documentation. #7738

abranhe opened this issue Mar 14, 2024 · 0 comments
Assignees
Labels
area: docs Improvements or additions to documentation area: site owned-by: turborepo

Comments

@abranhe
Copy link

abranhe commented Mar 14, 2024

What is the improvement or update you wish to see?

I was exploring the documentation website for Turbo repo and noticed that the installation instruction had a bash command on the front.

bash pnpm install turbo --global

Screenshot

turbo-screenshot

I'm like what are they doing there, I even ran it but realized that it was wrong.

Is there any context that might help us understand?

I clicked on edit this page and realized that when a code block is inside a Tab it renders it as an inline code, adding the language of the extended syntax in front of the code.

<Tab>
    ```bash
    yarn global add turbo
    ```
</Tab>

You can see the example here:
https://github.com/vercel/turbo/blob/main/docs/pages/repo/docs/installing.mdx#L28C3-L32C9

Or all of them:

https://github.com/search?q=repo%3Avercel%2Fturbo%20%3CTab%3E%20%20%20%20%20%60%60%60bash&type=code

Does the docs page already exist? Please link to it.

https://turbo.build/repo/docs/installing

@mehulkar mehulkar added area: docs Improvements or additions to documentation owned-by: turborepo area: site labels Mar 15, 2024
thisisrick25 added a commit to thisisrick25/turbo that referenced this issue Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Improvements or additions to documentation area: site owned-by: turborepo
Projects
None yet
Development

No branches or pull requests

3 participants