2
0
mirror of https://github.com/boostorg/website.git synced 2026-02-25 04:42:32 +00:00

Improving boost docs project repository

[SVN r7144]
This commit is contained in:
Matias Capeletto
2007-06-25 18:35:23 +00:00
commit a96fdffe39
145 changed files with 10663 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
[library Boost.GroupedLinks example
[quickbook 1.4]
[authors [Capeletto, Matias]]
[copyright 2007 Matias Capeletto]
[category example]
[id boostbook_integration]
[dirname boostbook_integration]
[purpose
Boost.GroupedLinks Boostbook Integration example
]
[source-mode c++]
[license
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
[@http://www.boost.org/LICENSE_1_0.txt])
]
]
[/ QuickBook Document version 1.4 ]
[section Preface]
Preface section
[endsect]
[section First]
First section
[section Sub A]
First section - subsection A
[endsect]
[section Sub B]
First section - subsection B
[endsect]
[section Sub C]
First section - subsection C
[endsect]
[endsect]
[section Second]
Second section
[section Sub A]
Second section - subsection A
[endsect]
[section Sub B]
Second section - subsection B
[endsect]
[endsect]
[section Final]
Final section
[endsect]

View File

@@ -0,0 +1,31 @@
# Boost.GroupedLinks
#
# Copyright (c) 2007 Matias Capeletto
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# Quickbook
# -----------------------------------------------------------------------------
import quickbook ;
xml example
:
example.qbk
;
boostbook standalone
:
example
:
# Show the sections select box, the chapters select box is showed by default
<xsl:param>grouped.links.sections.show="'true'"
<xsl:param>toc.max.depth=2
<xsl:param>toc.section.depth=4
<xsl:param>chunk.section.depth=3
;

View File

@@ -0,0 +1,7 @@
index.html
boostbook_integration/first.html
boostbook_integration/first/sub_b.html
boostbook_integration/first/sub_c.html
boostbook_integration/second.html
boostbook_integration/second/sub_b.html
boostbook_integration/final.html

View File

@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Final</title>
<link xmlns="" rel="stylesheet" href="../boostbook.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0" />
<link rel="start" href="../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="up" href="../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="prev" href="second/sub_b.html" title="Sub B" />
</head>
<body>
<script type="text/javascript" src="../grouped_links.js"></script>
<div id="heading">
<div id="heading-placard"></div>
<div class="heading_navigation_box">
<div class="grouped_links" id="chapters_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../boost_libs_grouped_links.xml',
'chapters_select_box',
'http://www.boost.org/libs/');
</script>
</div>
<div class="grouped_links" id="sections_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../sections_grouped_links.xml',
'sections_select_box',
'.././');
</script>
</div>
</div>
<div class="heading_search_box">
<form id="cref" action="http://google.com/cse">
<input type="hidden" name="cref" value="" />
<div> Search Boost </div>
<div>
<input class="search_box" type="text" name="q" id="q" size="40" maxlength="255" alt="Search Text" />
</div>
</form>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="second/sub_b.html">
<img src="../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../index.html">
<img src="../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../index.html">
<img src="../../../doc/html/images/home.png" alt="Home" />
</a>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div xmlns="http://www.w3.org/1999/xhtml" class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a id="boostbook_integration.final"></a>
<a href="final.html" title="Final">Final</a>
</h2>
</div>
</div>
</div>
<p>
Final section
</p>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="second/sub_b.html">
<img src="../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../index.html">
<img src="../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../index.html">
<img src="../../../doc/html/images/home.png" alt="Home" />
</a>
</div>
<div id="footer">
<div id="footer-left">
<div id="copyright">
<p xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision">Copyright © 2007 Matias Capeletto</p>
</div>
<div id="license">
<p>Distributed under the
<a href="/LICENSE_1_0.txt" class="internal">Boost Software License, Version 1.0</a>.
</p>
</div>
</div>
<div id="footer-right">
<div id="banners">
<p id="banner-xhtml">
<a href="http://validator.w3.org/check?uri=referer" class="external">XHTML 1.0</a>
</p>
<p id="banner-css">
<a href="http://jigsaw.w3.org/css-validator/check/referer" class="external">CSS</a>
</p>
<p id="banner-sourceforge">
<a href="http://sourceforge.net" class="external">SourceForge</a>
</p>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,167 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>First</title>
<link xmlns="" rel="stylesheet" href="../boostbook.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0" />
<link rel="start" href="../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="up" href="../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="prev" href="../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="next" href="first/sub_b.html" title="Sub B" />
</head>
<body>
<script type="text/javascript" src="../grouped_links.js"></script>
<div id="heading">
<div id="heading-placard"></div>
<div class="heading_navigation_box">
<div class="grouped_links" id="chapters_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../boost_libs_grouped_links.xml',
'chapters_select_box',
'http://www.boost.org/libs/');
</script>
</div>
<div class="grouped_links" id="sections_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../sections_grouped_links.xml',
'sections_select_box',
'.././');
</script>
</div>
</div>
<div class="heading_search_box">
<form id="cref" action="http://google.com/cse">
<input type="hidden" name="cref" value="" />
<div> Search Boost </div>
<div>
<input class="search_box" type="text" name="q" id="q" size="40" maxlength="255" alt="Search Text" />
</div>
</form>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="../index.html">
<img src="../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../index.html">
<img src="../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../index.html">
<img src="../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="first/sub_b.html">
<img src="../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div xmlns="http://www.w3.org/1999/xhtml" class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a id="boostbook_integration.first"></a>
<a href="first.html" title="First">First</a>
</h2>
</div>
</div>
</div>
<div xmlns="" class="toc">
<div class="box-outer-wrapper">
<div class="box-top-left"></div>
<div class="box-top-right"></div>
<div class="box-top"></div>
<div class="box-inner-wrapper">
<dl xmlns="http://www.w3.org/1999/xhtml">
<dt>
<span class="section">
<a href="first.html#boostbook_integration.first.sub_a">Sub A</a>
</span>
</dt>
<dt>
<span class="section">
<a href="first/sub_b.html">Sub B</a>
</span>
</dt>
<dt>
<span class="section">
<a href="first/sub_c.html">Sub C</a>
</span>
</dt>
</dl>
</div>
<div class="box-bottom-left"></div>
<div class="box-bottom-right"></div>
<div class="box-bottom"></div>
</div>
</div>
<p>
First section
</p>
<div class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title">
<a id="boostbook_integration.first.sub_a"></a>
<a href="first.html#boostbook_integration.first.sub_a" title="Sub A">Sub A</a>
</h3>
</div>
</div>
</div>
<p>
First section - subsection A
</p>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="../index.html">
<img src="../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../index.html">
<img src="../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../index.html">
<img src="../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="first/sub_b.html">
<img src="../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="footer">
<div id="footer-left">
<div id="copyright">
<p xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision">Copyright © 2007 Matias Capeletto</p>
</div>
<div id="license">
<p>Distributed under the
<a href="/LICENSE_1_0.txt" class="internal">Boost Software License, Version 1.0</a>.
</p>
</div>
</div>
<div id="footer-right">
<div id="banners">
<p id="banner-xhtml">
<a href="http://validator.w3.org/check?uri=referer" class="external">XHTML 1.0</a>
</p>
<p id="banner-css">
<a href="http://jigsaw.w3.org/css-validator/check/referer" class="external">CSS</a>
</p>
<p id="banner-sourceforge">
<a href="http://sourceforge.net" class="external">SourceForge</a>
</p>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Sub B</title>
<link xmlns="" rel="stylesheet" href="../../boostbook.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0" />
<link rel="start" href="../../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="up" href="../first.html" title="First" />
<link rel="prev" href="../first.html" title="First" />
<link rel="next" href="sub_c.html" title="Sub C" />
</head>
<body>
<script type="text/javascript" src="../../grouped_links.js"></script>
<div id="heading">
<div id="heading-placard"></div>
<div class="heading_navigation_box">
<div class="grouped_links" id="chapters_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../../boost_libs_grouped_links.xml',
'chapters_select_box',
'http://www.boost.org/libs/');
</script>
</div>
<div class="grouped_links" id="sections_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../../sections_grouped_links.xml',
'sections_select_box',
'../.././');
</script>
</div>
</div>
<div class="heading_search_box">
<form id="cref" action="http://google.com/cse">
<input type="hidden" name="cref" value="" />
<div> Search Boost </div>
<div>
<input class="search_box" type="text" name="q" id="q" size="40" maxlength="255" alt="Search Text" />
</div>
</form>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="../first.html">
<img src="../../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../first.html">
<img src="../../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../../index.html">
<img src="../../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="sub_c.html">
<img src="../../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div xmlns="http://www.w3.org/1999/xhtml" class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title">
<a id="boostbook_integration.first.sub_b"></a>
<a href="sub_b.html" title="Sub B">Sub B</a>
</h3>
</div>
</div>
</div>
<p>
First section - subsection B
</p>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="../first.html">
<img src="../../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../first.html">
<img src="../../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../../index.html">
<img src="../../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="sub_c.html">
<img src="../../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="footer">
<div id="footer-left">
<div id="copyright">
<p xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision">Copyright © 2007 Matias Capeletto</p>
</div>
<div id="license">
<p>Distributed under the
<a href="/LICENSE_1_0.txt" class="internal">Boost Software License, Version 1.0</a>.
</p>
</div>
</div>
<div id="footer-right">
<div id="banners">
<p id="banner-xhtml">
<a href="http://validator.w3.org/check?uri=referer" class="external">XHTML 1.0</a>
</p>
<p id="banner-css">
<a href="http://jigsaw.w3.org/css-validator/check/referer" class="external">CSS</a>
</p>
<p id="banner-sourceforge">
<a href="http://sourceforge.net" class="external">SourceForge</a>
</p>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Sub C</title>
<link xmlns="" rel="stylesheet" href="../../boostbook.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0" />
<link rel="start" href="../../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="up" href="../first.html" title="First" />
<link rel="prev" href="sub_b.html" title="Sub B" />
<link rel="next" href="../second.html" title="Second" />
</head>
<body>
<script type="text/javascript" src="../../grouped_links.js"></script>
<div id="heading">
<div id="heading-placard"></div>
<div class="heading_navigation_box">
<div class="grouped_links" id="chapters_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../../boost_libs_grouped_links.xml',
'chapters_select_box',
'http://www.boost.org/libs/');
</script>
</div>
<div class="grouped_links" id="sections_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../../sections_grouped_links.xml',
'sections_select_box',
'../.././');
</script>
</div>
</div>
<div class="heading_search_box">
<form id="cref" action="http://google.com/cse">
<input type="hidden" name="cref" value="" />
<div> Search Boost </div>
<div>
<input class="search_box" type="text" name="q" id="q" size="40" maxlength="255" alt="Search Text" />
</div>
</form>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="sub_b.html">
<img src="../../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../first.html">
<img src="../../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../../index.html">
<img src="../../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="../second.html">
<img src="../../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div xmlns="http://www.w3.org/1999/xhtml" class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title">
<a id="boostbook_integration.first.sub_c"></a>
<a href="sub_c.html" title="Sub C">Sub C</a>
</h3>
</div>
</div>
</div>
<p>
First section - subsection C
</p>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="sub_b.html">
<img src="../../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../first.html">
<img src="../../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../../index.html">
<img src="../../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="../second.html">
<img src="../../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="footer">
<div id="footer-left">
<div id="copyright">
<p xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision">Copyright © 2007 Matias Capeletto</p>
</div>
<div id="license">
<p>Distributed under the
<a href="/LICENSE_1_0.txt" class="internal">Boost Software License, Version 1.0</a>.
</p>
</div>
</div>
<div id="footer-right">
<div id="banners">
<p id="banner-xhtml">
<a href="http://validator.w3.org/check?uri=referer" class="external">XHTML 1.0</a>
</p>
<p id="banner-css">
<a href="http://jigsaw.w3.org/css-validator/check/referer" class="external">CSS</a>
</p>
<p id="banner-sourceforge">
<a href="http://sourceforge.net" class="external">SourceForge</a>
</p>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Second</title>
<link xmlns="" rel="stylesheet" href="../boostbook.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0" />
<link rel="start" href="../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="up" href="../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="prev" href="first/sub_c.html" title="Sub C" />
<link rel="next" href="second/sub_b.html" title="Sub B" />
</head>
<body>
<script type="text/javascript" src="../grouped_links.js"></script>
<div id="heading">
<div id="heading-placard"></div>
<div class="heading_navigation_box">
<div class="grouped_links" id="chapters_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../boost_libs_grouped_links.xml',
'chapters_select_box',
'http://www.boost.org/libs/');
</script>
</div>
<div class="grouped_links" id="sections_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../sections_grouped_links.xml',
'sections_select_box',
'.././');
</script>
</div>
</div>
<div class="heading_search_box">
<form id="cref" action="http://google.com/cse">
<input type="hidden" name="cref" value="" />
<div> Search Boost </div>
<div>
<input class="search_box" type="text" name="q" id="q" size="40" maxlength="255" alt="Search Text" />
</div>
</form>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="first/sub_c.html">
<img src="../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../index.html">
<img src="../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../index.html">
<img src="../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="second/sub_b.html">
<img src="../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div xmlns="http://www.w3.org/1999/xhtml" class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a id="boostbook_integration.second"></a>
<a href="second.html" title="Second">Second</a>
</h2>
</div>
</div>
</div>
<div xmlns="" class="toc">
<div class="box-outer-wrapper">
<div class="box-top-left"></div>
<div class="box-top-right"></div>
<div class="box-top"></div>
<div class="box-inner-wrapper">
<dl xmlns="http://www.w3.org/1999/xhtml">
<dt>
<span class="section">
<a href="second.html#boostbook_integration.second.sub_a">Sub A</a>
</span>
</dt>
<dt>
<span class="section">
<a href="second/sub_b.html">Sub B</a>
</span>
</dt>
</dl>
</div>
<div class="box-bottom-left"></div>
<div class="box-bottom-right"></div>
<div class="box-bottom"></div>
</div>
</div>
<p>
Second section
</p>
<div class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title">
<a id="boostbook_integration.second.sub_a"></a>
<a href="second.html#boostbook_integration.second.sub_a" title="Sub A">Sub A</a>
</h3>
</div>
</div>
</div>
<p>
Second section - subsection A
</p>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="first/sub_c.html">
<img src="../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../index.html">
<img src="../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../index.html">
<img src="../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="second/sub_b.html">
<img src="../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="footer">
<div id="footer-left">
<div id="copyright">
<p xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision">Copyright © 2007 Matias Capeletto</p>
</div>
<div id="license">
<p>Distributed under the
<a href="/LICENSE_1_0.txt" class="internal">Boost Software License, Version 1.0</a>.
</p>
</div>
</div>
<div id="footer-right">
<div id="banners">
<p id="banner-xhtml">
<a href="http://validator.w3.org/check?uri=referer" class="external">XHTML 1.0</a>
</p>
<p id="banner-css">
<a href="http://jigsaw.w3.org/css-validator/check/referer" class="external">CSS</a>
</p>
<p id="banner-sourceforge">
<a href="http://sourceforge.net" class="external">SourceForge</a>
</p>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Sub B</title>
<link xmlns="" rel="stylesheet" href="../../boostbook.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0" />
<link rel="start" href="../../index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="up" href="../second.html" title="Second" />
<link rel="prev" href="../second.html" title="Second" />
<link rel="next" href="../final.html" title="Final" />
</head>
<body>
<script type="text/javascript" src="../../grouped_links.js"></script>
<div id="heading">
<div id="heading-placard"></div>
<div class="heading_navigation_box">
<div class="grouped_links" id="chapters_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../../boost_libs_grouped_links.xml',
'chapters_select_box',
'http://www.boost.org/libs/');
</script>
</div>
<div class="grouped_links" id="sections_select_box">
<script type="text/javascript">
grouped_links_select_box(
'../../sections_grouped_links.xml',
'sections_select_box',
'../.././');
</script>
</div>
</div>
<div class="heading_search_box">
<form id="cref" action="http://google.com/cse">
<input type="hidden" name="cref" value="" />
<div> Search Boost </div>
<div>
<input class="search_box" type="text" name="q" id="q" size="40" maxlength="255" alt="Search Text" />
</div>
</form>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="../second.html">
<img src="../../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../second.html">
<img src="../../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../../index.html">
<img src="../../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="../final.html">
<img src="../../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div xmlns="http://www.w3.org/1999/xhtml" class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title">
<a id="boostbook_integration.second.sub_b"></a>
<a href="sub_b.html" title="Sub B">Sub B</a>
</h3>
</div>
</div>
</div>
<p>
Second section - subsection B
</p>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="spirit-nav">
<a accesskey="p" href="../second.html">
<img src="../../../../doc/html/images/prev.png" alt="Prev" />
</a>
<a accesskey="u" href="../second.html">
<img src="../../../../doc/html/images/up.png" alt="Up" />
</a>
<a accesskey="h" href="../../index.html">
<img src="../../../../doc/html/images/home.png" alt="Home" />
</a>
<a accesskey="n" href="../final.html">
<img src="../../../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="footer">
<div id="footer-left">
<div id="copyright">
<p xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision">Copyright © 2007 Matias Capeletto</p>
</div>
<div id="license">
<p>Distributed under the
<a href="/LICENSE_1_0.txt" class="internal">Boost Software License, Version 1.0</a>.
</p>
</div>
</div>
<div id="footer-right">
<div id="banners">
<p id="banner-xhtml">
<a href="http://validator.w3.org/check?uri=referer" class="external">XHTML 1.0</a>
</p>
<p id="banner-css">
<a href="http://jigsaw.w3.org/css-validator/check/referer" class="external">CSS</a>
</p>
<p id="banner-sourceforge">
<a href="http://sourceforge.net" class="external">SourceForge</a>
</p>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,63 @@
#include <iostream>
#include <fstream>
#include <string>
#include <functional>
#include <algorithm>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/optional.hpp>
#include <boost/none.hpp>
using namespace boost::property_tree;
using namespace boost;
using namespace std;
optional<ptree&> find_toc( ptree& html )
{
ptree& pbody = html.get_child("html.body");
for( ptree::iterator i = pbody.begin(), ie = pbody.end();
i != ie ; ++i )
{
std::cout << i->second.get<string>("<xmlattr>","") << std::endl;
if( i->second.get<string>("<xmlattr>","") == "body" )
{
ptree& pc = i->second.get_child("div.div.div");
for( ptree::iterator ic = pc.begin(), iec = pc.end();
ic != iec ; ++ic )
{
if( i->second.get<string>("<xmlattr>","") == "toc" )
{
return i->second.get_child("dl");
}
}
}
}
return none;
}
int main()
{
ptree html;
std::string in_name = "index.html";
/*
ifstream inhtml( in_name.c_str(), ios_base::in );
if( !inhtml )
{
std::cout << std::endl << "dow!" << std::endl;
}
*/
read_xml(in_name,html);
optional<ptree&> toc = find_toc(html);
if( toc )
{
std::cout << std::endl << "great!" << std::endl;
}
return 0;
}

