mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 17:50:25 +08:00
32665cf9dd
Enables our new eslint rules which enforce consistent i18n imports. For more info, see
|
||
---|---|---|
.. | ||
assets | ||
config | ||
spec | ||
test/javascripts | ||
plugin.rb | ||
README.md |
discourse-spoiler-alert
https://meta.discourse.org/t/discourse-spoiler-alert/12650/
Spoiler plugin for Discourse highly inspired by the spoiler-alert jQuery plugin.
Usage
In your posts, surround text or images with [spoiler]
... [/spoiler]
.
For example:
I watched the murder mystery on TV last night. [spoiler]The butler did it[/spoiler].
Installation
- Add the plugin's repo url to your container's
app.yml
file
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-spoiler-alert.git
- Rebuild the container
cd /var/discourse
git pull
./launcher rebuild app
License
MIT