內容簡介
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。
外掛標籤
開發者團隊
原文外掛簡介
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.
