Skip to content

Commit

Permalink
i18n(ja): Update integrations-guide.mdx for v3 (#4398)
Browse files Browse the repository at this point in the history
* cbe66e9

* 1703b1d

* 60f35d6

* i18n(ja): Update integrations-guide.mdx for v3

---------

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
  • Loading branch information
morinokami and yanthomasdev committed Aug 30, 2023
1 parent 9e441de commit 027540c
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions src/content/docs/ja/guides/integrations-guide.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: インテグレーションを使う
title: インテグレーションを追加する
i18nReady: true
---
import IntegrationsNav from '~/components/IntegrationsNav.astro';
Expand All @@ -24,10 +24,6 @@ import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'

Astroには、インテグレーションのセットアップを自動化するための`astro add`コマンドが含まれています。

:::caution
ファイルを更新する前に必ず確認がありますが、念のためバージョン管理されたバックアップを用意しておくに越したことはないでしょう。
:::

好みのパッケージマネージャーを使用して`astro add`コマンドを実行すると、インテグレーション用の自動ウィザードが設定ファイルの更新と必要な依存関係のインストールを行います。

<PackageManagerTabs>
Expand All @@ -48,7 +44,7 @@ Astroには、インテグレーションのセットアップを自動化する
</Fragment>
</PackageManagerTabs>

複数のインテグレーションを同時に設定することも可能です
複数のインテグレーションを同時に追加することも可能です

<PackageManagerTabs>
<Fragment slot="npm">
Expand Down Expand Up @@ -123,6 +119,42 @@ integrations: [
]
```

## インテグレーションを削除する

インテグレーションを削除するには、まずプロジェクトからインテグレーションをアンインストールします。

<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm uninstall @astrojs/react
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm uninstall @astrojs/react
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn remove @astrojs/react
```
</Fragment>
</PackageManagerTabs>

続いて、`astro.config.*`ファイルからインテグレーションを削除します。

```js title="astro.config.mjs" del={3,7}
import { defineConfig } from 'astro/config'

import react from "@astrojs/react";

export default defineConfig({
integrations: [
react()
]
})
```

## 他のインテグレーションを見つける

[Astroインテグレーションのリスト](https://astro.build/integrations/)には、コミュニティによって開発された多くのインテグレーションが掲載されています。詳細な使い方や設定方法については、上のリンクをたどってみてください。
Expand Down

0 comments on commit 027540c

Please sign in to comment.