[WordPress] 外掛分享: Writing On GitHub

首頁外掛目錄 › Writing On GitHub
10+
安裝啟用
★★★★
4.7/5 分(3 則評價)
2172 天前
最後更新
問題解決
WordPress 3.9+ v1.11 上架:2017-03-20

內容簡介

一個 WordPress 外掛,讓您可以在 GitHub 上撰寫文章 (或 Jekyll 網站)。

這個外掛的部份程式碼來自於WordPress GitHub Sync,感謝。

有沒有開心想過您可以和他人共同撰寫 WordPress 網站的內容 (或公開更改歷史並接受讀者的 pull request)?

現在您可以實現了!這就是Writing On GitHub!

Writing On GitHub 可以完成三個任務:

讓發布者在 GitHub 上進行版本控制
讓讀者透過 GitHub 的 Pull Request 提交 WordPress 內容的預期改進

Writing On GitHub 也可以做其他的一些酷炫事情:

讓團隊利用 GitHub 協作編寫和編輯文章 (例如:pull request、問題、評論)
讓您通過 GitHub 同步兩個不同 WordPress 安裝的內容
讓您在“部署”到生產伺服器之前先進行預覽和預測內容

它是如何運作的

同步操作基於兩個 Hooks:

每篇文章的同步操作是響應 WordPress 的save_post Hook 觸發的,它會將內容推送到 GitHub
所有更改的檔案的同步操作是由 GitHub 的push Webhook 觸發的 (Outbound API Call)

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.11) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Writing On GitHub」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A WordPress plugin to allow you writing on GitHub (or Jekyll site).
Some code for this plugin comes from WordPress GitHub Sync, thanks.
Ever wish you could collaboratively author content for your WordPress site (or expose change history publicly and accept pull requests from your readers)?
Well, now you can! Introducing Writing On GitHub!
Writing On GitHub does three things:

Allows content publishers to version their content in GitHub
Allows readers to submit proposed improvements to WordPress-served content via GitHub’s Pull Request model

Writing On GitHub might be able to do some other cool things:

Allow teams to collaboratively write and edit posts using GitHub (e.g., pull requests, issues, comments)
Allow you to sync the content of two different WordPress installations via GitHub
Allow you to stage and preview content before “deploying” to your production server

How it works
The sync action is based on two hooks:

A per-post sync fired in response to WordPress’s save_post hook which pushes content to GitHub
A sync of all changed files triggered by GitHub’s push webhook (outbound API call)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon