> 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/publish-a-docs-site/public-publishing.md).

# 公開

ドキュメントを一般公開の読者向けに作成した場合、Web に公開できます。Web に公開したスペースは検索エンジンにインデックスされ、誰でもアクセスできるようになります。コンテンツを検索エンジンにインデックスされたくない場合は、それも無効にできます — 詳しくは以下をお読みください [以下](#publish-as-public).

コンテンツをどのように公開しても、誰が *編集* できるかについては引き続き制御できます。また、公開されるのはプライマリのコンテンツブランチのみなので、 [変更リクエスト](/docs/documentation/ja-gitbook-documentation/collaboration/change-requests.md) はマージされるまで非公開のままです。

### 一般公開として公開

ドキュメントを Web 上で一般公開するには、公開したいドキュメントサイトに移動し、 **公開** ボタンをクリックし、 **公開** オプションを選択します。

### **検索エンジンのインデックスなしで公開**

デフォルトでは、サイトは検索エンジンにインデックスされます。代わりにこれを無効にすることもできます。つまり、ドキュメントは Web 上で引き続き誰でも利用できますが、 *インデックスされません* Google などの検索エンジンにインデックスされることはありません。

ドキュメントへのリンクがあれば、引き続き誰でもアクセスできます。インデックスされないドキュメントサイトは、ドキュメントのベータ版を公開したい場合や、SEO に悪影響を与える可能性のある重複コンテンツを避けて大規模なユーザーテストを行いたい場合に特に役立ちます。

### ページ単位の検索インデックス制御

ページ個別のレベルでも検索インデックスを制御できます。GitBook では、検索インデックス制御に 2 種類あります：

#### 内部検索のインデックス

ページが GitBook の内部検索エンジンと Ask AI 機能でインデックスされるかどうかを制御します。これにより次の内容に影響します：

* GitBook セクション内のコンテンツ検索
* Ask AI がページ内容を参照できるかどうか

**外部検索のインデックス（Web クローラー）**

検索エンジンや Web クローラー（Google、ChatGPT など）がページをインデックスできるかどうかを制御します。これにより次の内容に影響します：

* 検索エンジンを通じた SEO と見つけやすさ
* Web クローラーによるコンテンツへのアクセス

#### **階層的な継承の動作**

**検索インデックス設定は階層的な継承パターンに従います：**

* **親ページの制御**：親ページで検索インデックスを無効にすると、その下にあるすべてのサブページのインデックスも自動的に無効になります。
* **子ページは上書きできません**：親ページで検索インデックスが無効になっている場合、サブページで再度有効にすることはできません。
* **連鎖的な影響**：これによりページ階層全体に連鎖的な影響が生じます。最上位ページでインデックスを無効にすると、そのセクション全体で無効になります。

この階層的な動作により、関連するコンテンツセクション全体で一貫したインデックス方針が保たれ、セクション内で非公開にすべきコンテンツが誤って公開されるのを防げます。

{% hint style="info" %}
この機能は [Premium および Ultimate のサイトプランで利用できます](https://www.gitbook.com/pricing).
{% 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/publish-a-docs-site/public-publishing.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.
