From 39a4f0343d52559e22c3f47c055cb6de8eadba33 Mon Sep 17 00:00:00 2001 From: rankoo Date: Mon, 16 Aug 2010 18:03:59 +0000 Subject: [PATCH] test documents and their output (docbook/html) through DocBook API Extension --- docbook/relaxng/api/tests/html/HTML.manifest | 11 + docbook/relaxng/api/tests/html/about.html | 56 ++ docbook/relaxng/api/tests/html/api.css | 600 ++++++++++++++++++ .../relaxng/api/tests/html/id18968-bb.html | 103 +++ docbook/relaxng/api/tests/html/index.html | 33 + docbook/relaxng/api/tests/html/libraries.html | 43 ++ docbook/relaxng/api/tests/html/tools.html | 43 ++ 7 files changed, 889 insertions(+) create mode 100644 docbook/relaxng/api/tests/html/HTML.manifest create mode 100644 docbook/relaxng/api/tests/html/about.html create mode 100644 docbook/relaxng/api/tests/html/api.css create mode 100644 docbook/relaxng/api/tests/html/id18968-bb.html create mode 100644 docbook/relaxng/api/tests/html/index.html create mode 100644 docbook/relaxng/api/tests/html/libraries.html create mode 100644 docbook/relaxng/api/tests/html/tools.html diff --git a/docbook/relaxng/api/tests/html/HTML.manifest b/docbook/relaxng/api/tests/html/HTML.manifest new file mode 100644 index 000000000..21e754534 --- /dev/null +++ b/docbook/relaxng/api/tests/html/HTML.manifest @@ -0,0 +1,11 @@ +index.html +about.html +libraries.html +id18968-bb.html +any/examples.html +any/reference.html +boost/bad_any_cast.html +boost/any.html +boost/any_cast.html +any/acknowledgments.html +tools.html diff --git a/docbook/relaxng/api/tests/html/about.html b/docbook/relaxng/api/tests/html/about.html new file mode 100644 index 000000000..d8ab9e85d --- /dev/null +++ b/docbook/relaxng/api/tests/html/about.html @@ -0,0 +1,56 @@ + + + +What's Included in This Document + + + + + + + + +
DocBook API Dcoumentation
+
+
+PrevUpHomeNext +
+
+

+What's Included in This Document

+

This document represents only a subset of the full Boost + documentation: that part which is generated from BoostBook or + QuickBook sources. Eventually all Boost libraries may use these + formats, but in the meantime, much of Boost's documentation is not + available here. Please + see http://www.boost.org/libs + for complete documentation. +

+

+ Documentation for some of the libraries described in this document is + available in alternative formats: +

+ +

+

