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

# サイト構造

サイト上のコンテンツは、その [セクション](/docs/documentation/ja-gitbook-documentation/creating-content/content-structure/space.md)。1つまたは複数のセクションを追加できます。GitBookはそれぞれを公開し、それら間のナビゲーションを処理します。

## コンテンツタイプ

サイト内のコンテンツは、2種類の異なるコンテンツタイプのいずれかとして扱われ、GitBookがそれをどのように処理し、訪問者に表示するかが決まります。

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-type="image">カバー画像（ダーク）</th><th data-hidden data-card-cover data-type="image">カバー画像</th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden><select></select></th><th data-hidden data-card-cover-dark data-type="image">カバー画像（ダーク）</th></tr></thead><tbody><tr><td><strong>セクション</strong></td><td>サイトを明確なパートに分けましょう。複数の製品や組織の部門ごとに最適です。</td><td><a href="/files/991f8d1f5c6afd0e9afe44adfac93180b837838d">/files/991f8d1f5c6afd0e9afe44adfac93180b837838d</a></td><td><a href="/files/cc37ca7ba463dc9a9ee42096cdd3dc4928213a4e">/files/cc37ca7ba463dc9a9ee42096cdd3dc4928213a4e</a></td><td><a href="/pages/59bc175d7bed325719835494dee26dac5ffbcc94">/pages/59bc175d7bed325719835494dee26dac5ffbcc94</a></td><td></td><td><a href="/files/6daabe1f20310c97a9a9fdb9d92763057ad11575">/files/6daabe1f20310c97a9a9fdb9d92763057ad11575</a></td></tr><tr><td><strong>コンテンツのバリアント</strong></td><td>同じコンテンツの複数バージョンを公開しましょう。ローカライズやバージョン管理などに最適です。</td><td><a href="/files/6aa5c3075b5b62b2fe84db28aff37e33760e0bad">/files/6aa5c3075b5b62b2fe84db28aff37e33760e0bad</a></td><td><a href="/files/d5475ff89b72b6d06472efa6e51a9debab776535">/files/d5475ff89b72b6d06472efa6e51a9debab776535</a></td><td><a href="/pages/e3fbf485a752daf5a3aad5ae508c6e1fd42ea984">/pages/e3fbf485a752daf5a3aad5ae508c6e1fd42ea984</a></td><td></td><td><a href="/files/d7451ccef156444f8a374cbbb44d80761e3195b6">/files/d7451ccef156444f8a374cbbb44d80761e3195b6</a></td></tr></tbody></table>

## サイト構造の管理

サイトの構造を管理することで、サイト上部のナビゲーションバーも管理できます。このナビゲーションバーを使うと、ユーザーは別のセクションやグループへ移動できます。

構造エディタを開くには **サイト構造**、の **一般** をサイトのサイドバーから開きます。ここでは、サイトのすべてのコンテンツをセクションとバリアントに分けて確認できます。

サイトは、サイト名の付いた1つのセクションと、サイトのセットアップ中に作成したコンテンツの1つのバリアントから始まります。

<figure><img src="/files/086131abe566e745ebc0a02a7e7a368772654245" alt="A GitBook screenshot showing a docs site&#x27;s structure"><figcaption><p>公開済みドキュメントサイトの構造。</p></figcaption></figure>

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

追加するには [セクション](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/site-sections.md)、 **セクションを追加** ボタンを表の下でクリックし、追加するコンテンツを選択します。すると新しいセクションが表に追加され、サイト上部のタブとして訪問者に表示されます。

追加するには [バリアント](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/variants.md)、 **バリアントを追加** ボタンを追加先のセクションでクリックし、追加するコンテンツを選択します。すると新しいバリアントが選択したセクション内のバリアント一覧に追加され、サイトのバリアントのドロップダウンから訪問者が利用できるようになります。

コンテンツをバリアントまたはセクションとして追加すると、タイトルに基づいて名前とスラッグが生成されます。

### セクションまたはバリアントを変更する

<div data-full-width="false"><figure><img src="/files/615c46c4e1b9d9d57b6f4968abef6eb9c9e37eff" alt="A GitBook screenshot showing how to edit a variant"><figcaption><p>サイトのセクションまたはバリアントを更新します。</p></figcaption></figure></div>

各セクションとバリアントの名前とスラッグは、 **編集** <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 %}

セクションまたはバリアントを置き換えるには、まず **編集** <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/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/ce0e0a07ded643c4e219bbfe214239e291d0c7a1" alt="The Options menu icon in GitBook"></picture> をつかんで上下に動かすことで並べ替えられます。変更後の順序はすぐにサイトに反映されます。

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

### デフォルトコンテンツの設定

サイトに複数のセクションがある場合、そのうち1つが **デフォルト**としてマークされます。このセクションは訪問者がサイトにアクセスしたときに表示され、サイトのルートURLから配信されます。他のセクションにはそれぞれスラッグがあり、ルートURLに追加されます。

セクション内に複数のバリアントがある場合、そのうち1つがデフォルトとしてマークされます。セクションと同様に、デフォルトのバリアントは訪問者がサイトにアクセスしたとき、またはセクションを訪れたときに表示されます。他のバリアントにはそれぞれスラッグがあり、セクションのURLに追加されます。

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

{% hint style="info" %}
コンテンツをデフォルトに設定すると、代わりにセクションのルートから配信されるため、スラッグ欄は削除されます。GitBookは古いスラッグを適切なパスへリダイレクトし、訪問者が引き続きコンテンツを見られるようにします。
{% endhint %}

### サイトからコンテンツを削除する

サイトからセクションまたはバリアントを削除するには、 **サイト構造**、の **一般** サイトのサイドバーから構造エディタを開き、削除したいコンテンツを見つけます。

を開き、 **アクションメニュー** <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" %}
サイトからコンテンツを削除すると、公開済みサイトからは削除されますが、 **コンテンツ自体は削除されません** — まだ [すべてのコンテンツ](/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.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.
