discourse-docs/spec
Martin Brennan a6f165b142
FEATURE: Optionally show topic excerpts in docs index
This commit adds a new docs_show_topic_excerpts site setting
which, when enabled and used in conjunction either with the
always_include_topic_excerpts site setting or the
serialize_topic_excerpts theme modifier.

For the theme modifier, this commit also fixes an issue
with the Docs::Query class. Since we were re-initializing
Guardian within the class (rather than using the guardian
passed down from the controller), we did not have the request
information needed to determine theme_id, which meant that
the theme modifier had no effect. We now pass down guardian
from the controller instead. In general guardian is almost
always better than a user object, since we can always just
call guardian.user.

Adds a simple system spec as well.
2023-06-09 13:09:40 +10:00
..
requests DEV: Introduce syntax_tree for ruby formatting (#118) 2022-12-29 13:31:34 +01:00
serializers DEV: Introduce syntax_tree for ruby formatting (#118) 2022-12-29 13:31:34 +01:00
system FEATURE: Optionally show topic excerpts in docs index 2023-06-09 13:09:40 +10:00