From f4de82bcdafba51e4eed9cae6b2d3e5375ffd115 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 9 May 2006 12:11:38 +0000 Subject: --- buildscripts/texbuilder/build.php | 59 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) (limited to 'buildscripts/texbuilder/build.php') diff --git a/buildscripts/texbuilder/build.php b/buildscripts/texbuilder/build.php index 4e2d8be6..f0556e3f 100644 --- a/buildscripts/texbuilder/build.php +++ b/buildscripts/texbuilder/build.php @@ -10,6 +10,10 @@ $mainTexFile = dirname(__FILE__).'/prado3_quick_start.tex'; //page root location $base = realpath(dirname(__FILE__).'/../../demos/quickstart/protected/pages/'); +//search index data directory +$index_dir = realpath(dirname(__FILE__).'/../../demos/quickstart/protected/index/data/'); + + //list page into chapters $pages['Getting Started'] = array( 'GettingStarted/Introduction.page', @@ -94,6 +98,11 @@ $pages['Advanced Topics'] = array( 'Advanced/Error.page', 'Advanced/Performance.page'); +$pages['Client-side Scripting'] = array( + 'Advanced/Scripts.page', + 'Advanced/Scripts1.page', + 'Advanced/Scripts2.page', + 'Advanced/Scripts3.page'); //-------------- END CONFIG ------------------ @@ -273,12 +282,51 @@ function get_section_label($section) return '\hypertarget{'.str_replace('/', '.', $section).'}{}'; } + +function set_header_id($content, $count) +{ + global $header_count; + $header_count = $count*100; + $content = preg_replace_callback('/