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

# SEO

GitBook は、ほとんどの SEO を自動で処理します。公開サイトはレスポンシブで、事前レンダリングされ、グローバル CDN を通じて配信されるため、設定はほとんど必要ありません。

### GitBook が自動的に行うこと

#### レスポンシブデザイン

公開されたコンテンツは、スマートフォン、タブレット、デスクトップなど、あらゆる画面サイズに適応します。

#### URL とメタデータ

* ページの URL は既定ではページタイトルに基づきますが、カスタマイズできます。
* 正規 URL は重複コンテンツの問題を防ぎます。
* HTML と Open Graph のタイトルは、ページタイトルとサイトタイトルから取得されます。
* メタ説明と Open Graph の説明は、ページの説明から取得されます。
* 画像は代替テキストをサポートしており、検索エンジンとアクセシビリティの両方に役立ちます。
* HTML はサーバー側で事前レンダリングされるため、クローラーはコンテンツをインデックスするのに JavaScript を必要としません。

{% hint style="info" %}
GitBook はキーワードメタタグを生成しません。現代の検索エンジンはランキングにそれらを使用しません — [これは Google が 2009 年に確認しました](https://developers.google.com/search/blog/2009/09/google-does-not-use-keywords-meta-tag).
{% endhint %}

#### サイトマップ

GitBook は、非公開に設定されていない公開済みサイトのサイトマップを自動生成します。見つけるには、末尾に `/sitemap-pages.xml` をサイトのホーム URL の末尾に追加します。例: [gitbook.com/docs/sitemap-pages.xml](https://gitbook.com/docs/sitemap-pages.xml).

#### CDN とキャッシュ

公開されたコンテンツはすべてキャッシュされ、グローバル CDN 経由で配信されます。読み込み時間が速いほど、ユーザー体験と検索順位の両方が向上します。

### できること

#### カスタムドメインを設定する

のようなカスタムドメインは、 `docs.example.com` よりも検索での可視性を向上させる場合があります。 `yourorganization.gitbook.io` サブドメインよりも有利です。カスタムドメインを設定する →

#### インデックス速度を改善する

検索エンジンがコンテンツをどれだけ速くインデックスするかは GitBook では制御できませんが、次の 2 つが役立ちます:

1. すでにインデックスされているページからあなたのサイトへリンクします。Google がそれらのページを再クロールすると、あなたのサイトを見つけやすくなります。
2. サイトを Google に直接送信します。これにはカスタムドメインと、TXT DNS レコードによる所有権確認が必要です。 [サイトを Google に送信する →](https://developers.google.com/search/docs/advanced/crawling/ask-google-to-recrawl)

#### リダイレクトを設定する

コンテンツを GitBook に移行したり、サイトを再構成したりすると、既存のリンクが壊れ、SEO に影響する場合があります。を設定して [リダイレクト](/docs/documentation/ja-gitbook-documentation/publish/site-redirects.md) → で古い URL を新しい URL に転送します。

ページを移動または名前変更すると、GitBook は自動的に [HTTP 307 リダイレクト](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/307) を古い URL から新しい URL へ作成します。 [自動リダイレクトについて詳しく見る →](/docs/documentation/ja-gitbook-documentation/publish/site-redirects.md#about-automatic-redirects)


---

# 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/publish/seo.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.
