[WordPress] 外掛分享: GitSwag

前言介紹

  • 這款 WordPress 外掛「GitSwag」是 2013-12-29 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2014-06-13,距離現在已有 3978 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.2 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

kennethrapp |

外掛標籤

Github |

內容簡介

GitSwag使用Github的公共API來顯示Github帳戶的數據。為了避免被限制速率,它會在本地緩存API的JSON數據,並在可以的情況下使用該緩存。您可以顯示用戶資料、存儲庫列表、單個存儲庫的標頭、預覽文件或要點。

管理

在“GitSwag”的設置選項卡中,輸入您的Github用戶名,選擇“更新快存”勾選框,並提交以更改您的用戶名。可以通過勾選文件旁的框並提交來刪除該用戶名下的文件。

插件不會立即反映對您的Github存儲庫進行的任何更改,您需手動刪除緩存。

Composer更新

此外掛包含http://getcomposer.org 和自動加載器來實現http://parsedown.org/庫。

為節省空間,未包括composer.phar。

Parsedown是以MIT授權發布的。

短代碼

顯示單個用戶的個人檔案
[gitswag_user_view github_username=”username”]

顯示用戶的存儲庫列表
[gitswag_repo_list github_username=”username”]

顯示存儲庫的數據
[gitswag_repo_view github_username=”username” github_repo=”reponame”]

預覽文件
[gitswag_file_view github_username=”username” github_repo=”reponame” path=”path/to/” filename=”file.txt”]

列出用戶的要點
[gitswag_gist_list github_username=”username”]

預覽要點
[gitswag_gist_view gist_id=”id”]

顯示存儲庫的README文檔
[gitswag_readme github_username=”username” github_repo=”reponame”]

管理

由於Github的公共API受限制,因此此插件將從API調用中下載和保持.json文件和README標記的緩存版本,當需要反映更改時,需要在管理面板中刪除它們。您可以選擇文件並提交以刪除它們。

原文外掛簡介

GitSwag displays data from a Github account using Github’s public API. In order to avoid
rate-limiting, it caches the JSON from the API locally, and refers to that whenever
available. You can display a user profile, list of repositories, header for a single
repository, preview files or gists.
Administration
In “GitSwag” under the settings tab, enter your github username, select the
“update cache” checkbox and submit to change your username. Files under that
username can be deleted by checking the box next to the file and submitting.
Any changes you make to your github repo won’t be reflected immediately by
the plugin, you’ll have to manually delete the cache first.
Composer Updating
This plugin includes http://getcomposer.org and an autoloader to implement
the http://parsedown.org/ library.
To save a bit of space, composer.phar isn’t included with this plugin.
Parsedown is [https://github.com/erusev/parsedown/blob/master/LICENSE.txt](MIT licensed)
Shortcode
Display the profile of a single user
[gitswag_user_view github_username=”username”]
Display a list of repos for a user
[gitswag_repo_list github_username=”username”]
View data for a repository
[gitswag_repo_view github_username=”username” github_repo=”reponame”]
Preview a file
[gitswag_file_view github_username=”username” github_repo=”reponame” path=”path/to/” filename=”file.txt”]
List gists by a user
[gitswag_gist_list github_username=”username”]
Preview a gist
[gitswag_gist_view gist_id=”id”]
display the readme for a repo
[gitswag_readme github_username=”username” github_repo=”reponame”]
Administration
Because the public github API is rate limited, this plugin will download and keep a cached
version of the .json files and readme markdown from API calls locally, and will need to be deleted
in the admin panel when a change needs to be reflected. You can select a file and submit to delete them.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「GitSwag」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • Github Embed 》此外掛允許您只需貼上 URL,即可嵌入 GitHub 的詳細資訊,就像您嵌入其他嵌入來源一樣。目前支援:, , 資料庫, 使用者檔案, 專案里程碑摘要, 專案貢獻者, , ...。
  • Jekyll Exporter 》nclude information relevant to the issue you are reporting., , , 功能, , 將所有文章、頁面和 WordPress 設定轉換為 Markdown 和 YAML 格式,可用於 Jeky...。
  • Pastacode 》使用 Pastacode,您可以輕鬆地將代碼加入您的文章中,並使用宏偉的 PrismJs 着色庫。, 您可以將源代碼插入到文章編輯器中,直接將其寫入編輯器中(使用 Guten...。
  • Embed Block for GitHub 》這個外掛能夠在區塊編輯器中加入 GitHub 儲存庫嵌入區塊。, 此外掛是在 GitHub 上開發的,歡迎貢獻!, 特別感謝:, – @pedro-mendonca 提供 i18n/l10n ...。
  • WordPress GitHub Sync 》這是一個 WordPress 外掛,可以將內容與 GitHub 儲存庫(或 Jekyll 網站)進行同步, , 如果您希望能夠協同撰寫 WordPress 網站的內容(或公開展示更改歷史...。
  • Documents from Git 》官方文件: https://github.com/gis-ops/wordpress-markdown-git, 這個WordPress外掛讓您能夠輕鬆地從您最喜愛的遠端Git平台上發布、協作和版本控制您的[...。
  • Git it Write – Write posts from GitHub 》Git it Write允許將存儲在Github存儲庫中的markdown文件發布到您的WordPress網站中。因此,使用此外掛程序,當存儲庫中添加、更新文件時,WordPress文章將相...。
  • Gist GitHub Shortcode 》這款外掛可以通過使用 shortcode 在您的文章中添加 Github Gists。, 範例:, 添加完整的 gist:, [gist id="3837669"], , 添加 gist 中的特定文件:, [gist i...。
  • Embed Repo For Github 》以下為繁體中文總結:, , 透過這款 WordPress 外掛,您可以把自己的 GitHub 倉庫嵌入 WordPress 網站的各個區域,快速簡單地展示您的作品。以下為使用方法。,...。
  • External Markdown 》這是一個 WordPress 外掛,可使用短碼 [external_markdown] 從外部網站(例如 GitHub、GitLab 等)嵌入 Markdown 文件到 WordPress 內容中。可能的使用情況是...。
  • Embed GitHub Gist 》這個專案可以在 GitHub 上進行 Fork:, , https://github.com/dflydev/embed-github-gist, , 嵌入GitHub Gists, 到 WordPress 中。提供文章和頁面的縮碼,還有...。
  • Canvas-Nest.js 》Canvas-nest.js是 GitHub 上一個非常華麗的開源專案,它使用不到2kb的Javascript代碼,構造一個炫酷的網頁背景效果。該專案的網址是:https://github.com/aTo...。
  • WP Github 》WP Github 提供三個側邊欄小工具,可配置為在側邊欄中顯示來自 Github 的公開資料,包括個人資料、存儲庫、提交、問題和 Gist。您可以配置任意多個小工具以顯...。
  • GitHub Release Downloads 》gs » GitHub Release Downloads, you can set default values for user and repo attributes, as well as change the downloads suffix string and sel...。
  • Mytory Markdown 》ugin allows you to convert Markdown files to HTML and display them in your post content. You can provide a URL for the Markdown file, like a GitHub...。

文章
Filter
Apply Filters
Mastodon