discourse/plugins/spoiler-alert
Blake Erickson 89580ee379
FEATURE: Bundle discourse-spoiler-alert plugin into core (#24030)
* FEATURE: Bundle discourse-spoiler-alert plugin into core

Formerly https://github.com/discourse/discourse-spoiler-alert

* DEV: Switch to new addComposerToolbarPopupMenuOption plugin API

`api.addToolbarPopupMenuOptionsCallback` has been deprecated in 913fd3a7b3

This commit was just added to the plugin, so adding it here.

49f86ba72e
2023-10-23 13:50:43 -06:00
..
assets FEATURE: Bundle discourse-spoiler-alert plugin into core (#24030) 2023-10-23 13:50:43 -06:00
config FEATURE: Bundle discourse-spoiler-alert plugin into core (#24030) 2023-10-23 13:50:43 -06:00
spec FEATURE: Bundle discourse-spoiler-alert plugin into core (#24030) 2023-10-23 13:50:43 -06:00
test/javascripts FEATURE: Bundle discourse-spoiler-alert plugin into core (#24030) 2023-10-23 13:50:43 -06:00
plugin.rb FEATURE: Bundle discourse-spoiler-alert plugin into core (#24030) 2023-10-23 13:50:43 -06:00
README.md FEATURE: Bundle discourse-spoiler-alert plugin into core (#24030) 2023-10-23 13:50:43 -06:00

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