[WordPress] 外掛分享: Github README

首頁外掛目錄 › Github README
20+
安裝啟用
★★★★★
5/5 分(4 則評價)
3570 天前
最後更新
問題解決
WordPress 3.0.1+ v0.2.0 上架:2014-12-31

內容簡介

Github README 外掛允許您使用簡單的 shortcode 在頁面或文章中嵌入來自 Github 的 Markdown。

使用方法:

github_readme

此 shortcode 嵌入該專案的 README。

[github_readme repo=”octalmage/Marknote”]

您還可以使用「trim」選項從自述文件的頂部刪除行:

[github_readme repo=”octalmage/Marknote” trim=”3″]

這對於刪除標題非常有用,因為您的頁面/文章很可能已經有一個標題了。

github_markdown

此 shortcode 嵌入存儲庫中找到的任何 Markdown 文件。

[github_markdown repo=”octalmage/Marknote” file=”README.md”]

也支援 trim、branch 和 cache(緩存秒數)。

github_wikipage

此 shortcode 嵌入項目的 Wiki 頁面。

[github_wikipage repo=”octalmage/Marknote” page=”Syntax”]

也支援 trim 和 cache。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2.0) 或搜尋安裝

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

原文外掛簡介

Github README is a plugin that allows you to embed markdown from GitHub in a page or post using a simple shortcode.
Usage:
github_readme
This shortcode embeds the project’s readme.
[github_readme repo=”octalmage/Marknote”]
You can also trim lines from the top of the readme using the “trim” option:
[github_readme repo=”octalmage/Marknote” trim=”3″]
This is useful for removing titles since your page/post will most likely already have one.
github_markdown
This shortcode embeds any markdown file found in the repository.
[github_markdown repo=”octalmage/Marknote” file=”README.md”]
trim, branch, and cache (seconds to cache) also supported.
github_wikipage
This shortcode embeds pages from a project’s wiki.
[github_wikipage repo=”octalmage/Marknote” page=”Syntax”]
trim and cache also supported.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon