johnie / embedgithub
此软件包已被放弃,不再维护。未建议替代包。
简单地将 GitHub 读取说明或更改日志嵌入到页面或帖子中
v1.0.1
2015-01-25 21:07 UTC
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
简单地将 GitHub 读取说明或任何其他 markdown 文件嵌入到页面或帖子中
入门
由于它有依赖项,应使用 Composer 进行安装
$ composer require johnie/embedgithub
用法
短代码
简单地获取存储库的读取说明文件
[embedgithub repo="johnie/embedgithub"]
您还可以使用 trim 选项从说明的顶部裁剪行
[embedgithub repo="johnie/embedgithub" trim="3"]
这有助于删除标题,因为您的页面/帖子可能已经有一个。
您还可以使用 file 选项指定 markdown 文件,例如 "changelog.md"
[embedgithub repo="johnie/embedgithub" file="changelog.md"]
许可证
MIT © Johnie Hjelm