discourse/plugins/spoiler-alert
Jarek Radosz 688f65a39d
DEV: Convert more test assertions to qunit-dom (#29214)
the PR is sponsored by vscode's regex support in find-and-replace 😉
2024-10-15 17:11:20 +02:00
..
assets DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
config Update translations 2024-10-02 08:55:44 +02:00
spec DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
test/javascripts DEV: Convert more test assertions to qunit-dom (#29214) 2024-10-15 17:11:20 +02:00
README.md FEATURE: Bundle discourse-spoiler-alert plugin into core (#24030) 2023-10-23 13:50:43 -06:00
plugin.rb DEV: Remove the last `transpile_js` mentions (#26263) 2024-03-20 15:32:37 +01:00

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