discourse-docs/app
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
..
controllers/docs FEATURE: Optionally show topic excerpts in docs index 2023-06-09 13:09:40 +10:00
views/docs/docs FIX: Use new robots.txt API (#101) 2022-07-13 19:53:56 +03:00