From a608c71635d69bf571538af1184b3900fcac93c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Thu, 4 Jul 2024 20:49:04 +0900 Subject: [PATCH 1/2] docs(helpers/toc): `max_items` option `>=7.3.0` --- source/docs/helpers.md | 25 +++++++++++++------------ source/ja/docs/helpers.md | 1 + 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/source/docs/helpers.md b/source/docs/helpers.md index 9fec5e4ad6..0f67e9a5f9 100644 --- a/source/docs/helpers.md +++ b/source/docs/helpers.md @@ -945,18 +945,19 @@ Parses all heading tags (h1~h6) in the content and inserts a table of contents. <%- toc(str, [options]) %> ``` -| Option | Description | Default | -| ----------------------- | -------------------------------------- | ----------------- | -| `class` | Class name | `toc` | -| `class_item` (+6.3.0) | Class name of item | `${class}-item` | -| `class_link` (+6.3.0) | Class name of link | `${class}-link` | -| `class_text` (+6.3.0) | Class name of text | `${class}-text` | -| `class_child` (+6.3.0) | Class name of child | `${class}-child` | -| `class_number` (+6.3.0) | Class name of number | `${class}-number` | -| `class_level` (+6.3.0) | Class name prefix of level | `${class}-level` | -| `list_number` | Displays list number | true | -| `max_depth` | Maximum heading depth of generated toc | 6 | -| `min_depth` | Minimum heading depth of generated toc | 1 | +| Option | Description | Default | +| ----------------------- | ---------------------------------------- | ----------------- | +| `class` | Class name | `toc` | +| `class_item` (+6.3.0) | Class name of item | `${class}-item` | +| `class_link` (+6.3.0) | Class name of link | `${class}-link` | +| `class_text` (+6.3.0) | Class name of text | `${class}-text` | +| `class_child` (+6.3.0) | Class name of child | `${class}-child` | +| `class_number` (+6.3.0) | Class name of number | `${class}-number` | +| `class_level` (+6.3.0) | Class name prefix of level | `${class}-level` | +| `list_number` | Displays list number | true | +| `max_depth` | Maximum heading depth of generated toc | 6 | +| `min_depth` | Minimum heading depth of generated toc | 1 | +| `max_items` (+7.3.0) | Maximum number of items in generated toc | `Infinity` | **Examples:** diff --git a/source/ja/docs/helpers.md b/source/ja/docs/helpers.md index 25b88fc97e..d205fb9b60 100644 --- a/source/ja/docs/helpers.md +++ b/source/ja/docs/helpers.md @@ -955,6 +955,7 @@ Google検索フォームを挿入します。 | `list_number` | リスト番号を表示するか? | true | | `max_depth` | 生成される目次の最大見出し深さ | 6 | | `min_depth` | 生成される目次の最小見出し深さ | 1 | +| `max_items` (7.3.0以上) | 生成される目次の最大項目数 | `Infinity` | **例:** From b61f87eb9a95e6894417fb17075449028702a52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Sat, 6 Jul 2024 09:39:52 +0900 Subject: [PATCH 2/2] fix: remove ja translation --- source/ja/docs/helpers.md | 1 - 1 file changed, 1 deletion(-) diff --git a/source/ja/docs/helpers.md b/source/ja/docs/helpers.md index d205fb9b60..25b88fc97e 100644 --- a/source/ja/docs/helpers.md +++ b/source/ja/docs/helpers.md @@ -955,7 +955,6 @@ Google検索フォームを挿入します。 | `list_number` | リスト番号を表示するか? | true | | `max_depth` | 生成される目次の最大見出し深さ | 6 | | `min_depth` | 生成される目次の最小見出し深さ | 1 | -| `max_items` (7.3.0以上) | 生成される目次の最大項目数 | `Infinity` | **例:**