Changeset 1598 for trunk/buildscripts
- Timestamp:
- 01/05/2007 06:00:57 PM (2 years ago)
- Location:
- trunk/buildscripts
- Files:
-
- 6 modified
-
chmbuilder/ChmQuickstartBuilder.php (modified) (1 diff)
-
chmbuilder/build.php (modified) (3 diffs)
-
classtree/build.php (modified) (2 diffs)
-
texbuilder/Page2Tex.php (modified) (6 diffs)
-
texbuilder/quickstart/pages.php (modified) (3 diffs)
-
texbuilder/quickstart/quickstart.tex (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/buildscripts/chmbuilder/ChmQuickstartBuilder.php
r1476 r1598 87 87 array($this, 'update_run_url'), $html); 88 88 89 $html = preg_replace('/(src|href)= "\//', 'src="assets/',$html);89 $html = preg_replace('/(src|href)=("?)\//', '$1=$2assets/',$html); 90 90 $html = str_replace('http://www.pradosoft.com/docs/manual', '../manual/CHMdefaultConverter', $html); 91 91 $html = str_replace('target="_blank">View Source', '>View Source', $html); -
trunk/buildscripts/chmbuilder/build.php
r1464 r1598 16 16 $toc_file = $base.'/controls/TopicList.tpl'; 17 17 18 $pages = include($ROOT.'/../texbuilder/ pages.php');18 $pages = include($ROOT.'/../texbuilder/quickstart/pages.php'); 19 19 20 20 include($ROOT.'/ChmQuickstartBuilder.php'); … … 54 54 55 55 56 $quickstart= new ChmQuickstartBuilder($base,$output_dir);57 $quickstart->buildDoc($pages);56 // $quickstart= new ChmQuickstartBuilder($base,$output_dir); 57 // $quickstart->buildDoc($pages); 58 58 59 59 //move class data to protected data directory for prado app. … … 66 66 67 67 //use child process to build doc, otherwise it consumes too much memory 68 $child_builder = realpath($ROOT.'/build_child.php');68 /* $child_builder = realpath($ROOT.'/build_child.php'); 69 69 foreach($classes as $class =>$data) 70 70 { 71 71 passthru('php '.$child_builder.' '.$class); 72 72 } 73 74 $classBuilder->parseBasePage();73 */ 74 // $classBuilder->parseBasePage(); 75 75 76 76 $toc = new HTMLHelpTOCBuilder(); -
trunk/buildscripts/classtree/build.php
r1399 r1598 5 5 require_once($frameworkPath.'/prado.php'); 6 6 require_once($basePath.'/DWExtension.php'); 7 8 //the manager class sets up some dependency paths 9 Prado::using('System.Data.SqlMap.TSqlMapManager'); 7 10 8 11 $exclusions=array( … … 15 18 '/I18N/core', 16 19 '/3rdParty', 17 '/ DataAccess/SQLMap'20 '/Web/Security' 18 21 ); 19 22 $a=new ClassTreeBuilder($frameworkPath,$exclusions); -
trunk/buildscripts/texbuilder/Page2Tex.php
r1464 r1598 89 89 function texttt($matches) 90 90 { 91 return '\texttt{'.str_replace(array('#','_','&'),array('\#','\_','\&'), $matches[1]).'}'; 91 $text ='\texttt{'.str_replace(array('#','_','&'),array('\#','\_','\&'), $matches[1]).'}'; 92 //$text = preg_replace('/([^\\\\])&([^;]+)/', '$1\&$2', $text); 93 return $text; 92 94 } 93 95 … … 106 108 if(strpos($matches[1],'?') ===false) 107 109 { 108 $target = $this->get_current_path().'/'.substr($matches[1],1); 109 return '\hyperlink{'.$target.'}{'.$matches[2].'}'; 110 if(strpos($matches[1],'http://')===false) 111 { 112 $target = $this->get_current_path().'/'.substr($matches[1],1); 113 return '\hyperlink{'.$target.'}{'.$matches[2].'}'; 114 } 110 115 } 111 116 else … … 122 127 return '\hyperlink{'.$page.'}{'.$matches[2].'}'; 123 128 } 124 return '\href{'. $matches[1].'}{'.$matches[2].'}';129 return '\href{'.str_replace('#','\\#',$matches[1]).'}{'.$matches[2].'}'; 125 130 } 126 131 … … 145 150 $html = str_replace('$', '\$', $html); 146 151 147 $html = preg_replace_callback('/<com:TTextHighlighter[^>]*>((.|\n)*?)<\/com:TTextHighlighter >/', array($this,'escape_verbatim'), $html);152 $html = preg_replace_callback('/<com:TTextHighlighter[^>]*>((.|\n)*?)<\/com:TTextHighlighter\s*>/', array($this,'escape_verbatim'), $html); 148 153 // $html = preg_replace('/<\/com:TTextHighlighter>/', '`2`', $html); 149 154 // $html = preg_replace_callback('/(`1`)([^`]*)(`2`)/m', array($this,'escape_verbatim'), $html); … … 159 164 160 165 //DocLink 166 $html = preg_replace('/<com:DocLink\s+ClassPath="([^"]*)[.]([^."]*)"\s+Text="([^"]+)"\s*\/>/', 167 '\href{http://www.pradosoft.com/docs/manual/$1/$2.html}{$3}', $html); 168 161 169 $html = preg_replace('/<com:DocLink\s+ClassPath="([^"]*)[.]([^.]*)"\s+\/>/', 162 170 '\href{http://www.pradosoft.com/docs/manual/$1/$2.html}{$1.$2 API Reference}', $html); … … 164 172 //text modifiers 165 173 $html = preg_replace('/<(b|strong)[^>]*>([^<]*)<\/(b|strong)>/', '\textbf{$2}', $html); 166 $html = preg_replace('/<i[^>]*>([^<]*) <\/i>/', '\emph{$1}', $html);174 $html = preg_replace('/<i[^>]*>([^<]*)+?<\/i>/', '\emph{$1}', $html); 167 175 $html = preg_replace_callback('/<tt>([^<]*)<\/tt>/', array($this,'texttt'), $html); 168 176 -
trunk/buildscripts/texbuilder/quickstart/pages.php
r1579 r1598 9 9 'GettingStarted/AboutPrado.page', 10 10 'GettingStarted/Installation.page', 11 'GettingStarted/Upgrading.page' 12 ); 13 14 $pages['Tutorials'] = array( 11 15 'GettingStarted/HelloWorld.page', 12 'GettingStarted/Upgrading.page' 16 'Fundamentals/Hangman.page', 17 'GettingStarted/CommandLine.page' 18 ); 19 20 $pages['Tutorial: Currency Converter'] = array( 21 'Tutorial/CurrencyConverter.page' 22 ); 23 24 $pages['Tutorial: Building an AJAX Chat Application'] = array( 25 'Tutorial/AjaxChat.page' 13 26 ); 14 27 … … 20 33 'Fundamentals/Modules.page', 21 34 'Fundamentals/Services.page', 22 'Fundamentals/Applications.page' ,23 'Fundamentals/Hangman.page');35 'Fundamentals/Applications.page' 36 ); 24 37 25 38 $pages['Configurations'] = array( … … 29 42 'Configurations/Templates3.page', 30 43 'Configurations/AppConfig.page', 31 'Configurations/PageConfig.page'); 44 'Configurations/PageConfig.page', 45 'Configurations/UrlMapping.page' 46 ); 32 47 33 48 $pages['Control Reference : Standard Controls'] = array( -
trunk/buildscripts/texbuilder/quickstart/quickstart.tex
r1579 r1598 131 131 \include{ch14} 132 132 \include{ch15} 133 \include{ch16} 134 \include{ch17} 135 \include{ch18} 136 \include{ch19} 137 \include{ch20} 133 138 134 139 \end{document}
