Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59886 - in website/public_html/beta: common common/code doc
From: daniel_james_at_[hidden]
Date: 2010-02-25 03:41:36


Author: danieljames
Date: 2010-02-25 03:41:35 EST (Thu, 25 Feb 2010)
New Revision: 59886
URL: http://svn.boost.org/trac/boost/changeset/59886

Log:
Use a template for the documentation.
Added:
   website/public_html/beta/common/code/template.php (contents, props changed)
Text files modified:
   website/public_html/beta/common/code/boost_archive.php | 27 +++++++++++++---
   website/public_html/beta/common/menu-doc.html | 2
   website/public_html/beta/doc/display_libs.php | 61 ---------------------------------------
   3 files changed, 23 insertions(+), 67 deletions(-)

Modified: website/public_html/beta/common/code/boost_archive.php
==============================================================================
--- website/public_html/beta/common/code/boost_archive.php (original)
+++ website/public_html/beta/common/code/boost_archive.php 2010-02-25 03:41:35 EST (Thu, 25 Feb 2010)
@@ -166,6 +166,21 @@
             $this->extractor_instance_->content($this);
         }
     }
+
+ function render()
+ {
+ if ($this->is_basic()) {
+ print $this->content();
+ }
+ else if(!$this->is_raw()) {
+ $this->display_template();
+ }
+ }
+
+ function display_template() {
+ $_file = $this;
+ include(dirname(__FILE__)."/template.php");
+ }
 }
 
 class raw_filter
@@ -216,7 +231,7 @@
     }
 }
 
-class html_base
+class html_base_filter
 {
     function init($archive)
     {
@@ -262,7 +277,7 @@
     }
 }
 
-class boost_book_filter extends html_base
+class boost_book_filter extends html_base_filter
 {
     function init($archive)
     {
@@ -295,7 +310,7 @@
     }
 }
 
-class boost_libs_filter extends html_base
+class boost_libs_filter extends html_base_filter
 {
     function init($archive)
     {
@@ -475,7 +490,7 @@
     }
 }
 
-class boost_frame1_filter extends html_base
+class boost_frame1_filter extends html_base_filter
 {
     function init($archive)
     {
@@ -505,7 +520,7 @@
     }
 }
 
-class simple_filter extends html_base
+class simple_filter extends html_base_filter
 {
     function init($archive)
     {
@@ -517,7 +532,7 @@
     }
 }
 
-class basic_filter extends html_base
+class basic_filter extends html_base_filter
 {
     function init($archive)
     {

Added: website/public_html/beta/common/code/template.php
==============================================================================
--- (empty file)
+++ website/public_html/beta/common/code/template.php 2010-02-25 03:41:35 EST (Thu, 25 Feb 2010)
@@ -0,0 +1,54 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<head>
+ <?php $_file->content_head(); ?>
+ <link rel="icon" href="/favicon.ico" type="image/ico" />
+ <link rel="stylesheet" type="text/css" href="/style/section-doc.css" />
+ <!--[if IE 7]> <style type="text/css"> body { behavior: url(/style/csshover3.htc); } </style> <![endif]-->
+
+</head><!-- <?php print $_file->file_; ?> -->
+
+<body>
+ <div id="heading">
+ <?php virtual("/common/heading.html"); ?>
+ </div>
+
+ <div id="body">
+ <div id="body-inner">
+ <div id="content">
+ <div class="section" id="docs">
+ <div class="section-0">
+ <div class="section-body">
+ <?php $_file->content(); ?>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="clear"></div>
+ </div>
+ </div>
+
+ <div id="footer">
+ <div id="footer-left">
+ <div id="revised">
+ <p>Revised $Date$</p>
+ </div>
+
+ <div id="copyright">
+ <p>Copyright Beman Dawes, David Abrahams, 1998-2005.</p>
+
+ <p>Copyright Rene Rivera 2004-2008.</p>
+ </div><?php virtual("/common/footer-license.html");?>
+ </div>
+
+ <div id="footer-right">
+ <?php virtual("/common/footer-banners.html");?>
+ </div>
+
+ <div class="clear"></div>
+ </div>
+</body>
+</html>
\ No newline at end of file

Modified: website/public_html/beta/common/menu-doc.html
==============================================================================
--- website/public_html/beta/common/menu-doc.html (original)
+++ website/public_html/beta/common/menu-doc.html 2010-02-25 03:41:35 EST (Thu, 25 Feb 2010)
@@ -72,7 +72,7 @@
         <li><a href="/tools/quickbook/index.html">QuickBook <span class=
         "link">&gt;</span></a></li>
 
- <li><a href="/tools/bcp/bcp.html">bcp <span class=
+ <li><a href="/tools/bcp/index.html">bcp <span class=
         "link">&gt;</span></a></li>
 
         <li><a href="/libs/wave/doc/wave_driver.html">Wave <span class=

Modified: website/public_html/beta/doc/display_libs.php
==============================================================================
--- website/public_html/beta/doc/display_libs.php (original)
+++ website/public_html/beta/doc/display_libs.php 2010-02-25 03:41:35 EST (Thu, 25 Feb 2010)
@@ -97,63 +97,4 @@
   array('@.*@','@^boost/.*$@i','cpp','text/plain')
   ));
 
-if ($_file->is_basic()) {
- print $_file->content();
-}
-else if (!$_file->is_raw()) {
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
- <?php $_file->content_head(); ?>
- <link rel="icon" href="/favicon.ico" type="image/ico" />
- <link rel="stylesheet" type="text/css" href="/style/section-doc.css" />
- <!--[if IE 7]> <style type="text/css"> body { behavior: url(/style/csshover3.htc); } </style> <![endif]-->
-
-</head><!-- <?php print $_file->file_; ?> -->
-
-<body>
- <div id="heading">
- <?php virtual("/common/heading.html");?>
- </div>
-
- <div id="body">
- <div id="body-inner">
- <div id="content">
- <div class="section" id="docs">
- <div class="section-0">
- <div class="section-body">
- <?php $_file->content(); ?>
- </div>
- </div>
- </div>
- </div>
-
- <div class="clear"></div>
- </div>
- </div>
-
- <div id="footer">
- <div id="footer-left">
- <div id="revised">
- <p>Revised $Date$</p>
- </div>
-
- <div id="copyright">
- <p>Copyright Beman Dawes, David Abrahams, 1998-2005.</p>
-
- <p>Copyright Rene Rivera 2004-2008.</p>
- </div><?php virtual("/common/footer-license.html");?>
- </div>
-
- <div id="footer-right">
- <?php virtual("/common/footer-banners.html");?>
- </div>
-
- <div class="clear"></div>
- </div>
-</body>
-</html>
-<?php } ?>
+$_file->render();


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk