[WordPress] 外掛分享: Subversion Informations

前言介紹

  • 這款 WordPress 外掛「Subversion Informations」是 2008-05-31 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2014-09-18,距離現在已有 3880 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

clydefrog |

外掛標籤

svn | info | subversion | informations |

內容簡介

Subversion Informations是一個WordPress外掛程式,旨在提供關於本地SVN庫的資訊。
它可以利用WebSVN提供當前版本的直接下載。

要在您的文章中顯示信息,您可以使用其中一個新的 [svn:@] 標籤。

功能

有關當前版本、作者、日期和日誌消息的資訊
管理面板,方便使用

在我的网站上看它的實際運作。(抱歉,文本僅德語...但你可以理解!)

用法

要在您的文章中顯示關於SVN庫的資訊,您只需要在所需位置插入 [svn:@] 標籤。

元素可以是以下之一:

head代表當前版本
author是最後一個貢獻者的用戶名
date是最後更改的實際時間
log是用戶提供的消息
box是預定義框,包含上述的四個元素以及下載鏈接(使用WebSVN)

存儲庫可以是完整路徑(即/home/user/svn/repo)或存儲庫的名稱(即repo)。
當然,這是根據管理面板中的設置,您必須設置您的庫的基本路徑,以便名稱方法能夠正常工作。

例如:
我的程序的當前版本是[svn:head@/home/user/svn/program]。
或者
我的程序的當前版本是[svn:head@program]。
這只有在管理面板中svn基本路徑設置為/home/user/svn時才有效。

從0.7版本開始,在標籤內,您可以為每個存儲庫設置附加屬性:

[svn:@] (指定WebSVN類別。*這也適用於全路徑標籤。)
[svn:@/path/path/] (用於WebSVN下載的子目錄。這不適用於全路徑標籤。)
[svn:@*/path/path/] (或者兩者的結合...)

請注意,在版本0.7.1中,類別和存儲庫的分隔符從點(.)變為星號(*),以允許帶有點的路徑。(修復Josh的錯誤報告!)

如果您想顯示完整框,最好將其插入段落之間,而不是在文本中間,因為它會破壞您的格式。
同時,使用比默認主題更寬的主題是個好主意,以獲得最佳格式化框。
結果顯示在截圖部分。

限制

在當前形式下,該插件的限制相當大,因為只支持當前(HEAD)版本。
而且要得到可用的下載鏈接,必須使用WebSVN。
如果使用全路徑標籤,只有在沒有使用時,才能下載子目錄。

原文外掛簡介

Subversion Informations is a plugin for WordPress, designed to provide informations about local SVN repositories.
It can make use of WebSVN to offer the current version as a direct download.
To display information in your postings, you can make use of one of the new [svn:@] tags.
Features

Informations about current revision, author, date and log message
Admin panel for easy usage

See it in action on my site. (Sorry, text is german only… but you get the catch!)
Usage
To display information about a SVN repository in one of your texts you just have to insert the [svn:@] tag in the desired spot.
The element can be one of these:

head for the current revision
author for the username of the last contributer
date for the actual time of the last change
log for the user provided message
box for a predefined box containing all four of the above along with a download link (using WebSVN)

The repository can be either a full path (i.e. /home/user/svn/repo) or just the name of the repository (i.e. repo).
This of course is according to the settings in the admin panel where you have to set the base path of your repositories for the name-method to work.
Example:
The current version of my program is [svn:head@/home/user/svn/program].
or
The current version of my program is [svn:head@program].
This is only working when the svn base path is set to /home/user/svn in the admin panel.
As of version 0.7 there are additional attributes which you can set for each repository inside the tag:

[svn:@] (With a specified WebSVN category. *This also works with the full path tag.)
[svn:@/path/path/] (A subdirectory for the WebSVN download. This does not work with full path tag.)
[svn:@*/path/path/] (Or a combination of both…)

Please note that in version 0.7.1 the separator for category and repository changed from a dot (.) to an asterisk (*) to allow paths with dots in it. (Bugfix for Josh, thanks for reporting!)
If you want to show the full box, you better insert it between paragraphs and not in the middle of your text, as it will bust your format.
Also it is a good idea to use a wider theme than the default one to get the best formated box.
The result is shown in the screenshot section.
Limitations

The Plugin is limited quite a bit in its current form, as there is only support for the current (HEAD) revision.
Also the use of WebSVN is mandatory to get a working download link.
Subdirectory download is only possible if the full path tag isn’t in use.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Subversion Informations」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.5 | 0.6 | 0.7 | 0.7.1 | trunk |

延伸相關外掛(你可能也想知道)

  • WordPress Environment Beacon 》這是一個針對開發人員的外掛:, 這個外掛的目標是顯示有關 WordPress 安裝的環境資訊以及來自 PHP 的所有全域變數的資訊。, 啟用這個外掛後,WordPress 主選...。

文章
Filter
Apply Filters
Mastodon