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. |
||
|---|---|---|
| .github/workflows | ||
| app | ||
| assets | ||
| config | ||
| db/migrate | ||
| lib | ||
| spec | ||
| test/javascripts | ||
| .discourse-compatibility | ||
| .eslintrc | ||
| .gitignore | ||
| .prettierrc | ||
| .rubocop.yml | ||
| .streerc | ||
| .template-lintrc.js | ||
| Gemfile | ||
| Gemfile.lock | ||
| LICENSE | ||
| README.md | ||
| package.json | ||
| plugin.rb | ||
| translator.yml | ||
| yarn.lock | ||
README.md
Discourse Docs Plugin
Find and filter knowledge base topics.
For more information, please see: https://meta.discourse.org/t/discourse-docs-documentation-management-plugin/130172/