DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:websvn

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:websvn [2019-08-10 17:18] Aleksandrplugin:websvn [2023-12-21 19:02] (current) – new download url Aleksandr
Line 13: Line 13:
 tags       : links, include, repository tags       : links, include, repository
  
-downloadurl: http://file.stefanix.net/websvn-plugin-2007-02-07.zip+downloadurl: https://trello.com/1/cards/5d4ee0e9e71d172fb4b2e7e3/attachments/5d4ee1170ae1402f7f90d174/download/websvn-plugin-2007-02-07.zip
 bugtracker :  bugtracker : 
 sourcerepo :  sourcerepo : 
Line 23: Line 23:
 ===== Description ===== ===== Description =====
  
-This plugin offers a convenient way to reference files in a Subversion repository. It assumes that the repository is made web-accessible with [[http://websvn.tigris.org/|WebSVN]]. Instead of using absolute links to files in WebSVN this plugin allows you to reference them with a short path relative to a root path. This not only makes the referencing links much shorter but also makes the links less prone to breaking later. -[[http://stefanix.net|stefan]]+This plugin offers a convenient way to reference files in a Subversion repository. It assumes that the repository is made web-accessible with [[http://websvn.tigris.org/|WebSVN]]. Instead of using absolute links to files in WebSVN this plugin allows you to reference them with a short path relative to a root path. This not only makes the referencing links much shorter but also makes the links less prone to breaking later. -- Stefan Hechenberger
  
 ===== Usage ===== ===== Usage =====
Line 63: Line 63:
 //-----------------------------------CONFIGURE WEBSVN ROOT HERE--------- //-----------------------------------CONFIGURE WEBSVN ROOT HERE---------
 global $websvn_root_url; global $websvn_root_url;
-$websvn_root_url = "http://your.websvn.root/";+$websvn_root_url = "http://svn.stefanix.net/";
 //---------------------------------------------------------------------- //----------------------------------------------------------------------
  
Line 84: Line 84:
             'name'   => 'websvn Plugin',             'name'   => 'websvn Plugin',
             'desc'   => 'Generates deep links to files in a WebSVN repository.',             'desc'   => 'Generates deep links to files in a WebSVN repository.',
-            'url'    => 'http://www.dokuwiki.org/plugin:websvn',+            'url'    => 'http://wiki.splitbrain.org/plugin:websvn',
         );         );
     }     }
Line 115: Line 115:
      * Handle the match      * Handle the match
      */      */
-    function handle($match, $state, $pos, &$handler){+    function handle($match, $state, $pos, Doku_Handler $handler){
         $match = html_entity_decode(substr($match, 8, -1));         $match = html_entity_decode(substr($match, 8, -1));
         if(substr($match, -1, 1) == ' ') {         if(substr($match, -1, 1) == ' ') {
Line 133: Line 133:
      * Create output      * Create output
      */      */
-    function render($mode, &$renderer, $data) {+    function render($mode, Doku_Renderer $renderer, $data) {
         global $websvn_root_url;         global $websvn_root_url;
         list($repository, $reppath, $sourcefilename, $iframe) = $data;         list($repository, $reppath, $sourcefilename, $iframe) = $data;
plugin/websvn.1565450339.txt.gz · Last modified: 2019-08-10 17:18 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki