> 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は、非公開に設定されていない公開サイトのサイトマップを自動生成します。確認するには、サイトのホームURLの末尾に `/sitemap-pages.xml` を追加します。たとえば、 [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に影響することがあります。 [リダイレクト](https://gitbook.com/docs/documentation/ja-gitbook-documentation/publish/site-redirects.md) を設定して、古いURLから新しいURLに転送しましょう。

ページを移動または名前変更すると、GitBookは古いURLから新しいURLへの [HTTP 307リダイレクト](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/307) を自動的に作成します。 [自動リダイレクトについて詳しく見る →](https://gitbook.com/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 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/seo.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.
