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

# 公開

ドキュメントをウェブ上で公開し、誰でもアクセスできるようにします

公開向けにドキュメントを作成した場合、Web に公開できます。Web に公開したスペースは検索エンジンにインデックスされ、誰でも利用できます。コンテンツを検索エンジンにインデックスされたくない場合は、それも無効にできます。詳細はこちら [下の](#publish-as-public).

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

### 公開として公開

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

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

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

ドキュメントへのリンクを持つ人なら誰でも引き続きアクセスできます。インデックスされていない docs サイトは、ドキュメントのベータ版を公開したい場合や、重複コンテンツの可能性によって 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/suru-1/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.
