|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65468 - in website/public_html/beta: common/code doc
From: dnljms_at_[hidden]
Date: 2010-09-19 13:39:37
Author: danieljames
Date: 2010-09-19 13:39:36 EDT (Sun, 19 Sep 2010)
New Revision: 65468
URL: http://svn.boost.org/trac/boost/changeset/65468
Log:
Add a simpler filter for some of the boostbook documentation.
Added:
website/public_html/beta/common/code/boost_filter_boost_book_basic.php (contents, props changed)
Text files modified:
website/public_html/beta/doc/display_libs.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Added: website/public_html/beta/common/code/boost_filter_boost_book_basic.php
==============================================================================
--- (empty file)
+++ website/public_html/beta/common/code/boost_filter_boost_book_basic.php 2010-09-19 13:39:36 EDT (Sun, 19 Sep 2010)
@@ -0,0 +1,27 @@
+<?php
+/*
+ Copyright 2005-2008 Redshift Software, Inc.
+ Distributed under the Boost Software License, Version 1.0.
+ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+*/
+
+require_once(dirname(__FILE__).'/boost_filters.php');
+
+function boost_book_basic_filter($params)
+{
+ $text = $params['content'];
+
+ $match = null;
+
+ $pos1 = strpos($text, '</head>');
+ $pos2 = strpos($text, '<body', $pos1);
+ $pos3 = strpos($text, '>', $pos2) + 1;
+ $pos4 = strpos($text, '<div class="spirit-nav">', $pos3);
+ echo substr($text, 0, $pos1);
+ echo '<link rel="icon" href="/favicon.ico" type="image/ico"/>';
+ echo '<link rel="stylesheet" type="text/css" href="/style-v2/section-basic.css"/>';
+ echo substr($text, $pos1, $pos3 - $pos1);
+ virtual("/common/heading-doc.html");
+ echo substr($text, $pos4);
+ //echo prepare_html(substr($text, $pos4));
+}
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-09-19 13:39:36 EDT (Sun, 19 Sep 2010)
@@ -95,7 +95,7 @@
array('@.*@','@^libs/[^/]+/doc/[^/]+/doc/html/.*(html|htm)$@i','basic','text/html'),
array('@.*@','@^libs.*(html|htm)$@i','basic','text/html'),
array('@.*@','@^tools.*(html|htm)$@i','basic','text/html'),
- array('@.*@','@^doc/html/.*html$@i','basic','text/html'),
+ array('@.*@','@^doc/html/.*html$@i','boost_book_basic','text/html'),
array('@.*@','@^more/.*html$@i','basic','text/html'),
//~ the headers are text files displayed in an embeded page
array('@.*@','@^boost/.*$@i','cpp','text/plain')
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