johnie / embedgithub
Simply embed Github Readme or Changelog to page or post
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/johnie/embedgithub
Requires
- php: >=5.3.0
- composer/installers: ~1.0
- michelf/php-markdown: 1.4.x-dev
This package is not auto-updated.
Last update: 2023-07-30 12:11:21 UTC
README
Simply embed GitHub Readme or any other markdown file to page or post
Getting started
This should be installed with Composer since it has dependencies:
$ composer require johnie/embedgithub
Usage
Shortcode
Simply get the repo readme file
[embedgithub repo="johnie/embedgithub"]
You can also trim lines from the top of the readme using the trim option:
[embedgithub repo="johnie/embedgithub" trim="3"]
This is useful for removing titles since your page/post will most likely already have one.
You can also specify a markdown file using the file option, e.g. "changelog.md"
[embedgithub repo="johnie/embedgithub" file="changelog.md"]
Licence
MIT © Johnie Hjelm