Skip to content

🔌 A plugin for Wordpress that provides oEmbed services for GitHub.

License

Notifications You must be signed in to change notification settings

nathan-fiscaletti/oembed-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

oEmbed Github

A plugin for WordPress that provides oEmbed services for GitHub.

Supported Content

  • Profiles
  • Repositories
  • Commits
  • Pull Requests
  • Issues
  • Gists

Supported URL's

All URL's support using both https and http, as well as with www. or without www. (Gists excluded)

  • https://github.com/{username}
  • https://github.com/{username}/{repository}
  • https://github.com/{username}/{repository}/commit/{commit}
  • https://github.com/{username}/{repository}/pull/{pull}/commits/{commit}
  • https://github.com/{username}/{repository}/pull/{pull}
  • https://github.com/{username}/{repository}/issues/{issue}
  • https://gist.github.com/{username}/{gist}

Installation

Install via your WordPress website

Note: This plugin is not yet available on the WordPress repository. These instructions are for once it has been approved.

  1. Visit ‘Plugins > Add New’
  2. Search for ‘oembed-github’
  3. Activate oEmbed Github from your Plugins page.

Manual Installation

To manually install oEmbed Github download this repository as a zip file and unzip it into a folder named oembed-github within your wp-content/plugins directory. Once you are finished, visit your Plugins Page and activate the oEmbed Github plugin.

Final Directory Structure

.
-- wp-content
---- oembed-github
------ oembed-github.php
------ LICENSE
------ . . .

Patterns Used

GitHub

#^((http(s|)):\/\/|)(www.|)github.com(\/)(([a-z0-9-?&%_=]*))((\/([a-z0-9-?&%_=]*))|)(\/([a-z0-9-?&%_=]*)|)(\/([a-z0-9-?&%_=]*)|)(\/([a-z0-9-?&%_=]*)|)(\/([a-z0-9-?&%_=]*)|)#i

Gist

#^((http(s|)):\/\/|)gist.github.com\/([a-z0-9-?&%_=]*)\/([a-z0-9-?&%_=]*)(\/|)#i

GitHub API

In order to avoid the GitHub API rate limit, you can provide your GitHub application Client ID and Client Token in the oEmbed Github options area within your Wordpress Admin dashboard.

Theming

You can customize the theme of all embeded content from the oEmbed Github options area within your Wordpress Admin dashboard.

Screen Shots

Profile

Repository

Commit

Commit 2

Pull Request

Issue

Gist

Attribution

This plugin makes use of gist-embed by Blair Vanderhoof

License

oEmbed Github is licensed under GPLv3 (See LICENSE)

About

🔌 A plugin for Wordpress that provides oEmbed services for GitHub.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages