Commit Graph

10 Commits

Author SHA1 Message Date
锦心 830c0436c8
FEATURE: Allow TOC for replies (#90)
* FEATURE: Allow TOC for replies

This commit adds an optional setting that allows enabling a TOC for
replies. TOCs for replies are not affected by autoTOC settings like
`auto_TOC_tags` and must be inserted manually.
2024-08-07 15:40:11 +08:00
Osama Sayegh bbb6e77435
UX: Add missing descriptions for settings and remove dead settings (#83)
This commit adds missing descriptions for the `composer_toc_text` and `TOC_min_heading` settings replaces "dead" settings whose only purpose was to add icons to the SVG sprite with the `svg_icons` modifier in the about.json file.
2024-03-27 15:56:09 +03:00
Vinoth Kannan 55f83a913c
FEATURE: new theme setting to disable TOC in posts with less headings. (#47)
The theme setting `TOC_min_heading` will decide whether the TOC should display or not based on the number of headings available in the post.
2022-11-04 09:41:16 +05:30
Joe 58a1400f55
FEATURE: Automatically add TOC based on topic category / tags (#42)
This PR adds two settings.

One allows admins to select a list of categories that will automatically enable the TOC if the topic category matches.
The other does the same but with tags.

Note that the topic still needs to have the other requirements for TOC, such as having headings. Also, this will still only apply to the first post.

This PR also moves some setting descriptions to the appropriate place.

It also uses `pretender` for the tests instead of generating the fixture manually.
2022-07-26 01:23:19 +08:00
Du Jiajun 2f2c9f387d
FIX: Add Chinese translations (#35) 2022-05-06 10:13:01 -04:00
Joe 6eebb21760
FIX: remove default from setting list 2019-04-15 06:03:46 +08:00
Joe c316cfb31f
DEV: wrap trust level values in quotes 2019-04-15 05:25:23 +08:00
Joe e8375830c3
UX: Trust level should default to 0 2019-04-15 05:21:56 +08:00
Joe 1ee43956c2
DiscoTOC v0.2 2019-04-14 13:47:22 -07:00
Joe 081aae475c
Create settings.yml 2019-03-09 10:03:19 +08:00