
內容簡介
這個外掛創建了一個簡碼,用於嵌入 GitHub 文件、存儲庫、自述文件或文件夾。
簡碼格式如下(大多數設置都是可選的):
[github_box url=”在這裡放置 GitHub URL” border=”radius” style=”box” x=”300″ y=”300″ fgcolor=”#333″ bgcolor=”#fafafa” disable_images=”false”]
…………………………。
…………………………。
變量:
url=”在這裡放置 GitHub URL”
這裡可以放置 GitHub 用戶 URL、存儲庫 URL、自述文件 URL 或文件 URL。
它們會以不同的方式處理;用戶 URL 將顯示其存儲庫;
存儲庫 URL 將顯示其主文件,自述文件和文件將顯示其內容。
border=”radius” OR border=”true”
如果使用這些選項之一,將創建與內容相關的邊框。
style=”box”
它將創建一個具有內容的可滾動框。
x=”300″ y=”300″
這些選項是框的尺寸大小。
fgcolor=”#333″ bgcolor=”#fafafa”
設定文字顏色和背景顏色
disable_images=”true”
從內容中刪除所有圖像
disable_fav=”true”
從用戶的存儲庫中刪除 fav 段落
id=”IDNAME”
創建內容的緩存文件。強烈建議使用此設置。
但請記住:如果稍後更改簡碼的屬性,它不會更新
直到缓存时间过去或除非您删除了缓存文件(在插件目录中)。
cachetime=”10800″
在重新構建緩存文件之前等待的秒數(默認值為 10800 秒=3 小時)
外掛標籤
開發者團隊
原文外掛簡介
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:
url=”PUT_GITHUB_URL_HERE”
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.
border=”radius” OR border=”true”
If we use one of this options will create a border with the content.
style=”box”
It will create a scrollable box with the content
x=”300″ y=”300″
Those options are the dimensions of the box
fgcolor=”#333″ bgcolor=”#fafafa”
Set the text color and background color
disable_images=”true”
Remove all images from the content
disable_fav=”true”
Remove the fav parragraphs from an user repositories
id=”IDNAME”
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).
cachetime=”10800″
Number of seconds before it rebuilds the cache file (default is 10800seconds=3hours)
