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

GitHub Repository Shortcode

外掛說明

If you are a programmer who uses GitHub then why not share your coding projects via your WordPress blog by adding a snapshot
of your repository on any page or post using shortcode.

Simply install the plugin and add the shortcode [gitrepo author=”author” repo=”repo”] to the desired location; changing the attributes to that of your desired repository.

Features include:

  • Cached using Transient
  • Styles appearance with a GitHub banner
  • Shows the repository description
  • Adds a link to the repository on GitHub
  • Shows statistics for Forks, Stars, Open Issues
  • Provides a link to the latest tag (if one exists)
  • Displays the code to clone the repository
  • Can be used with or without a GitHub API Token

螢幕擷圖

  • An example showing the results of the shortcode [gitrepo author="wordpress" repo="wordpress"]

安裝方式

This section describes how to install the plugin and get it working.

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Add the shortcode [wpplugin author=”author” repo=”repo”] to the desired location
  4. If desired, add a GitHub API Token and/or alter the cache timeout on the admin page Settings->F13 GitHub Repo Shotcode

常見問題集

Is a GitHub API token required

No… Although it is recommended, especially if you wish to have the cache timeout set to a low value, or if you use multiple instances of the shortcode.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈GitHub Repository Shortcode〉的開發相關工作。

參與者

將〈GitHub Repository Shortcode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Initial release