內容簡介
WP Github 提供三個側邊欄小工具,可配置為在側邊欄中顯示來自 Github 的公開資料,包括個人資料、存儲庫、提交、問題和 Gist。您可以配置任意多個小工具以顯示不同的存儲庫。
目前,此外掛可列出以下內容:
個人資料
存儲庫
提交
問題
Gist
拉取要求
單個問題
嵌入檔案內容(帶有高亮顯示)
使用 CSS
此外掛使用基本的無序列表進行列舉。未來將實施一個簡單的模板系統以實現客製化。
您只需上傳名為 custom.css 的文件到外掛資料夾中,即可向外掛應用自定義風格。這樣可以升級外掛而不會丟失自定義風格。
快取
外掛會快取從 Github 中擷取的所有資料,以避免超過 API 調用限制。快取時間為 10 分鐘。
自 1.1 版本以來,您可以在 WordPress 設置中的外掛設定頁面中清除快取。
自 1.2.6 版本以來,您可以添加您的 Github 憑證。
支援
如果您發現錯誤/問題或有功能請求,請在此處報告:https://github.com/seinoxygen/wp-github/issues
外掛標籤
開發者團隊
原文外掛簡介
WP Github provides three sidebar widgets which can be configured to display public profile, repositories, commits, issues and gists from github in the sidebar. You can have as many widgets as you want configured to display different repositories.
Currently the plugin can list:
Profile
Repositories
Commits
Issues
Gists
Pull request
Single Issue
Embed File content (with highlighter)
Using CSS
The plugin uses a basic unordered lists to enumerate. In the future will be implemented a simple template system to increase the customization.
You can apply a customized style to the plugin simply uploading a file called custom.css in the plugin folder. It will allow you to upgrade the plugin without loss your custom style.
Caching
The plugin caches all the data retrieved from Github every 10 minutes to avoid exceed the limit of api calls.
Since version 1.1 you can clear the cache from the plugin settings page located in the WordPress settings menu.
Since version 1.2.6 you can add your github credentials
Support
If you have found a bug/issue or have a feature request please report here: https://github.com/seinoxygen/wp-github/issues
