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 [2010-10-03 15:19] HåkanSplugin:websvn [2023-12-21 19:02] (current) – new download url Aleksandr
Line 1: Line 1:
-====== Websvn ======+====== WebSVN Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: A convenience plugin for linking (and iframe-inlining) files in a WebSVN repository.+description: A convenience plugin for linking (and iframe-inlining) files in a WebSVN repository
 author     : Stefan Hechenberger author     : Stefan Hechenberger
 email      : foss@stefanix.net email      : foss@stefanix.net
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 :  
 +sourcerepo :  
 +donationurl: 
  
 +screenshot_img: 
 +----
  
 ===== 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 =====
 +
 **Link** to a particular file in your WebSVN-served subversion repository. **Link** to a particular file in your WebSVN-served subversion repository.
-<code> +  <websvn repository/path/to/file>
-<websvn repository/path/to/file+
-</code>+
  
 Alternatively the file listing can be **iframe-inlined** by adding a trailing space to the path: Alternatively the file listing can be **iframe-inlined** by adding a trailing space to the path:
-<code> +  <websvn repository/path/to/file >
-<websvn repository/path/to/file > +
-</code> +
- +
  
 ===== Installation ===== ===== Installation =====
 +
 Point your Plugin Manager to this url: [[http://file.stefanix.net/websvn-plugin-2007-02-07.zip|websvn-plugin-2007-02-07.zip]]. This automatically downloads, unzips and installs the plugin. Once installed it has to be configured. Point your Plugin Manager to this url: [[http://file.stefanix.net/websvn-plugin-2007-02-07.zip|websvn-plugin-2007-02-07.zip]]. This automatically downloads, unzips and installs the plugin. Once installed it has to be configured.
  
Line 44: Line 43:
  
 ===== Source Code ===== ===== Source Code =====
-syntax.php 
  
-<code php>+ 
 +<code php syntax.php>
 <?php <?php
 /** /**
Line 64: 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 85: 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 116: 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 134: 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.1286111996.txt.gz · Last modified: 2010-10-03 15:19 by HåkanS

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