插件目录 » Gist 嵌入
|
作者 | Alex Dergachev |
---|---|---|
网站 | https://github.com/dergachev/redmine_gist | |
代码仓库 | https://github.com/dergachev/redmine_gist | |
注册于 | 2012-11-15 (超过11年前) | |
当前版本 | 0.1.0 | |
兼容 | Redmine 2.3.x, 2.2.x, 2.1.x, 2.0.x, 1.4.x, 1.3.x, 1.2.x | |
用户评分 |
Redmine 插件,添加了一个 {{gist}} 宏,可以将 Github Gists 嵌入 Redmine。
要嵌入公开的 Gist https://gist.github.com/4033291 : {{gist(4033291)}}
您也可以嵌入 Gist 中的特定文件:{{gist(4033291,README.md)}}
私有 Gist 也同样适用:{{gist(28c72d38da181f38bbb9)}}
您还可以直接粘贴 Gist URL:{{gist(https://gist.github.com/4033291)}}
请注意在嵌入特定文件时使用 URL 语法。如果文件名包含大写字母(例如 "README.md"),Gist 生成的永久链接会将文件名转换为小写(例如 "https://gist.github.com/4033291#file_readme.md"),这将阻止插件提取原始文件名并破坏嵌入。相反,将文件名作为第二个参数提供:{{{gist(https://gist.github.com/4033291,README.md)}}
安装说明
- cd PATH_TO_REDMINE/vendor/plugins
- git clone git://github.com/dergachev/redmine_gist.git gist
- 重启 Redmine 网络服务器)
变更日志
0.1.0 (2012-11-15)
兼容 Redmine 2.3.x, 2.2.x, 2.1.x, 2.0.x, 1.4.x, 1.3.x, 1.2.x。