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

# 公開

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

ドキュメントを一般公開向けに作成した場合、ウェブ上で公開できます。ウェブ上で公開したスペースは検索エンジンにインデックス登録され、誰でも利用できるようになります。コンテンツを検索エンジンにインデックス登録させたくない場合は、その設定を無効にすることもできます。詳しくは [以下をご覧ください](#publish-as-public).

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

### 一般公開する

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

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

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

これを変更するには、サイトの **設定 → オーディエンス**を開きます。アクセスオプション（**公開**, **共有リンク**、および **認証済みアクセス**）の下にある **検索エンジンによるインデックス登録** のドロップダウンで、検索エンジンにサイトをインデックス登録させるかどうかを選択します。

それでも、ドキュメントへのリンクを持っている人なら誰でもアクセスできます。インデックスされていないドキュメントサイトは、ドキュメントのベータ版を公開したい場合や、重複コンテンツによって SEO に影響を与えずに大規模なユーザーテストを行いたい場合に特に役立ちます。

### ページレベルの検索インデックス制御

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

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

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

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

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

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

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

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

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

* **親ページの設定**：親ページで検索インデックス登録を無効にすると、その下にあるすべてのサブページでも自動的に無効になります。
* **子ページからは変更できません**：親ページで検索インデックス登録が無効になっている場合、サブページから再び有効にすることはできません。
* **階層全体への影響**：この設定はページ階層全体に連鎖的に適用されます。最上位ページのインデックス登録を無効にすると、セクション全体で無効になります。

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

{% hint style="info" %}
この機能は、 [Essential および 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 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/publish/publish-a-docs-site/public-publishing.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.
