yoander / githubget

Wordpress plugin for get content from github, gists and repo file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Get: a plugin to fetch content from GitHub.

GitHub Get is a WordPress plugin for fetching content from GitHub. GitHub Get use GitHub personal token and basic authentication to access the GitHub API

How to use it

In order to use GitHub Get you mus insert a shortcode in your Post or Page.

Gists

One file per Gists

[githubget]GistsID[/githubget]

Multiple file per Gists

[githubget filename="Name of the file"]GistsID[/githubget]

If you not specify a filename then the content of the first one will be get it.

Content from a repo

[githubget repo="1"]FilePath[/githubget]

Note: repo attribute is mandatory

To find the FilePath browse your repo from GitHub find the file and use Copy path GitHub function, you should not paste the Path in Wordpress Visual Editor due will copy the full path including GitHub Url I recommend you to paste it in Text Editor.

TODO

  • Caching the response so be used on very heavy load sites
  • Add shortcode attribute (accountname) in order to fetch content from any public repository
  • Multiuser and Multisite.

About

Wordpress plugin for get content from github, gists and repo file

License:GNU General Public License v3.0


Languages

Language:PHP 94.4%Language:CSS 5.6%