這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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.

評價

2017年1月2日
As described... it work fine and very well! One suggestion: from the guide https://guides.github.com/features/mastering-markdown/ the relative images are resolved with absolute path on the github repository.
閱讀全部4個評價

貢獻者及開發者

“Github README” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Github README 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

0.2.0

  • Improved markdown rendering with MarkdownExtra.

Special thanks to nlenkowski!

0.1.1

  • Add “cache” attribute to the github_readme shortcode.
  • Add “branch” attribute to the github_readme shortcode.
  • Add the ability to use the shortcode_atts_{$shortcode} filter.
  • Fix transients so they are properly referenced when attributes are changed.

Special thanks to ianmjones!

0.1.0

  • Added new github_markdown and github_wikipage shortcodes (thanks olensmar!).

0.0.3

  • Fixed plugin name.

0.0.2

  • Fixed plugin header.

0.0.1

  • First Version. Stable so far!