> 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/manage-your-site/site-structure/site-sections.md). Agents can also search and read this documentation through its [MCP server](https://gitbook.com/docs/~gitbook/mcp).

# セクション

1つの公開サイトで、製品、対象者、トピックを分けて整理します。

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

<figure><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-9b9015079b5105215a977fdfd3890318a4bf4af2%2F25_12_10_site_sections%402x.png?alt=media" alt="A GitBook screenshot showing sections on a docs site"><figcaption><p>セクションを使ったGitBookサイトの例</p></figcaption></figure>

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

セクションをグループ化すると、ナビゲーションバーにドロップダウンを作成できます。グループを使うと、サイトに階層構造を追加できます。

### セクションとバリアント、どちらを使う？

セクションごとに独自のコンテンツを管理します。独立したドキュメント領域にはセクションを使いましょう。製品、対象者、トピックごとに分けることができます。

同じコンテンツのバリエーションには、 [コンテンツバリアント](https://gitbook.com/docs/documentation/ja-gitbook-documentation/manage-your-site/site-structure/variants.md)を使いましょう。バリエーションには、翻訳版や過去の製品バージョンなどがあります。

### セクションを追加する

セクションを追加するには、次の手順に従います。

1. サイトのサイドバーで **サイト構造**.
2. 表の下にある **新しいセクション**.
3. をクリックし、追加するコンテンツを選択します。

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

<figure><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-e432c8071850ada9273154fb24a6a0fb9d782d8b%2F25_12_10_structure_tree%402x.png?alt=media" alt="A GitBook screenshot showing site section structure"><figcaption><p>セクションを使ってドキュメントに構造を追加しましょう。</p></figcaption></figure>

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

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

グループを作成するには、次の手順に従います。

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

一部の訪問者にのみセクショングループを表示するには、グループのアクションメニューを開き、 **サイトのオーディエンス** を **条件付き**に設定します。詳しくは [条件付きセクショングループ](https://gitbook.com/docs/documentation/ja-gitbook-documentation/publish/adaptive-content/adapting-your-content.md#conditional-section-groups).

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

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

セクションを編集するには、次の手順に従います。

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

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

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

### セクションを非表示にする

**サイトナビゲーションに表示** では、セクションをサイト上部のナビゲーションに表示するかどうかを設定します。セクションを非表示にすると、公開サイトのナビゲーションから削除されます。セクションやそのコンテンツが削除されるわけではありません。

セクションを非表示にするには、次の手順に従います。

1. サイトのサイドバーで **サイト構造**.
2. セクションの表の行にある **編集**.
3. 「 **サイトナビゲーションに表示**.
4. を選択します。 **保存**.

」をオフにします。この設定はセクションの表示状態を制御します。 **ページを非表示**は、セクションの目次からページを非表示にする設定です。訪問者には、公開サイトのナビゲーションで非表示のセクションは表示されません。

### セクションの順序を変更する

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

キーボードを使うには:

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

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

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

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

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

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

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

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

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

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

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

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

{% hint style="success" %}
セクションを削除すると、そのセクションとバリアントの公開が解除されます。コンテンツは削除されません。引き続き [すべてのコンテンツ](https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/content-structure/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
