This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Reposidget (GitHub 仓库挂件)

Description

Insert GitHub repository widget into you posts/pages.

在 WordPress 文章/页面中嵌入 GitHub 仓库挂件。

Screenshots

  • Use shortcode to insert reposidget into the post/page. 使用简码向文章/页面中嵌入 GitHub 仓库。

  • The look of a reposidget. 嵌入文章的仓库挂件。

  • Generate a GitHub personal access token. 生成 GitHub 个人访问令牌。

Installation

  1. Upload the plugin to your /wp-content/plugins/ directory.
    上传插件到您的 WordPress 插件目录。

  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
    登录后台激活插件。

  3. Now you could see the GitHub Repo button in post/page editor.
    进入文章编辑界面,您会看到“GitHub Repo”的快捷按钮。

  4. Click the button and input the owner and name of your GitHub repo.
    点击按钮后,输入您的仓库所有者和名称即可插入短码。

  5. (Optional) Fill in your GitHub personal access token in plugin options page.
    (可选)在插件设置页面填写你的 GitHub 个人访问令牌。

FAQ

  1. Q: Does this plugin support BitBucket?
    A: No. It’s not going to happen until BitBucket API system is actually usable (right now it’s only shit).

    问题:这个插件支持添加 BitBucket 仓库吗?
    回答:不支持,除非 BitBucket API 系统达到实际可用的程度(目前就是一坨屎)。

  2. Q: After upgraded to version 2.x, I got a “Parse error: syntax error, unexpected T_FUNCTION…”, what’s that?
    A: Version 2.x requires PHP 5.3 and above. Please upgrade your PHP environment, or you can continue to use version 1.x.

    问题:升级到 2.x 以后报错,“Parse error: syntax error, unexpected T_FUNCTION…”,是什么原因?
    回答:2.x 要求 PHP 版本不低于 5.3。请升级您的 PHP 环境,或继续使用 1.x 版本。

Contributors & Developers

“WP Reposidget (GitHub 仓库挂件)” is open source software. The following people have contributed to this plugin.

Changelog

2.1.0 (2014-11-23)

  • Add GitHub authentication option.
  • 增加 GitHub 认证选项。

2.0.2 (2014-11-04)

  • Update author’s info and screenshot.
  • 更新作者信息和截图。

2.0.1 (2014-09-03)

  • Back compatible with old shortcode syntax. Fix situation when repo info is wrong.
  • 兼容旧版短码格式。处理仓库信息有误的情况。

2.0.0 (2014-09-02)

  • Completely rewritten. Fix bugs and improve usability. Compatible with WordPress visual style.
  • 完全重写了代码。修复 bug,改善使用体验。兼容 WordPress 界面风格。

1.0.3 (2014-05-10)

  • Be compatible with GitHub API change.
  • 修复 GitHub API 变更。

1.0.2 (2013-05-23)

  • Format numbers.
  • 格式化数字。

1.0.1 (2013-05-23)

  • Add support to rich editor. Add support to language translation.
  • 支持可视化编辑器。支持多语言。

1.0.0 (2013-05-22)

  • First drop.
  • 发布第一个版本。