mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
ac7bf98ad1
Our method of loading a subset of client settings into tests via tests/helpers/site-settings.js can be improved upon. Currently we have a hardcoded subset of the client settings, which may get out of date and not have the correct defaults. As well as this plugins do not get their settings into the tests, so whenever you need a setting from a plugin, even if it has a default, you have to do needs.setting({ ... }) which is inconvenient. This commit introduces an ember CLI build step to take the site_settings.yml and all the plugin settings.yml files, pull out the client settings, and dump them into a variable in a single JS file we can load in our tests, so we have the correct selection of settings and default values in our JS tests. It also fixes many, many tests that were operating under incorrect assumptions or old settings. Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com> |
||
---|---|---|
.. | ||
assets | ||
config | ||
spec/components | ||
test/javascripts | ||
LICENSE | ||
plugin.rb | ||
README.md |
discourse-details
HTML 5.1 <details>
polyfill for Discourse.
NOTE: Does not work on IE9, but we don't support IE9 as of Jan 1 2016.
Usage
In your posts, surround text with [details=your summary]
... [/details]
.
For example:
I watched the murder mystery on TV last night. [details=Who did it?]The butler did it[/details].
Installation
Follow our Install a Plugin howto, using
git clone https://github.com/discourse/discourse-details.git
as the plugin command.
Issues
If you have issues or suggestions for the plugin, please bring them up on Discourse Meta.
License
MIT