> 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/kontentsuwosuru/blocks/expandable.md).

# 展開可能

展開可能ブロックをページに追加して、ページを短く保ったり、長いコンテンツを隠したり、FAQ を作成したりできます

展開ブロックは、そうでなければ長い段落になってしまう内容を要約するのに役立ちます。また、手順ガイドやFAQにも最適です。

デフォルトでは、公開済みのドキュメントサイトでは展開ブロックは折りたたまれた状態になります。展開ブロックをデフォルトで展開したい場合は、ブロックの **オプションメニュー** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FaS1QvPIBVYwhpFTGcPBN%2Foptions-menu.svg?alt=media&amp;token=3ee40bbf-f4fb-41fa-aa30-306b559cbe88" alt=""></picture> を選択し、 **デフォルトで展開**.

### 例

<details open>

<summary>ステップ1: 展開ブロックを使い始める</summary>

展開ブロックを追加するには、 `/` 空のブロックで、または `+` エディター左側の をクリックして、 **展開可能**.

オプションとして、展開済みブロックを **デフォルトで展開** に設定できます **オプションメニュー** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FaS1QvPIBVYwhpFTGcPBN%2Foptions-menu.svg?alt=media&amp;token=3ee40bbf-f4fb-41fa-aa30-306b559cbe88" alt=""></picture> — まさにこのブロックのように。

</details>

<details>

<summary>ステップ2: ブロックにコンテンツを追加する</summary>

展開ブロックを挿入したら、リストやコードブロックを含め、そこにコンテンツを追加できます。

</details>

## Markdownでの表記

{% code overflow="wrap" %}

```markdown
# 展開ブロック

<details open>

<summary>展開ブロックのタイトルをここに追加</summary>

展開ブロックの本文をここに追加します。この展開ブロックはデフォルトで展開されています。

</details>

<details>

<summary>展開ブロックのタイトルをここに追加</summary>

展開ブロックの本文をここに追加します。この展開ブロックはデフォルトで折りたたまれています。

</details>
```

{% endcode %}

### 制限事項

展開ブロック内で作成できるブロックにはいくつか制限があります。展開ブロックには次の種類のコンテンツを挿入できます:

* 段落
* 見出し（1、2、3）
* 箇条書き、番号付きリスト、タスクリスト
* インライン画像

完全な一覧をいつでも確認するには、展開ブロック内で新しい行を開始して、 `/` を押して挿入パレットを表示すると、追加できるすべてのブロックを確認できます。


---

# 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/kontentsuwosuru/blocks/expandable.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.
