這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Reposidget (GitHub 仓库挂件)

外掛說明

Insert GitHub repository widget into you posts/pages.

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

螢幕擷圖

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

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

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

安裝方式

  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 个人访问令牌。

常見問題集

  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 版本。

使用者評論

2020 年 10 月 23 日
Thank you! This is the best plugin to embed a repo in WP by far. It works in (currently the lastest) v5.5.1
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Reposidget (GitHub 仓库挂件)〉的開發相關工作。

參與者

變更記錄

2.1.1 (2021-01-19)

  • Fix constant definition issue.
  • 修复常量定义的问题。

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.
  • 发布第一个版本。