summaryrefslogtreecommitdiff
path: root/buildscripts/texbuilder/build.php
diff options
context:
space:
mode:
authorxue <>2006-04-15 01:07:20 +0000
committerxue <>2006-04-15 01:07:20 +0000
commitbda08fff53cc1bf909425b7cf982d80b766643be (patch)
tree58c00eb59dc7ff8bcced97f1919c97c7ec9ff45e /buildscripts/texbuilder/build.php
parent15679cf90c58bc99b0f4fe283770282970bbece2 (diff)
Fixed a few problems with the build script.
Diffstat (limited to 'buildscripts/texbuilder/build.php')
-rw-r--r--buildscripts/texbuilder/build.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/buildscripts/texbuilder/build.php b/buildscripts/texbuilder/build.php
index d1d6cac5..7395406c 100644
--- a/buildscripts/texbuilder/build.php
+++ b/buildscripts/texbuilder/build.php
@@ -202,6 +202,7 @@ function parse_html($page,$html)
$html = preg_replace('/<\/com:TTextHighlighter>/', '`2`', $html);
$html = preg_replace_callback('/(`1`)([^`]*)(`2`)/m', 'escape_verbatim', $html);
$html = preg_replace_callback('/(<div class="source">)([^<]*)(<\/div>)/', 'escape_verbatim', $html);
+ $html = preg_replace_callback('/(<pre>)([^<]*)(<\/pre>)/', 'escape_verbatim', $html);
//<code>
$html = preg_replace_callback('/<code>([^<]*)<\/code>/', 'escape_verb', $html);
@@ -210,7 +211,11 @@ function parse_html($page,$html)
//runbar
$html = preg_replace('/<com:RunBar\s+PagePath="([^"]*)"\s+\/>/',
- 'Try, \href{http://www.pradosoft.com/demos/quickstart/index.php?page=$1}{$1}', $html);
+ '\href{http://www.pradosoft.com/demos/quickstart/index.php?page=$1}{$1 Demo}', $html);
+
+ //DocLink
+ $html = preg_replace('/<com:DocLink\s+ClassPath="([^"]*)[.]([^.]*)"\s+\/>/',
+ '\href{http://www.pradosoft.com/docs/manual/$1/$2.html}{$1.$2 API Reference}', $html);
//text modifiers
$html = preg_replace('/<b>([^<]*)<\/b>/', '\textbf{$1}', $html);