Giter VIP home page Giter VIP logo

github-readme's Introduction

=== Github README ===
Contributors: octalmage, olensmar, ianmjones, nlenkowski
Donate link: http://jason.stallin.gs
Tags: github, embed, shortcode, readme, markdown
Requires at least: 3.0.1
Tested up to: 4.5.2
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Easily embed GitHub READMEs in pages/posts.

== Description ==

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. 

== Screenshots ==

1. Example of the plugin in action on my blog: http://jason.stallin.gs/projects/marknote/


== Changelog ==
= 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!

github-readme's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

github-readme's Issues

Request: Sorting options for tables

First of all, thanks for this plugin!
We are using it on our Website to show a compatibility list of devices (openhmd.net) that we maintain on the Wiki.

One request I would have though is if it would be possible to add a option for table sorting, since that would be a great addition using this on websites.

Thanks

0.2.0 fails on 4.6.3

After updating to WP 4.6.3, the github_readme_get_url function fails with the old: "Cannot use object of type WP_Error as array" error (line 169).

This is easily fixed by using the following code instead of the current response code checking:

if ( is_array( $response ) && ! is_wp_error( $response ) ) {
$data = $response['body']; // use the content
}

Does this plugin work?

I am not a Wordpress developer, but I attempted to add a README into a wordpress blog. I am using WordPress 4.9.5 and it seems like this plugin doesn't work. Any ideas what I can try or debug it?

Error message in my debug.log:

[14-Apr-2018 15:39:06 UTC] PHP Notice: Trying to get property of non-object in /github-readme/github-readme.php on line 59

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.