A plugin for discourse to hide spoilers behind the spoiler-alert jQuery plugin
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
config
spec
test/javascripts/acceptance
.eslintrc
.gitignore
.jshintrc FIX: Avoid `PostView.prototype.on` errors May 20, 2014
.rubocop.yml
LICENSE
README.md Update installation instructions Jul 1, 2016
plugin.rb

README.md

discourse-spoiler-alert

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