Plugins Directory » Gist Embed

8489 Author: Alex Dergachev
Website: https://github.com/dergachev/redmine_gist
Code repository: https://github.com/dergachev/redmine_gist
Registered on: 2012-11-15 (about 9 years ago)
Current version: 0.1.0
Compatible with: Redmine 2.3.x, 2.2.x, 2.1.x, 2.0.x, 1.4.x, 1.3.x, 1.2.x
User ratings:   (0)

Redmine plugin adding a {{gist}} macro that embeds Github Gists into Redmine.

To embed the public gist https://gist.github.com/4033291 : {{gist(4033291)}}

You can embed a specific file from a gist: {{gist(4033291,README.md)}}

Private gists work too: {{gist(28c72d38da181f38bbb9)}}

You can also just paste in the gist URL: {{gist(https://gist.github.com/4033291)}}

Be careful about using the URL syntax when embedding specific files. If the filename has any capital letters (eg "README.md"), the permalink gist generates will downcase the filename (eg "https://gist.github.com/4033291#file_readme.md"), preventing the plugin from extracting the original filename and breaking the embedding. Instead, provide the filename as second argument: {{{gist(https://gist.github.com/4033291,README.md)}}

Installation notes

  1. cd PATH_TO_REDMINE/vendor/plugins
  2. git clone git://github.com/dergachev/redmine_gist.git gist
  3. restart Redmine web server)

Changelog

0.1.0 (2012-11-15)

Compatible with Redmine 2.3.x, 2.2.x, 2.1.x, 2.0.x, 1.4.x, 1.3.x, 1.2.x.