mirror of
https://github.com/discourse/DiscoTOC.git
synced 2025-02-18 01:15:01 +00:00
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.
23 lines
391 B
YAML
23 lines
391 B
YAML
minimum_trust_level_to_create_TOC:
|
|
default: 0
|
|
type: enum
|
|
choices:
|
|
- 1
|
|
- 2
|
|
- 3
|
|
- 4
|
|
composer_toc_text:
|
|
default: "This topic will contain a table of contents"
|
|
table_of_contents_icon:
|
|
default: "align-left"
|
|
anchor_icon:
|
|
default: "hashtag"
|
|
auto_TOC_categories:
|
|
type: list
|
|
list_type: category
|
|
default: ""
|
|
auto_TOC_tags:
|
|
type: list
|
|
list_type: tag
|
|
default: ""
|