> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/site-sections.md).

# サイトセクション

<figure><img src="/files/c58be99c9becbdf4764e664da87f388a118aaee8" alt="A GitBook screenshot showing site sections on a docs site"><figcaption><p>サイトセクションを備えた GitBook サイトの例</p></figcaption></figure>

サイトセクションを使うと、すべてのドキュメントを一元化し、ユーザーにシームレスな体験を提供できます。

サイトセクションは、ドキュメントの整理に最適です。個別の製品を管理している場合でも、エンドユーザーと開発者の両方に向けて、それぞれに合わせたコンテンツを提供している場合でも活用できます。

また、 [サイトセクションをグループ化することもできます](#create-a-site-section-group)。そうすると、ナビゲーションバーにドロップダウンメニューが作成され、サイトセクションに階層を追加するのに最適です。

{% hint style="info" %}
**セクション、それともバリアント？**

各サイトセクションは GitBook のスペースです。好きなスペースからサイトセクションを作成できますが、意味的に異なるドキュメントの部分としてセクションを使うことをおすすめします。

同じコンテンツのバリエーションを追加したい場合、たとえばローカライズ版や同じ製品の過去バージョンなどは、代わりに [コンテンツバリアント](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/variants.md) の使用を検討してください。
{% endhint %}

### ドキュメントサイトにセクションを追加する

ドキュメントサイトのダッシュボードから、 **設定** タブをサイトヘッダーで開き、次に **構成**をクリックします。ここでサイトのすべてのコンテンツを確認できます。

サイトセクションを追加するには、 **新しいセクション** ボタンを表の下でクリックし、セクションとしてリンクするスペースを選択します。すると新しいセクションが表に追加され、サイト上部のタブとして訪問者が利用できるようになります。

<figure><img src="/files/e315c84f05130056ef43738a6e00d3497fd3aaa4" alt="A GitBook screenshot showing site section structure"><figcaption><p>サイトセクションでドキュメントに構造を追加しましょう。</p></figcaption></figure>

### サイトセクショングループを作成する

サイトセクションを 1 つの見出しの下にグループ化できます。サイトセクショングループは、サイトのナビゲーションにドロップダウンとして表示されます。グループ内のサイトセクションには任意で説明を追加でき、説明はドロップダウンメニューのセクションタイトルの下に表示されます。

グループを作成するには、 **新しいセクション** の横にある矢印をクリックして **新しいセクショングループ**を選択します。新しいグループに名前を付けてから、モーダル内の **セクションを追加** をクリックして、グループにセクションを追加します。サイトの既存セクションを新しいグループに追加することも、メニューから追加したい別のスペースを選択することもできます。

サイトが複数言語に対応している場合は、セクションタイトルや説明とあわせて、セクショングループのタイトルも翻訳できます。詳しくは [多言語セクション](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/multilingual-sections.md).

### セクションを編集する

編集したいセクションの表の行にある <picture><source srcset="/files/kN09oTFtAuyaxNIwWuCt" media="(prefers-color-scheme: dark)"><img src="/files/cf8d2e633662cf4942b8e74c790dfbd311d960b3" alt="The Edit icon in GitBook"></picture> **編集** ボタンをタップすると、各セクションの名前、アイコン、スラッグを変更できます。モーダルが開くので、変更したいフィールドを編集し、 **保存** ボタンをクリックします。また、 **バリアントを削除** ボタンを左下でクリックして、バリアントを削除することもできます。

{% hint style="info" %}
セクションのスラッグを変更すると、正規URLも変更されます。GitBook は古い URL から新しい URL への自動リダイレクトを作成します。また、 [リダイレクトを手動で作成する](/docs/documentation/ja-gitbook-documentation/docs-site/site-redirects.md).
{% endhint %}

こともできます。グループ内のサイトセクションでは、任意で説明を表示することもできます。セクショングループにマウスを重ねると、サイトのナビゲーションバーのドロップダウンメニューに表示されます。公開されたドキュメントでどのように見えるかの例は、このページ上部の画像を参照してください。

サイトが複数言語に対応している場合は、読者が選択した言語に合わせてセクションタイトルと説明を翻訳できます。詳しくは [多言語セクション](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/multilingual-sections.md).

### セクションの並び替え

サイトには、Site structure テーブルに表示される順序でセクションが表示されます。セクションは **ドラッグハンドル** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/ce0e0a07ded643c4e219bbfe214239e291d0c7a1" alt="The Options menu icon in GitBook"></picture> をつかんで上下に移動することで並び替えできます。そのセクション内のすべてのスペースも一緒に移動します。変更された順序は、すぐにサイトに反映されます。

キーボードを使ってコンテンツを選択・移動することもできます。スペースバーでセクションを選択し、矢印キーで上下に移動します。もう一度スペースバーを押して、新しい位置を確定します。

### デフォルトセクションの設定

サイトに複数のセクションがある場合、1 つのセクションが家のアイコン付きでデフォルトとして表示されます<i class="fa-house">:house:</i>。このセクションは訪問者がサイトにアクセスしたときに表示され、サイトのルート URL から提供されます。その他のセクションにはそれぞれスラッグがあり、ルート URL の末尾に追加されます。

セクションをデフォルトに設定するには、 **アクションメニュー** <picture><source srcset="/files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="/files/3489a3405c2f5c8e7f31c02ff44e42d2e3e8dbf6" alt="The Actions menu icon in GitBook"></picture> をセクションの表の行でクリックし、次に **デフォルトに設定**.

### セクションを削除する

サイトからセクションを削除するには、 **設定** <picture><source srcset="/files/CG9bVSmdbJnQxrYiNbRI" media="(prefers-color-scheme: dark)"><img src="/files/477fc6b8be7ea4395872753916f62023abc28604" alt="The Settings icon in GitBook"></picture> ボタンをドキュメントサイトのダッシュボードでクリックし、次に **構成** をクリックして削除したいコンテンツを見つけます。削除したいセクションの横にある **編集** <picture><source srcset="/files/kN09oTFtAuyaxNIwWuCt" media="(prefers-color-scheme: dark)"><img src="/files/cf8d2e633662cf4942b8e74c790dfbd311d960b3" alt="The Edit icon in GitBook"></picture> ボタンをクリックし、次に **削除** ボタンをモーダルの左下でクリックします。これにより、セクションとその中のすべてのバリアントが公開サイトから削除されますが、スペース自体やその中のコンテンツは削除されません。

サイトからセクションを削除するには、 **設定** タブをドキュメントサイトのダッシュボードから開き、次に **構成** をクリックして削除したいコンテンツを見つけます。

を開いて **アクションメニュー** <picture><source srcset="/files/YjlF3Z9KMYv9aQiFzZKD" media="(prefers-color-scheme: dark)"><img src="/files/3489a3405c2f5c8e7f31c02ff44e42d2e3e8dbf6" alt="The Actions menu icon in GitBook"></picture> 削除したいスペースの **削除**.

{% hint style="success" %}
サイトからセクションを削除すると、そのセクションとその中のすべてのバリアントは公開サイトから削除されますが、 **スペースやその中のコンテンツは削除されません**.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/site-sections.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
