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

# ドキュメントサイトを公開する

ドキュメントをインターネット上にドキュメントサイトとして公開します

コンテンツの作成、編集、インポートが完了したら、選択した対象者に向けて公開します。

ドキュメントサイトのコンテンツは、 [セクション](https://gitbook.com/docs/documentation/ja-gitbook-documentation/manage-your-site/site-structure.md)に保存されます。編集した構成が、そのまま訪問者に表示される構成になります。新しいセクションは下書きとして作成されるため、公開サイトに表示する内容を管理できます。

<figure><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-d8c0ec68e6bf9df9dd434dfa4a75408c69b15f8c%2F25_12_10_publishing_documentation_publish_docs%402x.png?alt=media" alt="A GitBook screenshot showing the organization Home"><figcaption><p>組織のホーム。</p></figcaption></figure>

### ドキュメントサイトを作成する

ドキュメントサイトを作成するには、次の手順に従います。

1. 組織の **ホーム**で、 **+** の横にあるアイコンをクリックします。 **サイト**.
2. 訪問者が見てすぐにわかる名前を入力します。
3. クリックします **作成**.
4. 開始点を選択します。ドキュメントテンプレート、インポート、OpenAPI仕様、空のセクション、またはGit Syncを選択できます。

設定手順の全体については、 [クイックスタート](https://gitbook.com/docs/documentation/ja-gitbook-documentation/getting-started/quickstart.md).

{% hint style="info" %}
サイトの権限は、 **設定** → **メンバー**で管理できます。これにより、組織の設定とは別に、各サイトを閲覧または編集できるユーザーを管理できます。詳しくは、 [ロール](https://gitbook.com/docs/documentation/ja-gitbook-documentation/collaborate/member-management/roles.md) をご覧ください。
{% endhint %}

### ドキュメントサイトを公開する

サイトを公開するには、次の手順に従います。

1. 組織の **ホーム**から、サイトを開きます。
2. クリックします **公開** をサイトヘッダーでクリックします。

サイトはデフォルトで公開設定になっています。サイトの公開範囲は、 **設定** → **対象者**で変更できます。詳しくは、 [サイトの設定](https://gitbook.com/docs/documentation/ja-gitbook-documentation/manage-your-site/site-settings.md).

次の公開範囲から選択します。

<table data-view="cards"><thead><tr><th></th><th></th><th></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 data-type="image">カバー画像（ダーク）</th><th data-hidden data-type="image">カバー画像（ダーク）</th><th data-hidden data-card-cover-dark data-type="image">カバー画像（ダーク）</th></tr></thead><tbody><tr><td><strong>公開</strong></td><td>ドキュメントをウェブ上で一般公開します。</td><td></td><td><a href="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-be3daa5e8d7ca69c4040bba51d9799b96fe08751%2F25_12_12_public.png?alt=media">25_12_12_public.png</a></td><td><a href="https://gitbook.com/docs/documentation/ja-gitbook-documentation/publish/publish-a-docs-site/public-publishing.md">公開</a></td><td><a href="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-fb86f7029d8eedec3e0c030dd400ef9a1d613330%2F25_12_12_public_1.png?alt=media">25_12_12_public_1.png</a></td><td></td><td><a href="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-fb86f7029d8eedec3e0c030dd400ef9a1d613330%2F25_12_12_public_1.png?alt=media">25_12_12_public_1.png</a></td></tr><tr><td><strong>共有リンクを使って非公開</strong></td><td>ドキュメントを非公開の共有リンクで公開します。</td><td></td><td><a href="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-7d3d6e45e4cc3d6b96638a7b40e9e54a90c8dfbb%2F25_12_12_share_links_1.png?alt=media">25_12_12_share_links_1.png</a></td><td><a href="https://gitbook.com/docs/documentation/ja-gitbook-documentation/publish/site-audience/share-links.md">共有リンクによる限定公開</a></td><td></td><td><a href="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-9a405bebb212b6ff7a5525aa25aec1cab89e0df7%2F25_12_12_share_links.png?alt=media">25_12_12_share_links.png</a></td><td><a href="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-dd9c05f3858e3e8e12b30fed6f921ad1e4fd9626%2F25_01_06_share_links%402x.png?alt=media">25_01_06_share_links@2x.png</a></td></tr><tr><td><strong>認証付きアクセス</strong></td><td>公開したドキュメントをOAuthサインインで保護します。</td><td></td><td><a href="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-4768a66764e29b95017a1566fbe332ee15d7766e%2F25_12_10_auth_access_1.png?alt=media">25_12_10_auth_access_1.png</a></td><td><a href="https://gitbook.com/docs/documentation/ja-gitbook-documentation/publish/site-audience/authenticated-access.md">認証済みアクセス</a></td><td></td><td></td><td><a href="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-eefffa65f90914c204fc17fd7d99039e9e97750a%2F25_12_10_auth_access.png?alt=media">25_12_10_auth_access.png</a></td></tr></tbody></table>

### サイトをプレビューする

クリックします **プレビュー** をサイトヘッダーでクリックすると、公開前や変更作業中に、訪問者に表示される内容を確認できます。コンテンツとカスタマイズを確認し、すべて問題なければ公開します。

### ドキュメントサイトを削除または非公開にする

サイトを非公開にするには、 **設定** → **一般** を選択します **サイトの公開を停止**。確認すると、訪問者はサイトにアクセスできなくなります。

サイトの公開を停止しても、請求内容は変わりません。料金を支払うサイト数を調整するには、組織の請求設定でプランを更新してください。

#### 公開停止または削除した後もサイトにアクセスできる

URLを開ける場合、通常は古いバージョンがブラウザー、CDN、または検索エンジンの検索結果にキャッシュされています。サイトが公開されていないことを確認するには、プライベートウィンドウでURLを開くか、そのサイトのブラウザーキャッシュを消去して再読み込みしてください。

#### サイトが検索エンジンにまだ表示される

検索エンジンがインデックスを更新するには時間がかかるため、公開を停止したサイトがしばらく検索結果に表示されることがあります。期間は、クロールの頻度や、そのページにリンクしている他のサイトの数などの要因によって異なります。

更新を早めるには、Google Search Consoleから再クロールをリクエストします。 **URL検査** タブを開き、URLを入力して、 **インデックス登録をリクエスト**をクリックします。リクエストはGoogleによって審査され、ページがすでに公開されていない場合はインデックスから削除されます。

Googleで `site:` に続けてサイトのURLを検索すると、サイトがまだインデックスに登録されているか確認できます。

ドキュメントサイトを削除するには、次の手順に従います。

1. を開きます **設定** → **一般**.
2. を選択します [**サイトを削除**](https://gitbook.com/docs/documentation/ja-gitbook-documentation/manage-your-site/site-settings.md#delete-site).

サイトを削除すると、設定とカスタマイズが完全に削除されます。コンテンツは組織内に残ります。 [すべてのコンテンツ](https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/content-structure/all-content.md).


---

# 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.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.
