> 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).

# セクション

{% hint style="info" %}
この機能は Ultimate サイトプランで利用できます。
{% endhint %}

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

セクションを使うと、ドキュメントを 1 つのサイトに集約できます。別々の製品を整理するために使いましょう。また、対象読者ごとに合わせたコンテンツを提供することもできます。

セクションをグループ化して、ナビゲーションバーにドロップダウンを作成します。グループによってサイトに階層を追加できます。

### セクションそれともバリアント？

各セクションにはそれぞれ独自のコンテンツが含まれます。用途が異なるドキュメント領域にはセクションを使いましょう。製品、対象読者、トピックなどを表せます。

同じコンテンツのバリエーションには、 [コンテンツバリアント](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/variants.md)を使います。バリエーションには、ローカライズ版や過去の製品バージョンが含まれます。

### セクションを追加

セクションを追加するには：

1. サイトのサイドバーで、 **サイト構成**.
2. を開きます。 **新しいセクション**.
3. 追加するコンテンツを選択します。

セクションは表に表示されます。また、公開サイトではタブとしても表示されます。

<figure><img src="/files/e315c84f05130056ef43738a6e00d3497fd3aaa4" alt="A GitBook screenshot showing site section structure"><figcaption><p>セクションを使ってドキュメントに構成を追加します。</p></figcaption></figure>

### セクショングループを作成

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

グループを作成するには：

1. の横の **新しいセクション**をクリックします。
2. 選択 **新しいセクショングループ**.
3. グループ名を入力します。
4. クリック **セクションを追加**.
5. 既存のセクションを追加するか、新しいコンテンツを選択します。

サイトが複数の言語をサポートしている場合は、グループタイトル、セクションタイトル、説明を翻訳してください。詳しくは [多言語セクション](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/multilingual-sections.md).

### セクションを編集

セクションを編集するには：

1. セクションの表の行で、 **編集**.
2. 名前、アイコン、またはスラッグを変更します。
3. クリック **保存**.

セクションを削除するには、 **削除** を左下隅でクリックします。

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

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

セクションは **サイト構成** 表と同じ順序で表示されます。セクションの順序を変更するには、ドラッグハンドルを上下にドラッグします。セクションのコンテンツも一緒に移動します。新しい順序はすぐにサイトに反映されます。

キーボードで操作するには：

1. を押して **スペース** セクションを選択します。
2. 矢印キーを押してセクションを移動します。
3. を押して **スペース** で確定します。

### ホームセクションを設定

ホームセクションは、訪問者がサイトを開いたときに表示されます。サイトのルート URL で読み込まれます。ほかのセクションはルート URL にスラッグを追加します。

ホームセクションを設定するには：

1. セクションの表の行で、 **アクション** メニューを開きます。
2. クリック **ホームに設定**.

### ホームバリアントを設定

セクションに複数のバリアントがある場合、訪問者が最初に開くバリアントを選択します。

ホームバリアントを設定するには：

1. 開く **サイト設定**.
2. クリック **構成**.
3. 更新するセクションをクリックします。
4. 訪問者が最初に開くバリアントを見つけます。
5. クリック **ホームに設定**.

### セクションを削除

セクションを削除するには：

1. サイトのサイドバーで、 **サイト構成**.
2. セクションの **アクション** メニューを開きます。
3. クリック **削除**.

{% hint style="success" %}
セクションを削除すると、そのセクションとバリアントの公開が解除されます。コンテンツ自体は削除されません。コンテンツは [すべてのコンテンツ](/docs/documentation/ja-gitbook-documentation/creating-content/all-content.md).
{% 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.
