Changeset 1598 for trunk/buildscripts

Show
Ignore:
Timestamp:
01/05/2007 06:00:57 PM (2 years ago)
Author:
wei
Message:

Update docs.

Location:
trunk/buildscripts
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/buildscripts/chmbuilder/ChmQuickstartBuilder.php

    r1476 r1598  
    8787                        array($this, 'update_run_url'), $html); 
    8888 
    89                 $html = preg_replace('/(src|href)="\//', 'src="assets/',$html); 
     89                $html = preg_replace('/(src|href)=("?)\//', '$1=$2assets/',$html); 
    9090                $html = str_replace('http://www.pradosoft.com/docs/manual', '../manual/CHMdefaultConverter', $html); 
    9191                $html = str_replace('target="_blank">View Source', '>View Source', $html); 
  • trunk/buildscripts/chmbuilder/build.php

    r1464 r1598  
    1616$toc_file = $base.'/controls/TopicList.tpl'; 
    1717 
    18 $pages = include($ROOT.'/../texbuilder/pages.php'); 
     18$pages = include($ROOT.'/../texbuilder/quickstart/pages.php'); 
    1919 
    2020include($ROOT.'/ChmQuickstartBuilder.php'); 
     
    5454 
    5555 
    56         $quickstart= new ChmQuickstartBuilder($base,$output_dir); 
    57         $quickstart->buildDoc($pages); 
     56//      $quickstart= new ChmQuickstartBuilder($base,$output_dir); 
     57//      $quickstart->buildDoc($pages); 
    5858 
    5959        //move class data to protected data directory for prado app. 
     
    6666 
    6767        //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'); 
    6969        foreach($classes as $class =>$data) 
    7070        { 
    7171                passthru('php '.$child_builder.' '.$class); 
    7272        } 
    73  
    74         $classBuilder->parseBasePage(); 
     73*/ 
     74//      $classBuilder->parseBasePage(); 
    7575 
    7676        $toc = new HTMLHelpTOCBuilder(); 
  • trunk/buildscripts/classtree/build.php

    r1399 r1598  
    55require_once($frameworkPath.'/prado.php'); 
    66require_once($basePath.'/DWExtension.php'); 
     7 
     8//the manager class sets up some dependency paths 
     9Prado::using('System.Data.SqlMap.TSqlMapManager'); 
    710 
    811$exclusions=array( 
     
    1518        '/I18N/core', 
    1619        '/3rdParty', 
    17         '/DataAccess/SQLMap' 
     20        '/Web/Security' 
    1821        ); 
    1922$a=new ClassTreeBuilder($frameworkPath,$exclusions); 
  • trunk/buildscripts/texbuilder/Page2Tex.php

    r1464 r1598  
    8989        function texttt($matches) 
    9090        { 
    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; 
    9294        } 
    9395 
     
    106108                        if(strpos($matches[1],'?') ===false) 
    107109                        { 
    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                                } 
    110115                        } 
    111116                        else 
     
    122127                        return '\hyperlink{'.$page.'}{'.$matches[2].'}'; 
    123128                } 
    124                 return '\href{'.$matches[1].'}{'.$matches[2].'}'; 
     129                return '\href{'.str_replace('#','\\#',$matches[1]).'}{'.$matches[2].'}'; 
    125130        } 
    126131 
     
    145150                $html = str_replace('$', '\$', $html); 
    146151 
    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); 
    148153//              $html = preg_replace('/<\/com:TTextHighlighter>/', '`2`', $html); 
    149154//              $html = preg_replace_callback('/(`1`)([^`]*)(`2`)/m', array($this,'escape_verbatim'), $html); 
     
    159164 
    160165                //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 
    161169                $html = preg_replace('/<com:DocLink\s+ClassPath="([^"]*)[.]([^.]*)"\s+\/>/', 
    162170                                '\href{http://www.pradosoft.com/docs/manual/$1/$2.html}{$1.$2 API Reference}', $html); 
     
    164172                //text modifiers 
    165173                $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); 
    167175                $html = preg_replace_callback('/<tt>([^<]*)<\/tt>/', array($this,'texttt'), $html); 
    168176 
  • trunk/buildscripts/texbuilder/quickstart/pages.php

    r1579 r1598  
    99        'GettingStarted/AboutPrado.page', 
    1010        'GettingStarted/Installation.page', 
     11        'GettingStarted/Upgrading.page' 
     12        ); 
     13 
     14$pages['Tutorials'] = array( 
    1115        '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' 
    1326        ); 
    1427 
     
    2033    'Fundamentals/Modules.page', 
    2134    'Fundamentals/Services.page', 
    22     'Fundamentals/Applications.page', 
    23     'Fundamentals/Hangman.page'); 
     35    'Fundamentals/Applications.page' 
     36        ); 
    2437 
    2538$pages['Configurations'] = array( 
     
    2942        'Configurations/Templates3.page', 
    3043        'Configurations/AppConfig.page', 
    31         'Configurations/PageConfig.page'); 
     44        'Configurations/PageConfig.page', 
     45        'Configurations/UrlMapping.page' 
     46        ); 
    3247 
    3348$pages['Control Reference : Standard Controls'] = array( 
  • trunk/buildscripts/texbuilder/quickstart/quickstart.tex

    r1579 r1598  
    131131\include{ch14} 
    132132\include{ch15} 
     133\include{ch16} 
     134\include{ch17} 
     135\include{ch18} 
     136\include{ch19} 
     137\include{ch20} 
    133138 
    134139\end{document}