项目作者: critcola

项目描述 :
A Discourse plugin for formatting Overwatch hero names in posts, prepending hero icons and correcting hero spelling and character case.
高级语言: JavaScript
项目地址: git://github.com/critcola/discourse-overwatch-hero-icons.git
创建时间: 2016-09-10T09:28:10Z
项目社区:https://github.com/critcola/discourse-overwatch-hero-icons

开源协议:MIT License

下载


Logo

Overwatch Hero Icons for Discourse

This plugin for Discourse formats Overwatch hero names in posts. It tries to intelligently match hero names in users’ posts, including those that are horribly misspelled, correcting their spelling, adding accent marks and other special characters where necessary, and prepending the hero’s icon to their name.

Demo

See it in action and test it out for yourself on Crit Cola’s Discourse.

Installation

Add the plugin’s repository URL to your container’s app.yml file, for example:

  1. hooks:
  2. after_code:
  3. - exec:
  4. cd: $home/plugins
  5. cmd:
  6. - mkdir -p plugins
  7. - git clone https://github.com/critcola/discourse-overwatch-hero-icons.git

Rebuild the container:

  1. cd /var/discourse
  2. ./launcher rebuild app

For the plugin to apply retroactively, you’ll need to rebake old posts:

  1. cd /var/discourse
  2. ./launcher enter app
  3. rake posts:rebake

About Crit Cola

Crit Cola is connecting and empowering the world’s best players. Primarily an Overwatch clan, we’re a growing community of PC gamers. Join our Steam group and follow us on Twitter. Cheers!

Credits

The Overwatch Hero Icons for Discourse plugin, developed by Daniel Marquard, uses vector graphics made by DCMJS, Polygonine, and MissMadison; packaged into a font by 255kb.

License

The Overwatch Hero Icons for Discourse plugin is released under the MIT License.