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

Create a "Commands" Astro component #1366

Closed
lorenzolewis opened this issue Aug 7, 2023 · 0 comments · Fixed by #1365
Closed

Create a "Commands" Astro component #1366

lorenzolewis opened this issue Aug 7, 2023 · 0 comments · Fixed by #1365
Assignees
Labels
good first issue Is it good for beginners to take up? help wanted Can the core maintainers not handle this themselves?

Comments

@lorenzolewis
Copy link
Member

Create a component similar to this one we had in Docusaurus but for Astro: https://github.com/tauri-apps/tauri-docs/blob/dev/src/theme/Command.js

Let's keep this simple and allow passing parameters for specifically-labeled props. Maybe an interface like this:

interface Props {
  npm?: string;
  yarn?: string;
  pnpm?: string;
  cargo?: string;
}

We would pass the full command to the component and it would conditionally render a Starlight Tabs component: https://starlight.astro.build/guides/components/#tabs

@lorenzolewis lorenzolewis added good first issue Is it good for beginners to take up? help wanted Can the core maintainers not handle this themselves? tauri 2.0 docs labels Aug 7, 2023
@FabianLars FabianLars mentioned this issue Aug 9, 2023
@lorenzolewis lorenzolewis self-assigned this Aug 9, 2023
@lorenzolewis lorenzolewis linked a pull request Aug 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Is it good for beginners to take up? help wanted Can the core maintainers not handle this themselves?
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant