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

Better support for terminal #206

Open
pomber opened this issue Jun 21, 2022 · 2 comments
Open

Better support for terminal #206

pomber opened this issue Jun 21, 2022 · 2 comments

Comments

@pomber
Copy link
Contributor

pomber commented Jun 21, 2022

Most docs start with some commands you need to run on a terminal.

For example, one common use case for web projects is to show options for npm/yarn/pnpm. Maybe code hike should make that use case easier.

There's also the styling of commands and output. Here the important part is yarn start, the other lines are extra context:

```terminal
$ yarn start
[INFO] Starting the development server...
[SUCCESS] Website is running at: http://localhost:3000/
```
@DanielFGray
Copy link

show options for npm/yarn/pnpm

i've been wondering if CH can do this a la docusaurus, and if this could open the door to more "choose your adventure" kinds of features

@pomber
Copy link
Contributor Author

pomber commented Aug 28, 2024

i've been wondering if CH can do this a la docusaurus, and if this could open the door to more "choose your adventure" kinds of features

Yes, it's doable right now. You can do something similar to this language switcher example. Since you own the <Code> component you can implement it any way you want.

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

No branches or pull requests

2 participants