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

Synchronize tabs in documentation by adding Starlight's syncKey to all <Tabs> #167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/src/content/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Every commit to select files is used to build a localization dashboard, giving e

You can add Lunaria in your existing project by installing `@lunariajs/core` in your project's dependencies using your preferred package manager:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand All @@ -51,7 +51,7 @@ yarn add @lunariajs/core

Then, you can run `lunaria init` to setup Lunaria, prompting you with a few questions and automatically filling your answers in a new `lunaria.config.json` file:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down Expand Up @@ -83,7 +83,7 @@ In case any of the fields `repository`, `defaultLocale`, `locales`, or `files` i

To build your localization dashboard, you can run the `lunaria:build` script added by `lunaria init`:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down Expand Up @@ -113,7 +113,7 @@ By default, the localization dashboard will be built to an `index.html` file in

After building your dashboard, you should be able to run `lunaria:preview` to open a new preview server on [http://localhost:3000/](http://localhost:3000/).

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/integrations/github-action.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The Lunaria GitHub Action comments on pull requests with an overview of how the

Create a new file in your project at `.github/workflows/lunaria.yml` with the following content, according to the package manager used:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```yml
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/integrations/starlight.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The `@lunariajs/starlight` package integrates Lunaria into the [Starlight docume

2. Add the `@lunariajs/starlight` to your project with your preferred package manager:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/manual-installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Follow the [Getting Started guide's "Quick Start" section](/getting-started/#qui

Lunaria is published through the `@lunariajs/core` package in the npm registry. Add it to your project by running the following command in the project's root directory:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Use the CLI by running one of the commands listed below, optionally including an

You can check all the available commands and global options by typing `lunaria --help` in your terminal:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down