Skip to content

Commit

Permalink
Fix: 更新主题配置文档,修复目录编号无法配置的问题 (hugo-fixit/FixIt#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Sep 27, 2024
1 parent 6c1853e commit 0333f52
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
6 changes: 0 additions & 6 deletions config/_default/markup.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@
[goldmark]
_merge = "shallow"

# Table Of Contents settings
# 目录设置
[tableOfContents]
ordered = false
startLevel = 2
endLevel = 6
9 changes: 7 additions & 2 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,11 @@ disableThemeInject = false
# FixIt 0.2.13 | NEW position of TOC ["left", "right"]
# FixIt 0.2.13 | 新增 目录位置 ["left", "right"]
position = "right"
# FixIt 0.3.12 | NEW supersede `markup.tableOfContents` settings
# FixIt 0.3.12 | 新增 取代 `markup.tableOfContents` 设置
ordered = false
startLevel = 2
endLevel = 6
# FixIt 0.2.13 | NEW Display a message at the beginning of an article to warn the reader that its content might be expired.
# FixIt 0.2.13 | 新增 在文章开头显示提示信息,提醒读者文章内容可能过时。
[page.expirationReminder]
Expand All @@ -825,8 +830,8 @@ disableThemeInject = false
# FixIt 0.3.3 | NEW whether to capitalize automatic text of headings
# FixIt 0.3.3 | 新增 是否自动大写标题
capitalize = true
# 配合 `markup.tableOfContents.ordered` 参数使用
# used with `markup.tableOfContents.ordered` parameter
# FixIt 0.3.12 | CHANGED must set `params.page.toc.ordered` to true
# FixIt 0.3.12 | 更改 必须设置 `params.page.toc.ordered` 为 true
[page.heading.number]
# whether to enable auto heading numbering
# 是否启用自动标题编号
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,10 @@ c4u
auto = true
# {{< version 0.2.13 >}} position of TOC ["left", "right"]
position = "right"
# {{< version 0.3.12 >}} supersede `markup.tableOfContents` settings
ordered = false
startLevel = 2
endLevel = 6
# {{< version 0.2.13 >}} Display a message at the beginning of an article to warn the reader that its content might be expired
[params.page.expirationReminder]
enable = false
Expand All @@ -1367,7 +1371,7 @@ c4u
[params.page.heading]
# {{< version 0.3.6 >}} whether to capitalize automatic text of headings
capitalize = false
# used with `markup.tableOfContents.ordered` parameter
# {{< version 0.3.12 changed >}} must set `params.page.toc.ordered` to true
[params.page.heading.number]
# whether to enable auto heading numbering
enable = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,10 @@ c4u
auto = true
# {{< version 0.2.13 >}} 目录位置 ["left", "right"]
position = "right"
# {{< version 0.3.12 >}} 取代 `markup.tableOfContents` 设置
ordered = false
startLevel = 2
endLevel = 6
# {{< version 0.2.13 >}} 在文章开头显示提示信息,提醒读者文章内容可能过时
[params.page.expirationReminder]
enable = false
Expand All @@ -1358,7 +1362,7 @@ c4u
[params.page.heading]
# {{< version 0.3.6 >}} 是否自动大写标题
capitalize = false
# 配合 `markup.tableOfContents.ordered` 参数使用
# {{< version 0.3.12 changed >}} 必须设置 `params.page.toc.ordered` 为 true
[params.page.heading.number]
# 是否启用自动标题编号
enable = false
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/hugo-fixit/docs
go 1.20

require (
github.com/hugo-fixit/FixIt v0.3.12-0.20240925102835-954d86432f3e // indirect
github.com/hugo-fixit/FixIt v0.3.12-0.20240927091017-456db3851b37 // indirect
github.com/hugo-fixit/component-projects v1.1.3 // indirect
github.com/hugo-fixit/shortcode-caniuse v1.1.3 // indirect
github.com/hugo-fixit/shortcode-rewards v1.0.4 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/hugo-fixit/FixIt v0.3.12-0.20240925102835-954d86432f3e h1:7a6PDPQVPr/Ch3MB6M6J4Bqa4RDB8YhcLuCIp9hUsn4=
github.com/hugo-fixit/FixIt v0.3.12-0.20240925102835-954d86432f3e/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/FixIt v0.3.12-0.20240927091017-456db3851b37 h1:rSCRSgUN98Lv4aP9cG8SeJlwgWp5j/lPPHM3W+65gRs=
github.com/hugo-fixit/FixIt v0.3.12-0.20240927091017-456db3851b37/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/component-projects v1.1.3 h1:iK6q07CpFsnnJGh8q2stVjv6Lr77dTM9o+P7LGDEYmE=
github.com/hugo-fixit/component-projects v1.1.3/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c=
github.com/hugo-fixit/shortcode-caniuse v1.1.3 h1:U1YBJz5SI/d1BBQhHcD0eVgJdCcpzK2usSizPiu+a4w=
Expand Down

0 comments on commit 0333f52

Please sign in to comment.