View File

@@ -0,0 +1,198 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Chapter 1. Boost.GroupedLinks example</title>
<link xmlns="" rel="stylesheet" href="boostbook.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0" />
<link rel="start" href="index.html" title="Chapter 1. Boost.GroupedLinks example" />
<link rel="next" href="boostbook_integration/first.html" title="First" />
</head>
<body>
<script type="text/javascript" src="grouped_links.js"></script>
<div id="heading">
<div id="heading-placard"></div>
<div class="heading_navigation_box">
<div class="grouped_links" id="chapters_select_box">
<script type="text/javascript">
grouped_links_select_box(
'boost_libs_grouped_links.xml',
'chapters_select_box',
'http://www.boost.org/libs/');
</script>
</div>
<div class="grouped_links" id="sections_select_box">
<script type="text/javascript">
grouped_links_select_box(
'sections_grouped_links.xml',
'sections_select_box',
'./');
</script>
</div>
</div>
<div class="heading_search_box">
<form id="cref" action="http://google.com/cse">
<input type="hidden" name="cref" value="" />
<div> Search Boost </div>
<div>
<input class="search_box" type="text" name="q" id="q" size="40" maxlength="255" alt="Search Text" />
</div>
</form>
</div>
</div>
<div class="spirit-nav">
<a accesskey="n" href="boostbook_integration/first.html">
<img src="../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div xmlns="http://www.w3.org/1999/xhtml" class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a id="boostbook_integration"></a>Chapter 1. Boost.GroupedLinks example</h2>
</div>
<div>
<div class="author">
<h3 class="author"><span class="firstname">Matias</span> <span class="surname">Capeletto</span></h3>
</div>
</div>
<div>
<p class="copyright">Copyright © 2007 Matias Capeletto</p>
</div>
<div>
<div class="legalnotice">
<a id="id2597309"></a>
<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a xmlns="" href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div>
</div>
</div>
</div>
<div xmlns="" class="toc">
<div class="box-outer-wrapper">
<div class="box-top-left"></div>
<div class="box-top-right"></div>
<div class="box-top"></div>
<div class="box-inner-wrapper">
<p>
<b>Table of Contents</b>
</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
<dt>
<span class="section">
<a href="index.html#boostbook_integration.preface">Preface</a>
</span>
</dt>
<dt>
<span class="section">
<a href="boostbook_integration/first.html">First</a>
</span>
</dt>
<dd>
<dl>
<dt>
<span class="section">
<a href="boostbook_integration/first.html#boostbook_integration.first.sub_a">Sub A</a>
</span>
</dt>
<dt>
<span class="section">
<a href="boostbook_integration/first/sub_b.html">Sub B</a>
</span>
</dt>
<dt>
<span class="section">
<a href="boostbook_integration/first/sub_c.html">Sub C</a>
</span>
</dt>
</dl>
</dd>
<dt>
<span class="section">
<a href="boostbook_integration/second.html">Second</a>
</span>
</dt>
<dd>
<dl>
<dt>
<span class="section">
<a href="boostbook_integration/second.html#boostbook_integration.second.sub_a">Sub A</a>
</span>
</dt>
<dt>
<span class="section">
<a href="boostbook_integration/second/sub_b.html">Sub B</a>
</span>
</dt>
</dl>
</dd>
<dt>
<span class="section">
<a href="boostbook_integration/final.html">Final</a>
</span>
</dt>
</dl>
</div>
<div class="box-bottom-left"></div>
<div class="box-bottom-right"></div>
<div class="box-bottom"></div>
</div>
</div>
<div class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a id="boostbook_integration.preface"></a>
<a href="index.html#boostbook_integration.preface" title="Preface">Preface</a>
</h2>
</div>
</div>
</div>
<p>
Preface section
</p>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="spirit-nav">
<a accesskey="n" href="boostbook_integration/first.html">
<img src="../../doc/html/images/next.png" alt="Next" />
</a>
</div>
<div id="footer">
<div id="footer-left">
<div id="revised">Revised: June 15, 2007 at 15:06:18 GMT</div>
<div id="copyright"></div>
<div id="license">
<p>Distributed under the
<a href="/LICENSE_1_0.txt" class="internal">Boost Software License, Version 1.0</a>.
</p>
</div>
</div>
<div id="footer-right">
<div id="banners">
<p id="banner-xhtml">
<a href="http://validator.w3.org/check?uri=referer" class="external">XHTML 1.0</a>
</p>
<p id="banner-css">
<a href="http://jigsaw.w3.org/css-validator/check/referer" class="external">CSS</a>
</p>
<p id="banner-sourceforge">
<a href="http://sourceforge.net" class="external">SourceForge</a>
</p>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--=========================================================================
Grouped links for Boost.GroupedLinks boostbook integration example
Copyright (c) 2007 Matias Capeletto
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
===========================================================================-->
<groupedLinks version="1.0">
<title tag="Sections" url="index.html"/>
<group tag="Preface" url="index.html"/>
<group tag="First" url="boostbook_integration/first.html">
<item tag="Sub A" url="boostbook_integration/first.html"/>
<item tag="Sub B" url="boostbook_integration/first/sub_b.html"/>
<item tag="Sub C" url="boostbook_integration/first/sub_c.html"/>
</group>
<group tag="Second" url="boostbook_integration/second.html">
<item tag="Sub A" url="boostbook_integration/second.html"/>
<item tag="Sub B" url="boostbook_integration/second/sub_b.html"/>
</group>
<group tag="Final" url="boostbook_integration/final.html"/>
</groupedLinks>