Linux 软件免费装
Banner图

embed-githubin

开发者 lrdb
更新时间 2022年12月8日 06:08
PHP版本: 5.2 及以上
WordPress版本: 6.1.1
版权: GPLv3
版权网址: 版权信息

标签

embed github github embed

下载

详情介绍:

This plugin creates a shortcode for embedding github files, repositories, readmes or folders. The shortcode format is (most settings are optional):
[github_box url="PUT_GITHUB_URL_HERE" border="radius" style="box" x="300" y="300" fgcolor="#333" bgcolor="#fafafa" disable_images="false"]
............................... ............................... The variables:
Here you can put either a github user url, a repository url, a readme url or a file url. They are threated in different ways; user url will show its repositories; repository url will show its main files, readme and files will show its contents.
If we use one of this options will create a border with the content.
It will create a scrollable box with the content
Those options are the dimensions of the box
Set the text color and background color
Remove all images from the content
Remove the fav parragraphs from an user repositories
Creates a cached file of the content. This setting is very recomended to use. But remember: if you change later the attributes of the shortcode it won't update until the cachetime has passed or unless you delete the cached file (in plugin's directory).
Number of seconds before it rebuilds the cache file (default is 10800seconds=3hours)

安装:

just install it from wordpress.org plugins list or upload the plugin to the plugins folder. put it as shortcode with the correct format: [github_box url="PUT_GITHUB_URL_HERE" border="radius" style="box" x="300" y="300" fgcolor="#333" bgcolor="#fafafa" disable_images="false"]

屏幕截图:

  • embed repositories list
  • embed repository file list
  • embed readme with or without images

更新日志:

2022-12-07 *updated to work with last github content 2021-05-10 fixed main repository file listing removed unnecesary columns in file listing *fixed embedding in blocks 2021-05-04 *updated to work with last github content Old changelog: