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

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

コンテンツの作成、編集、またはインポートが終わったら、選択した対象に公開します。

ドキュメントサイトのコンテンツは、その [セクション](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure.md)にあります。編集する構造が、そのまま訪問者が見る構造になります。新しいセクションは下書きとして開始されるため、公開サイトに何を表示するかを管理できます。

<figure><img src="/files/817aea365a7353ef56d0f177b3af6b5f0395b213" alt="A GitBook screenshot showing the organization Home"><figcaption><p>組織のホーム。</p></figcaption></figure>

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

ドキュメントサイトを作成するには:

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

完全なセットアップ手順については、 [クイックスタート](/docs/documentation/ja-gitbook-documentation/getting-started/quickstart.md).

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

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

サイトを公開するには:

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

サイトは既定で公開設定です。サイトの公開範囲は **設定** → **対象ユーザー**で変更できます。 [サイト設定](/docs/documentation/ja-gitbook-documentation/docs-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="/files/cb1971059239661bb65858a90ab89725696d5b92">/files/cb1971059239661bb65858a90ab89725696d5b92</a></td><td><a href="/pages/c5c354d06ca0a289769924b65c272164f0ececa6">/pages/c5c354d06ca0a289769924b65c272164f0ececa6</a></td><td><a href="/files/9648ee6466f25a7e326409a9dcc83703938e6417">/files/9648ee6466f25a7e326409a9dcc83703938e6417</a></td><td></td><td><a href="/files/9648ee6466f25a7e326409a9dcc83703938e6417">/files/9648ee6466f25a7e326409a9dcc83703938e6417</a></td></tr><tr><td><strong>共有リンク付きの非公開</strong></td><td>ドキュメントを非公開の共有リンクで公開します。</td><td></td><td><a href="/files/84e35681c21d6d4d7db823138ee01649d69cce02">/files/84e35681c21d6d4d7db823138ee01649d69cce02</a></td><td><a href="/pages/57b7d007114295d97769745a2817beca8d929c0a">/pages/57b7d007114295d97769745a2817beca8d929c0a</a></td><td></td><td><a href="/files/66d5fddc58cf27ee8274f19b177f4ca41c99cd4f">/files/66d5fddc58cf27ee8274f19b177f4ca41c99cd4f</a></td><td><a href="/files/53edd0b34c5b80c53d073f26f68d6dced83e2118">/files/53edd0b34c5b80c53d073f26f68d6dced83e2118</a></td></tr><tr><td><strong>認証済みアクセス</strong></td><td>公開したドキュメントを OAuth サインインの背後で保護します。</td><td></td><td><a href="/files/7361e1134d4303679e584fb16ddb918f8b059bf0">/files/7361e1134d4303679e584fb16ddb918f8b059bf0</a></td><td><a href="/pages/cf533be56f0519f78f90095264d1f06ed6678c1d">/pages/cf533be56f0519f78f90095264d1f06ed6678c1d</a></td><td></td><td></td><td><a href="/files/89d955937f6003946e0758773795b48b45e417d4">/files/89d955937f6003946e0758773795b48b45e417d4</a></td></tr></tbody></table>

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

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

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

サイトの公開を解除するには、 **設定** → **一般** を開いて **サイトの公開を解除**を選択します。確認後、サイトは訪問者がアクセスできなくなります。

公開解除しても請求額は変わりません。料金対象のサイト数を調整するには、組織の請求設定でプランを更新してください。

#### 公開解除または削除したのに、私のサイトにはまだアクセスできます

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

#### 私のサイトはまだ検索エンジンに表示されます

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

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

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

ドキュメントサイトを削除するには:

1. 開く **設定** → **一般**.
2. 選択 [**サイトを削除**](/docs/documentation/ja-gitbook-documentation/docs-site/site-settings.md#delete-site).

サイトを削除すると、その設定とカスタマイズは完全に削除されます。コンテンツは組織内に残ります。 [すべてのコンテンツ](/docs/documentation/ja-gitbook-documentation/creating-content/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 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.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.
