Mathjax plugin for discourse
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 24 commits behind kasperpeulen:master.
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/javascripts
config
README.md
plugin.rb

README.md

discourse-mathjax

Mathjax plugin for Discourse.

Installation

  • Run bundle exec rake plugin:install repo=https://github.com/kasperpeulen/discourse-mathjax in your discourse directory
  • In development mode, run bundle exec rake assets:clean
  • In production, recompile your assets: bundle exec rake assets:precompile
  • Restart Discourse

Installation on top of Docker image

If you have install Discourse on Digital Ocean using a Docker image as described using the Basic Docker Installation Guide then try this:

open "/var/docker/containers/app.yml" using vim or nano.

add 'git clone https://github.com/kasperpeulen/discourse-mathjax' in the after_code hook as follows:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/kasperpeulen/discourse-mathjax

Change directory to /var/docker and run ./launcher rebuild app

If you edited a different yaml file such as '/var/docker/containers/image.yml' then the command would be ./launcher rebuild image.

The app will be down for a minute or so then come back on after the rebuild.