Changeset 4685

Show
Ignore:
Timestamp:
07/13/08 01:05:08 (12 months ago)
Author:
jwage
Message:

Updating docs frontend to show manual and cookbook

Location:
branches/1.0/tools/docs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/tools/docs/index.php

    r4675 r4685  
    163163$toc = $cache->fetch('toc'); 
    164164 
     165$what = isset($what) ? $what:'manual'; 
     166 
    165167// If table of contents was not cached, parse it from documentation files 
    166168if ( ! $toc instanceof Sensei_Doc_Toc) { 
    167     $toc = new Sensei_Doc_Toc(dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'docs' . DIRECTORY_SEPARATOR . 'manual' . DIRECTORY_SEPARATOR . 'en.txt'); 
     169    $toc = new Sensei_Doc_Toc(dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'docs' . DIRECTORY_SEPARATOR . $what . DIRECTORY_SEPARATOR . 'en.txt'); 
    168170    $cache->save($toc, 'toc'); 
    169171} 
     
    191193 
    192194$renderer->setOptions(array( 
    193     'title'    => 'Doctrine Manual', 
     195    'title'    => 'Doctrine ' . ucwords($what), 
    194196    'author'   => 'Konsta Vesterinen', 
    195197    'version'  => 'Rev. ' . $revision, 
  • branches/1.0/tools/docs/templates/index.tpl.php

    r2308 r4685  
    1616 
    1717<div id="wrap"> 
     18 
     19<ul> 
     20  <li><a href="index.php">Manual</a></li> 
     21  <li><a href="cookbook.php">Cookbook</a></li> 
     22</ul> 
    1823 
    1924<div id="content">