mirror of
https://github.com/discourse/DiscoTOC.git
synced 2025-02-16 16:34:49 +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.
10 lines
458 B
YAML
10 lines
458 B
YAML
en:
|
|
table_of_contents: table of contents
|
|
insert_table_of_contents: Insert table of contents
|
|
post_bottom_tooltip: Navigate to post controls
|
|
theme_metadata:
|
|
settings:
|
|
minimum_trust_level_to_create_TOC: The minimum trust level a user must have in order to see the TOC button in the composer
|
|
auto_TOC_categories: automaticlly enable TOC on topics in these categories
|
|
auto_TOC_tags: automaticlly enable TOC on topics with these tags
|