Author: Derick Rethans
Date: 2006-01-27 13:04:21 +0100 (Fri, 27 Jan 2006)
New Revision: 2051
Log:
- Fixed linking
Modified:
scripts/render-tutorial.php
Modified: scripts/render-tutorial.php
===================================================================
--- scripts/render-tutorial.php 2006-01-27 11:49:06 UTC (rev 2050)
+++ scripts/render-tutorial.php 2006-01-27 12:04:21 UTC (rev 2051)
@@ -95,11 +95,12 @@
function addLinks( $component, $output, $version )
{
- $base = "http://ez.no/doc/components/view/(file)/$version/$component/";
+// $base = "http://ez.no/doc/components/view/(file)/$version/$component/";
+ $base = "$component/";
$output = preg_replace( '@(ezc[A-Z][a-zA-Z]+)::\$([A-Za-z0-9]+)@', "<a
href='{$base}\\1.html#\$\\2'>\\0</a>", $output );
$output = preg_replace( "@(ezc[A-Z][a-zA-Z]+)::([A-Za-z0-9_]+)(?=\()@",
"<a href='{$base}\\1.html#\\2'>\\0</a>", $output );
- $output = preg_replace( "@(ezc[A-Z][a-zA-Z]+)->([A-Za-z0-9_]+)(?=\()@",
"<a href='{$base}\\1.html#\\2'>\\0</a>", $output );
+ $output = preg_replace(
"@(ezc[A-Z][a-zA-Z]+)-(>|\>)([A-Za-z0-9_]+)(?=\()@", "<a
href='{$base}\\1.html#\\3'>\\0</a>", $output );
$output = preg_replace( "@(ezc[A-Z][a-zA-Z]+)::([A-Z_]+)\\b@", "<a
href='{$base}\\1.html#const\\2'>\\0</a>", $output );
$output = preg_replace( "@(?<![/>])(ezc[A-Z][a-zA-Z]+)@", "<a
href='{$base}\\1.html'>\\0</a>", $output );
$output = preg_replace( "@(<span style=\"color:
#[0-9A-F]+\">)(ezc[A-Z][a-zA-Z]+)(</span><span style=\"color:
#[0-9A-F]+\">\()@", "\\1<a href='{$base}\\2.html'>\\2</a>\\3", $output );
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components