+
+ + + +
+
+
+PrevUpHomeNext +
+ + diff --git a/docbook/relaxng/api/tests/html/api.css b/docbook/relaxng/api/tests/html/api.css new file mode 100644 index 000000000..72b7efd2d --- /dev/null +++ b/docbook/relaxng/api/tests/html/api.css @@ -0,0 +1,600 @@ +/*============================================================================= + Copyright (c) 2004 Joel de Guzman + http://spirit.sourceforge.net/ + + Distributed under the Boost Software License, Version 1.0. (See accompany- + ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +/*============================================================================= + Body defaults +=============================================================================*/ + + body + { + margin: 1em; + font-family: sans-serif; + } + +/*============================================================================= + Paragraphs +=============================================================================*/ + + p + { + text-align: left; + font-size: 10pt; + line-height: 1.15; + } + +/*============================================================================= + Program listings +=============================================================================*/ + + /* Code on paragraphs */ + p tt.computeroutput + { + font-size: 9pt; + } + + pre.synopsis + { + font-size: 9pt; + margin: 1pc 4% 0pc 4%; + padding: 0.5pc 0.5pc 0.5pc 0.5pc; + } + + .programlisting, + .screen + { + font-size: 9pt; + display: block; + margin: 1pc 4% 0pc 4%; + padding: 0.5pc 0.5pc 0.5pc 0.5pc; + } + + /* Program listings in tables don't get borders */ + td .programlisting, + td .screen + { + margin: 0pc 0pc 0pc 0pc; + padding: 0pc 0pc 0pc 0pc; + } + +/*============================================================================= + Headings +=============================================================================*/ + + h1, h2, h3, h4, h5, h6 + { + text-align: left; + margin: 1em 0em 0.5em 0em; + font-weight: bold; + } + + h1 { font: 140% } + h2 { font: bold 140% } + h3 { font: bold 130% } + h4 { font: bold 120% } + h5 { font: italic 110% } + h6 { font: italic 100% } + + /* Top page titles */ + title, + h1.title, + h2.title + h3.title, + h4.title, + h5.title, + h6.title, + .refentrytitle + { + font-weight: bold; + margin-bottom: 1pc; + } + + h1.title { font-size: 140% } + h2.title { font-size: 140% } + h3.title { font-size: 130% } + h4.title { font-size: 120% } + h5.title { font-size: 110% } + h6.title { font-size: 100% } + + .section h1 + { + margin: 0em 0em 0.5em 0em; + font-size: 140%; + } + + .section h2 { font-size: 140% } + .section h3 { font-size: 130% } + .section h4 { font-size: 120% } + .section h5 { font-size: 110% } + .section h6 { font-size: 100% } + + /* Code on titles */ + h1 tt.computeroutput { font-size: 140% } + h2 tt.computeroutput { font-size: 140% } + h3 tt.computeroutput { font-size: 130% } + h4 tt.computeroutput { font-size: 130% } + h5 tt.computeroutput { font-size: 130% } + h6 tt.computeroutput { font-size: 130% } + + +/*============================================================================= + Author +=============================================================================*/ + + h3.author + { + font-size: 100% + } + +/*============================================================================= + Lists +=============================================================================*/ + + li + { + font-size: 10pt; + line-height: 1.3; + } + + /* Unordered lists */ + ul + { + text-align: left; + } + + /* Ordered lists */ + ol + { + text-align: left; + } + +/*============================================================================= + Links +=============================================================================*/ + + a + { + text-decoration: none; /* no underline */ + } + + a:hover + { + text-decoration: underline; + } + +/*============================================================================= + Spirit style navigation +=============================================================================*/ + + .spirit-nav + { + text-align: right; + } + + .spirit-nav a + { + color: white; + padding-left: 0.5em; + } + + .spirit-nav img + { + border-width: 0px; + } + +/*============================================================================= + Copyright footer +=============================================================================*/ + .copyright-footer + { + text-align: right; + font-size: 70%; + } + + .copyright-footer p + { + text-align: right; + font-size: 80%; + } + +/*============================================================================= + Table of contents +=============================================================================*/ + + .toc + { + margin: 1pc 4% 0pc 4%; + padding: 0.1pc 1pc 0.1pc 1pc; + font-size: 80%; + line-height: 1.15; + } + + .api-toc + { + float: right; + padding: 0.5pc; + } + + /* Code on toc */ + .toc .computeroutput { font-size: 120% } + +/*============================================================================= + Tables +=============================================================================*/ + + .table-title, + div.table p.title + { + margin-left: 4%; + padding-right: 0.5em; + padding-left: 0.5em; + } + + .informaltable table, + .table table + { + width: 92%; + margin-left: 4%; + margin-right: 4%; + } + + div.informaltable table, + div.table table + { + padding: 4px; + } + + /* Table Cells */ + div.informaltable table tr td, + div.table table tr td + { + padding: 0.5em; + text-align: left; + font-size: 9pt; + } + + div.informaltable table tr th, + div.table table tr th + { + padding: 0.5em 0.5em 0.5em 0.5em; + border: 1pt solid white; + font-size: 80%; + } + + table.simplelist + { + width: auto !important; + margin: 0em !important; + padding: 0em !important; + border: none !important; + } + table.simplelist td + { + margin: 0em !important; + padding: 0em !important; + text-align: left !important; + font-size: 9pt !important; + border: none !important; + } + +/*============================================================================= + Blurbs +=============================================================================*/ + + div.note, + div.tip, + div.important, + div.caution, + div.warning, + p.blurb + { + font-size: 9pt; /* A little bit smaller than the main text */ + line-height: 1.2; + display: block; + margin: 1pc 4% 0pc 4%; + padding: 0.5pc 0.5pc 0.5pc 0.5pc; + } + + p.blurb img + { + padding: 1pt; + } + +/*============================================================================= + Variable Lists +=============================================================================*/ + + div.variablelist + { + margin: 1em 0; + } + + /* Make the terms in definition lists bold */ + div.variablelist dl dt, + span.term + { + font-weight: bold; + font-size: 10pt; + } + + div.variablelist table tbody tr td + { + text-align: left; + vertical-align: top; + padding: 0em 2em 0em 0em; + font-size: 10pt; + margin: 0em 0em 0.5em 0em; + line-height: 1; + } + + div.variablelist dl dt + { + margin-bottom: 0.2em; + } + + div.variablelist dl dd + { + margin: 0em 0em 0.5em 2em; + font-size: 10pt; + } + + div.variablelist table tbody tr td p, + div.variablelist dl dd p + { + margin: 0em 0em 0.5em 0em; + line-height: 1; + } + +/*============================================================================= + Misc +=============================================================================*/ + + /* Title of books and articles in bibliographies */ + span.title + { + font-style: italic; + } + + span.underline + { + text-decoration: underline; + } + + span.strikethrough + { + text-decoration: line-through; + } + + /* Copyright, Legal Notice */ + div div.legalnotice p + { + text-align: left + } + +/*============================================================================= + Colors +=============================================================================*/ + + @media screen + { + body { + background-color: #FFFFFF; + color: #000000; + } + + /* Syntax Highlighting */ + .keyword { color: #0000AA; } + .identifier { color: #000000; } + .special { color: #707070; } + .preprocessor { color: #402080; } + .char { color: teal; } + .comment { color: #800000; } + .string { color: teal; } + .number { color: teal; } + .white_bkd { background-color: #FFFFFF; } + .dk_grey_bkd { background-color: #999999; } + + /* Links */ + a, a .keyword, a .identifier, a .special, a .preprocessor + a .char, a .comment, a .string, a .number + { + color: #005a9c; + } + + a:visited, a:visited .keyword, a:visited .identifier, + a:visited .special, a:visited .preprocessor a:visited .char, + a:visited .comment, a:visited .string, a:visited .number + { + color: #9c5a9c; + } + + h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, + h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, + h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited + { + text-decoration: none; /* no underline */ + color: #000000; + } + + /* Copyright, Legal Notice */ + .copyright + { + color: #666666; + font-size: small; + } + + div div.legalnotice p + { + color: #666666; + } + + /* Program listing */ + pre.synopsis + { + border: 1px solid #DCDCDC; + } + + .programlisting, + .screen + { + border: 1px solid #DCDCDC; + } + + td .programlisting, + td .screen + { + border: 0px solid #DCDCDC; + } + + /* Blurbs */ + div.note, + div.tip, + div.important, + div.caution, + div.warning, + p.blurb + { + border: 1px solid #DCDCDC; + } + + /* Table of contents */ + .toc + { + border: 1px solid #DCDCDC; + } + + /* Tables */ + div.informaltable table tr td, + div.table table tr td + { + border: 1px solid #DCDCDC; + } + + div.informaltable table tr th, + div.table table tr th + { + background-color: #F0F0F0; + border: 1px solid #DCDCDC; + } + + .copyright-footer + { + color: #8F8F8F; + } + + /* Misc */ + span.highlight + { + color: #00A000; + } + } + + @media print + { + /* Links */ + a + { + color: black; + } + + a:visited + { + color: black; + } + + .spirit-nav + { + display: none; + } + + /* Program listing */ + pre.synopsis + { + border: 1px solid gray; + } + + .programlisting, + .screen + { + border: 1px solid gray; + } + + td .programlisting, + td .screen + { + border: 0px solid #DCDCDC; + } + + /* Table of contents */ + .toc + { + border: 1px solid gray; + } + + .informaltable table, + .table table + { + border: 1px solid gray; + border-collapse: collapse; + } + + /* Tables */ + div.informaltable table tr td, + div.table table tr td + { + border: 1px solid gray; + } + + div.informaltable table tr th, + div.table table tr th + { + border: 1px solid gray; + } + + table.simplelist tr td + { + border: none !important; + } + + /* Misc */ + span.highlight + { + font-weight: bold; + } + } + +/*============================================================================= + Images +=============================================================================*/ + + span.inlinemediaobject img + { + vertical-align: middle; + } + +/*============================================================================== + Super and Subscript: style so that line spacing isn't effected, see + http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=1&postId=5341 +==============================================================================*/ + +sup, +sub { + height: 0; + line-height: 1; + vertical-align: baseline; + _vertical-align: bottom; + position: relative; + +} + +sup { + bottom: 1ex; +} + +sub { + top: .5ex; +} diff --git a/docbook/relaxng/api/tests/html/id18968-bb.html b/docbook/relaxng/api/tests/html/id18968-bb.html new file mode 100644 index 000000000..0b7920650 --- /dev/null +++ b/docbook/relaxng/api/tests/html/id18968-bb.html @@ -0,0 +1,103 @@ + + + +Chapter 1. Boost.Any + + + + + + + + +
DocBook API Dcoumentation
+
+
+PrevUpHomeNext +
+
+
+

+Chapter 1. Boost.Any

+

Kevlin Henney

+
+
+

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) +

+
+
+ +
+

+Introduction

+

There are times when a generic (in the sense of + general as opposed to + template-based programming) type is needed: + variables that are truly variable, accommodating values of many + other more specific types rather than C++'s normal strict and + static types. We can distinguish three basic kinds of generic + type:

+
    +
  • Converting types that can hold one of a number of + possible value types, e.g. int and + string, and freely convert between them, for + instance interpreting 5 as "5" or + vice-versa. Such types are common in scripting and other + interpreted + languages. + boost::lexical_cast + supports such conversion functionality.

  • +
  • + Discriminated types that contain values of different types but + do not attempt conversion between them, i.e. 5 is + held strictly as an int and is not implicitly + convertible either to "5" or to + 5.0. Their indifference to interpretation but + awareness of type effectively makes them safe, generic + containers of single values, with no scope for surprises from + ambiguous conversions.

  • +
  • + Indiscriminate types that can refer to anything but are + oblivious to the actual underlying type, entrusting all forms + of access and interpretation to the programmer. This niche is + dominated by void *, which offers plenty of scope + for surprising, undefined behavior.

  • +
+

The boost::any class + (based on the class of the same name described in "Valued + Conversions" by Kevlin Henney, C++ + Report 12(7), July/August 2000) is a variant value type + based on the second category. It supports copying of any value + type and safe checked extraction of that value strictly against + its type. A similar design, offering more appropriate operators, + can be used for a generalized function adaptor, + any_function, a generalized iterator adaptor, + any_iterator, and other object types that need + uniform runtime treatment but support only compile-time template + parameter conformance.

+
+
+ + + +

Last revised: July 22, 2009 at 23:35:08 +0100

+
+
+PrevUpHomeNext +
+ + diff --git a/docbook/relaxng/api/tests/html/index.html b/docbook/relaxng/api/tests/html/index.html new file mode 100644 index 000000000..8671decbd --- /dev/null +++ b/docbook/relaxng/api/tests/html/index.html @@ -0,0 +1,33 @@ + + + + + + + + + + +
DocBook API Dcoumentation
+
+
Next
+
+

+ +
+ + + +
+
+
Next
+ + diff --git a/docbook/relaxng/api/tests/html/libraries.html b/docbook/relaxng/api/tests/html/libraries.html new file mode 100644 index 000000000..8fc58decf --- /dev/null +++ b/docbook/relaxng/api/tests/html/libraries.html @@ -0,0 +1,43 @@ + + + +Part I. The Boost C++ Libraries (BoostBook Subset) + + + + + + + + +
DocBook API Dcoumentation
+
+
+PrevUpHomeNext +
+
+

+Part I. The Boost C++ Libraries (BoostBook Subset)

+
+

Table of Contents

+
+
1. Boost.Any
+
+
Introduction
+
Examples
+
Reference
+
Acknowledgements
+
+
+
+
+ + + +
+
+
+PrevUpHomeNext +
+ + diff --git a/docbook/relaxng/api/tests/html/tools.html b/docbook/relaxng/api/tests/html/tools.html new file mode 100644 index 000000000..9ea35a57f --- /dev/null +++ b/docbook/relaxng/api/tests/html/tools.html @@ -0,0 +1,43 @@ + + + +Part II. Boost Tools + + + + + + + +
DocBook API Dcoumentation
+
+
+PrevUpHome +
+
+

+Part II. Boost Tools

+
+
+

+ Boost developers, testers, and maintainers have developed various programs to + help with the administration of the Boost Libraries. Like everything else about + Boost, these tools are available in source form, and are part of the regular + Boost distribution. +

+

+ Users may find these tools useful when porting Boost libraries to a new platform, + or for use with their own applications. +

+
+
+ + + +
+
+
+PrevUpHome +
+ + -- 2.50.1