|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53532 - in trunk/libs/mpl/doc: . src src/docutils/writers/html4_refdoc src/refmanual
From: agurtovoy_at_[hidden]
Date: 2009-06-01 07:50:38
Author: agurtovoy
Date: 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
New Revision: 53532
URL: http://svn.boost.org/trac/boost/changeset/53532
Log:
Bring up MPL refmanual docs generation
Text files modified:
trunk/libs/mpl/doc/src/build.py | 32 +++++-----
trunk/libs/mpl/doc/src/docutils/writers/html4_refdoc/__init__.py | 24 +++++++
trunk/libs/mpl/doc/src/refmanual/Algorithms.rst | 5 +
trunk/libs/mpl/doc/src/refmanual/AssociativeSequence.rst | 10 +-
trunk/libs/mpl/doc/src/refmanual/CFG_NO_PREPROCESSED.rst | 5 +
trunk/libs/mpl/doc/src/refmanual/Metafunctions-Arithmetic.rst | 5 +
trunk/libs/mpl/doc/src/refmanual/Metafunctions-Bitwise.rst | 5 +
trunk/libs/mpl/doc/src/refmanual/Metafunctions-Comparisons.rst | 5 +
trunk/libs/mpl/doc/src/refmanual/Metafunctions-Composition.rst | 10 ++-
trunk/libs/mpl/doc/src/refmanual/Metafunctions-Conditional.rst | 4
trunk/libs/mpl/doc/src/refmanual/Metafunctions-Invocation.rst | 4
trunk/libs/mpl/doc/src/refmanual/Metafunctions-Logical.rst | 6 +
trunk/libs/mpl/doc/src/refmanual/Metafunctions-Trivial.rst | 5 +
trunk/libs/mpl/doc/src/refmanual/Metafunctions-Type.rst | 4
trunk/libs/mpl/doc/src/refmanual/Placeholders.rst | 21 ++++++
trunk/libs/mpl/doc/src/refmanual/Sequences-Concepts.rst | 5 +
trunk/libs/mpl/doc/src/refmanual/TagDispatchedMetafunction.rst | 9 ++-
trunk/libs/mpl/doc/src/refmanual/Terminology.rst | 13 +---
trunk/libs/mpl/doc/src/refmanual/VariadicSequence.rst | 14 +++-
trunk/libs/mpl/doc/src/refmanual/bool_.rst | 11 ++-
trunk/libs/mpl/doc/src/refmanual/inserter_.rst | 10 +-
trunk/libs/mpl/doc/src/refmanual/refmanual.py | 12 +--
trunk/libs/mpl/doc/src/refmanual/refmanual.rst | 30 +---------
trunk/libs/mpl/doc/style.css | 115 +++++++++++++++++++++++++++++++--------
24 files changed, 231 insertions(+), 133 deletions(-)
Modified: trunk/libs/mpl/doc/src/build.py
==============================================================================
--- trunk/libs/mpl/doc/src/build.py (original)
+++ trunk/libs/mpl/doc/src/build.py 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,4 +1,4 @@
-# Copyright (c) Aleksey Gurtovoy 2008
+# Copyright (c) Aleksey Gurtovoy 2008-2009
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
@@ -10,21 +10,21 @@
def build():
- def cleanup():
- if os.path.exists( 'refmanual.gen' ):
- os.unlink( 'refmanual.gen' )
-
- if os.path.exists( 'build' ):
- shutil.rmtree( 'build' )
-
- def generate_html():
- os.system( 'python refmanual.py' )
- os.mkdir( 'build' )
- os.system( 'rst2htmlrefdoc.py -g -d -t --no-frames --traceback refmanual.gen build/refmanual.html' )
-
- os.chdir( 'refmanual' )
- cleanup()
- generate_html()
+ def cleanup():
+ if os.path.exists( 'refmanual.gen' ):
+ os.unlink( 'refmanual.gen' )
+
+ if os.path.exists( 'build' ):
+ shutil.rmtree( 'build' )
+
+ def generate_html():
+ os.system( 'python refmanual.py' )
+ os.mkdir( 'build' )
+ os.system( 'rst2htmlrefdoc.py -g -d -t --no-frames --dont-copy-stylesheet --stylesheet-path=style.css --traceback refmanual.gen build/refmanual.html' )
+
+ os.chdir( 'refmanual' )
+ cleanup()
+ generate_html()
build()
Modified: trunk/libs/mpl/doc/src/docutils/writers/html4_refdoc/__init__.py
==============================================================================
--- trunk/libs/mpl/doc/src/docutils/writers/html4_refdoc/__init__.py (original)
+++ trunk/libs/mpl/doc/src/docutils/writers/html4_refdoc/__init__.py 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -52,6 +52,12 @@
self.__super.depart_title(self, node)
+ def visit_table(self, node):
+ self = self.active_visitor()
+ self.body.append(
+ self.starttag(node, 'table', CLASS='docutils table', border="1"))
+
+
def visit_reference(self, node):
self.in_reference = 1
if len(node) == 1 and isinstance(node[0], nodes.literal) and node[0].has_key('class'):
@@ -161,10 +167,24 @@
identifier = match.group(2)
if not base.document.has_name( identifier.lower() ):
return self.encode(match.group(0))
-
+
+ def get_section_id( id ):
+ node = base.document.ids[ id ]
+ if isinstance( node, nodes.section ):
+ return id
+
+ if isinstance( node, nodes.target ):
+ return get_section_id( node.get( 'refid' ) )
+
+ return None
+
+ id = get_section_id( base.document.nameids[ identifier.lower() ] )
+ if not id:
+ return self.encode(match.group(0))
+
result = self.encode(match.group(1))
result += '%s' \
- % ( base._chunk_ref( base._active_chunk_id(), base.document.nameids[identifier.lower()] )
+ % ( base._chunk_ref( base._active_chunk_id(), id )
, self.encode(identifier)
)
Modified: trunk/libs/mpl/doc/src/refmanual/Algorithms.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Algorithms.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Algorithms.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,5 +1,5 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
@@ -41,4 +41,5 @@
.. |Output Iterator| replace:: `Output Iterator <http://www.sgi.com/tech/stl/OutputIterator.html>`__
-.. |sequence algorithms| replace:: `sequence algorithms <|Algorithms link|>`__
+.. |sequence algorithms| replace:: `sequence algorithms`_
+.. _`sequence algorithms`: `Algorithms`_
Modified: trunk/libs/mpl/doc/src/refmanual/AssociativeSequence.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/AssociativeSequence.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/AssociativeSequence.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,6 +1,6 @@
.. Sequences/Concepts//Associative Sequence |70
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
@@ -114,8 +114,8 @@
|Sequences|, |Extensible Associative Sequence|, |has_key|, |count|, |order|, |at|, |key_type|, |value_type|
-.. |key| replace:: `key <|key-part_link|>`__
-.. |key-part_link| replace:: `key-part`_
+.. |key| replace:: `key`_
+.. _`key`: `key-part`_
-.. |value| replace:: `value <|value-part_link|>`__
-.. |value-part_link| replace:: `value-part`_
+.. |value| replace:: `value`_
+.. _`value`: `value-part`_
Modified: trunk/libs/mpl/doc/src/refmanual/CFG_NO_PREPROCESSED.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/CFG_NO_PREPROCESSED.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/CFG_NO_PREPROCESSED.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,6 +1,6 @@
.. Macros/Configuration//BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS |10
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
@@ -40,4 +40,5 @@
|Macros|, |Configuration|
-.. |preprocessed headers| replace:: `preprocessed headers <|BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS link|>`__
+.. |preprocessed headers| replace:: `preprocessed headers`_
+.. _`preprocessed headers`: `BOOST_MPL_CFG_NO_PREPROCESSED`_
Modified: trunk/libs/mpl/doc/src/refmanual/Metafunctions-Arithmetic.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Metafunctions-Arithmetic.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Metafunctions-Arithmetic.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,8 +1,9 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
.. |Arithmetic Operations| replace:: `Arithmetic Operations`_
-.. |arithmetic| replace:: `arithmetic <|Arithmetic Operations|>`__
+.. |arithmetic| replace:: arithmetic_
+.. _arithmetic: `Arithmetic Operations`_
Modified: trunk/libs/mpl/doc/src/refmanual/Metafunctions-Bitwise.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Metafunctions-Bitwise.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Metafunctions-Bitwise.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,8 +1,9 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
.. |Bitwise Operations| replace:: `Bitwise Operations`_
-.. |bitwise| replace:: `bitwise <|Bitwise Operations|>`__
+.. |bitwise| replace:: `bitwise`_
+.. _`bitwise`: `Bitwise Operations`_
Modified: trunk/libs/mpl/doc/src/refmanual/Metafunctions-Comparisons.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Metafunctions-Comparisons.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Metafunctions-Comparisons.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,8 +1,9 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
.. |Comparisons| replace:: `Comparisons`_
-.. |comparison| replace:: `comparison <|Comparisons|>`__
+.. |comparison| replace:: `comparison`_
+.. _`comparison`: `Comparisons`_
Modified: trunk/libs/mpl/doc/src/refmanual/Metafunctions-Composition.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Metafunctions-Composition.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Metafunctions-Composition.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,9 +1,13 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
+
.. |Composition and Argument Binding| replace:: `Composition and Argument Binding`_
-.. |composition| replace:: `composition <|Composition and Argument Binding link|>`__
-.. |argument binding| replace:: `argument binding <|Composition and Argument Binding link|>`__
+.. |composition| replace:: `composition`_
+.. _`composition`: `Composition and Argument Binding`_
+
+.. |argument binding| replace:: `argument binding`_
+.. _`argument binding`: `Composition and Argument Binding`_
Modified: trunk/libs/mpl/doc/src/refmanual/Metafunctions-Conditional.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Metafunctions-Conditional.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Metafunctions-Conditional.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,7 +1,7 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
-.. |control flow| replace:: `control flow <|Control Flow link|>`__
+.. |control flow| replace:: `control flow`_
Modified: trunk/libs/mpl/doc/src/refmanual/Metafunctions-Invocation.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Metafunctions-Invocation.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Metafunctions-Invocation.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,7 +1,7 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
-.. |invocation| replace:: `invocation <|Invocation link|>`__
+.. |invocation| replace:: `invocation`_
Modified: trunk/libs/mpl/doc/src/refmanual/Metafunctions-Logical.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Metafunctions-Logical.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Metafunctions-Logical.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,9 +1,11 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
-.. |logical| replace:: `logical <|Logical Operations|>`__
+.. |logical| replace:: `logical`_
+.. _`logical`: `Logical Operations`_
+
.. |Logical Operations| replace:: `Logical Operations`_
.. |logical operations| replace:: `logical operations`_
Modified: trunk/libs/mpl/doc/src/refmanual/Metafunctions-Trivial.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Metafunctions-Trivial.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Metafunctions-Trivial.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,5 +1,5 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
@@ -53,4 +53,5 @@
|Metafunctions|, |Trivial Metafunction|
-.. |Trivial Metafunctions| replace:: `Trivial Metafunctions <|Trivial link|>`__
+.. |Trivial Metafunctions| replace:: `Trivial Metafunctions`_
+.. _`Trivial Metafunctions`: `label-Metafunctions-Trivial`_
Modified: trunk/libs/mpl/doc/src/refmanual/Metafunctions-Type.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Metafunctions-Type.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Metafunctions-Type.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,7 +1,7 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
-.. |type selection| replace:: `type selection <|Type Selection link|>`__
+.. |type selection| replace:: `type selection`_
Modified: trunk/libs/mpl/doc/src/refmanual/Placeholders.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Placeholders.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Placeholders.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,12 +1,14 @@
.. Metafunctions/Composition and Argument Binding//_1,_2,..._n |10
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
Placeholders
============
+.. _`placeholder`:
+
Synopsis
--------
@@ -98,3 +100,20 @@
--------
|Composition and Argument Binding|, |arg|, |lambda|, |bind|, |apply|, |apply_wrap|
+
+
+.. |placeholder| replace:: `placeholder`_
+
+.. |_1| replace:: `_1`_
+.. |_2| replace:: `_2`_
+.. |_3| replace:: `_3`_
+.. |_4| replace:: `_4`_
+.. |_5| replace:: `_5`_
+
+.. _`_1`: `Placeholders`_
+.. _`_2`: `Placeholders`_
+.. _`_3`: `Placeholders`_
+.. _`_4`: `Placeholders`_
+.. _`_5`: `Placeholders`_
+
+.. |_1,_2,..._n| replace:: |_1|, |_2|, |_3|,\ |...|
Modified: trunk/libs/mpl/doc/src/refmanual/Sequences-Concepts.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Sequences-Concepts.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Sequences-Concepts.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,5 +1,5 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
@@ -29,4 +29,5 @@
the common parts of different sequence classes' specifications.
-.. |sequence concepts| replace:: `sequence concepts <|Sequences/Concepts link|>`__
+.. |sequence concepts| replace:: `sequence concepts`_
+.. _`sequence concepts`: `label-Sequences-Concepts`_
Modified: trunk/libs/mpl/doc/src/refmanual/TagDispatchedMetafunction.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/TagDispatchedMetafunction.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/TagDispatchedMetafunction.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,6 +1,6 @@
.. Metafunctions/Concepts//Tag Dispatched Metafunction |50
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
@@ -161,5 +161,8 @@
|Metafunction|, |Metafunction Class|, |Numeric Metafunction|
-.. |tag-metafunction| replace:: `tag metafunction <|tag-metafunction link|>`__
-.. |tag dispatched| replace:: `tag dispatched <|Tag Dispatched Metafunction link|>`__
+.. |tag-metafunction| replace:: `tag metafunctions`_
+.. _`tag metafunctions`: `tag-metafunction`_
+
+.. |tag dispatched| replace:: `tag dispatched`_
+.. _`tag dispatched`: `Tag Dispatched Metafunction`_
Modified: trunk/libs/mpl/doc/src/refmanual/Terminology.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/Terminology.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/Terminology.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,11 +1,10 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
.. _`Overloaded name`:
-.. |Overloaded name link| replace:: `Overloaded name`_
Overloaded name
Overloaded name is a term used in this reference documentation to designate
@@ -14,11 +13,7 @@
is implemented by other, unspecified, means.
-.. |overloaded name| replace:: `overloaded name <|Overloaded name link|>`__
-
-
.. _`Concept-identical`:
-.. |Concept-identical link| replace:: `Concept-identical`_
Concept-identical
A sequence ``s1`` is said to be concept-identical to a sequence ``s2`` if
@@ -26,7 +21,6 @@
.. _`Bind expression`:
-.. |Bind expression link| replace:: `Bind expression`_
Bind expression
A bind expression is simply that |--| an instantiation of one of the |bind|
@@ -43,5 +37,6 @@
_2
-.. |bind expression| replace:: `bind expression <|Bind expression link|>`__
-.. |concept-identical| replace:: `concept-identical <|Concept-identical link|>`__
+.. |overloaded name| replace:: `overloaded name`_
+.. |concept-identical| replace:: `concept-identical`_
+.. |bind expression| replace:: `bind expression`_
Modified: trunk/libs/mpl/doc/src/refmanual/VariadicSequence.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/VariadicSequence.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/VariadicSequence.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,6 +1,6 @@
.. Sequences/Concepts//Variadic Sequence |100
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
@@ -113,7 +113,11 @@
|Sequences|, |Configuration|, |Integral Sequence Wrapper|
-.. |variadic| replace:: `variadic <|Variadic Sequence link|>`__
-.. |variadic forms| replace:: `variadic forms <|Variadic Sequence link|>`__
-.. |numbered forms| replace:: `numbered forms <|Variadic Sequence link|>`__
-.. |Variadic Sequence link| replace:: `Variadic Sequence`_
+.. |variadic| replace:: `variadic`_
+.. _`variadic`: `Variadic Sequence`_
+
+.. |variadic forms| replace:: `variadic forms`_
+.. _`variadic forms`: `Variadic Sequence`_
+
+.. |numbered forms| replace:: `numbered forms`_
+.. _`numbered forms`: `Variadic Sequence`_
Modified: trunk/libs/mpl/doc/src/refmanual/bool_.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/bool_.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/bool_.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,6 +1,6 @@
.. Data Types/Numeric//bool_ |10
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
@@ -76,7 +76,7 @@
.. parsed-literal::
BOOST_MPL_ASSERT(( is_same< bool_<true>::value_type, bool > ));
- BOOST_MPL_ASSERT(( is_same< bool_<true>, |true_| > )); }
+ BOOST_MPL_ASSERT(( is_same< bool_<true>, true\_ > )); }
BOOST_MPL_ASSERT(( is_same< bool_<true>::type, bool_<true> > ));
BOOST_MPL_ASSERT_RELATION( bool_<true>::value, ==, true );
assert( bool_<true>() == true );
@@ -88,5 +88,8 @@
|Data Types|, |Integral Constant|, |int_|, |long_|, |integral_c|
-.. |true_| replace:: ```true_`` <|bool_ link|>`__
-.. |false_| replace:: ```false_`` <|bool_ link|>`__
+.. |true_| replace:: `true_`_
+.. _`true_`: `bool_`_
+
+.. |false_| replace:: `false_`_
+.. _`false_`: `bool_`_
Modified: trunk/libs/mpl/doc/src/refmanual/inserter_.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/inserter_.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/inserter_.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,12 +1,12 @@
.. Algorithms/Inserters//inserter
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
-|+inserter+|
-================
+|inserter(title)|
+=================
.. _`inserter_`:
@@ -100,5 +100,5 @@
|Algorithms|, |Inserter|, |Reversible Algorithm|, |front_inserter|, |back_inserter|
-.. |+inserter+| replace:: inserter
-.. |inserter| replace:: ':refentry:`inserter` <|inserter_ link|>'__
+.. |inserter(title)| replace:: inserter
+.. |inserter| replace:: ':refentry:`inserter` <|inserter_|>'__
Modified: trunk/libs/mpl/doc/src/refmanual/refmanual.py
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/refmanual.py (original)
+++ trunk/libs/mpl/doc/src/refmanual/refmanual.py 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,4 +1,4 @@
-# Copyright (c) Aleksey Gurtovoy 2001-2007
+# Copyright (c) Aleksey Gurtovoy 2001-2009
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
@@ -20,8 +20,7 @@
underline = underlines[len(parts) - 1] * len(parts[-1])
if len(parts) > 0:
hidden_target = '.. _`label-%s`:' % '-'.join( parts )
- replacement_link = '.. |%s link| replace:: `label-%s`_' % ( '/'.join( parts ), '-'.join( parts ) )
- return '\n%s\n%s\n%s\n%s\n\n' % (parts[-1], underline, hidden_target, replacement_link )
+ return '\n%s\n%s\n%s\n\n' % (parts[-1], underline, hidden_target )
else:
return '\n%s\n%s\n\n' % (parts[-1], underline )
@@ -40,15 +39,12 @@
else: ref = '/'.join( page.split('.')[0].split('-') )
if ref.upper() == ref or ref.lower() == ref:
output.write(
- ( '.. |%(ref)s| replace:: `|%(ref)s refentry| <|%(ref)s link|>`__\n'
- + '.. |%(ref)s refentry| replace:: :refentry:`%(ref)s`\n'
- + '.. |%(ref)s link| replace:: `%(ref)s`_\n'
- )
+ ( '.. |%(ref)s| replace:: `%(ref)s`_\n' )
% { 'ref': ref }
)
else:
if ref.find( '/' ) == -1:
- ref = ' '.join( filter( lambda x: len(x) > 0, re.split( '([A-Z][a-z]+)', ref ) ) )
+ ref = ' '.join( filter( lambda x: len( x.strip() ) > 0, re.split( '([A-Z][a-z]+)', ref ) ) )
output.write( '.. |%(ref)s| replace:: `%(ref)s`_\n' % { 'ref': ref } )
modtime = time.gmtime( os.stat( page ).st_mtime )
Modified: trunk/libs/mpl/doc/src/refmanual/refmanual.rst
==============================================================================
--- trunk/libs/mpl/doc/src/refmanual/refmanual.rst (original)
+++ trunk/libs/mpl/doc/src/refmanual/refmanual.rst 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -1,5 +1,5 @@
-.. Copyright Aleksey Gurtovoy, David Abrahams 2007.
+.. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. 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)
@@ -7,7 +7,7 @@
The MPL Reference Manual
************************
-:Copyright: Copyright © Aleksey Gurtovoy and David Abrahams, 2001-2007.
+:Copyright: Copyright © Aleksey Gurtovoy and David Abrahams, 2001-2009.
:License: Distributed under the Boost Software License, Version 1.0. (See
accompanying file ``LICENSE_1_0.txt`` or copy at
@@ -84,23 +84,6 @@
.. |O(1)| replace:: *O(1)*
-.. |_1| replace:: `|_1 refentry| <|Placeholders|>`__
-.. |_2| replace:: `|_2 refentry| <|Placeholders|>`__
-.. |_3| replace:: `|_3 refentry| <|Placeholders|>`__
-.. |_4| replace:: `|_4 refentry| <|Placeholders|>`__
-.. |_5| replace:: `|_5 refentry| <|Placeholders|>`__
-
-.. |_1 refentry| replace:: :refentry:`_1`
-.. |_2 refentry| replace:: :refentry:`_2`
-.. |_3 refentry| replace:: :refentry:`_3`
-.. |_4 refentry| replace:: :refentry:`_4`
-.. |_5 refentry| replace:: :refentry:`_5`
-
-.. |placeholder| replace:: `placeholder <|Placeholders|>`__
-
-.. |_1,_2,..._n| replace:: |_1|, |_2|, |_3|,\ |...|
-
-
.. |--| unicode:: U+02014 .. EM DASH
@@ -122,13 +105,8 @@
.. |preprocessed headers disclaimer| replace:: [*Note:* Overriding will take effect
- *only* if the library is configured not to use `preprocessed headers
- <|BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS_link|>`__. See
- |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS_ref| for more information. |--| *end note*\]
-
-.. |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS_ref| replace:: `:refentry:`BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS` <|BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS_link|>`__
-.. |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS_link| replace:: `BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS`_
-
+ *only* if the library is configured not to use |preprocessed headers|. See
+ |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS| for more information. |--| *end note*\]
.. |transformation algorithm disclaimer| replace::
[*Note:* This wording applies to a no-inserter version(s) of the algorithm. See the
Modified: trunk/libs/mpl/doc/style.css
==============================================================================
--- trunk/libs/mpl/doc/style.css (original)
+++ trunk/libs/mpl/doc/style.css 2009-06-01 07:50:35 EDT (Mon, 01 Jun 2009)
@@ -7,7 +7,6 @@
*/
-
.first
{
margin-top: 0;
@@ -22,27 +21,43 @@
/* <a/> */
-
a
{
- color: #0000cc;
+ text-decoration: none; /* no underline */
}
-a:visited
+a:hover
{
- color: #800080;
+ text-decoration: underline;
}
-/*
-sup a:link,
-sup a:visited,
-a.interlink:link,
-a.interlink:visited
+@media screen
{
- color: #505050;
- text-decoration: none;
+ a
+ {
+ color: #0C7445;
+ }
+
+ a:visited
+ {
+ color: #663974;
+ }
}
-*/
+
+
+@media print
+{
+ a
+ {
+ color: black;
+ }
+
+ a:visited
+ {
+ color: black;
+ }
+}
+
a.refentry
{
@@ -78,7 +93,8 @@
a.identifier:hover,
a.header:hover
{
- color: #0000cc;
+ color: #0077cc;
+ text-decoration: underline;
}
a.toc-backref:link,
@@ -117,13 +133,15 @@
body
{
- background: #fffff5;
+ margin: 1em;
+ font-family: sans-serif;
+ font-size: 10pt;
}
-body.refmanual
+p
{
- background: #fffff5 url(refmanual/manual.png) no-repeat top right fixed;
- margin-right: 25pt;
+ text-align: left;
+ line-height: 1.15;
}
/* <dd/> */
@@ -500,10 +518,19 @@
padding-right: 1em;
margin-top: 10pt;
margin-left: 0pt;
-/* background-color: #f7f7f7;*/
- background-color: #f5f5f5;
}
+
+@media screen
+{
+ pre.literal-block
+ {
+
+ background-color: #fafffb;
+ }
+}
+
+
td
pre.literal-block
{
@@ -530,6 +557,15 @@
margin-bottom: 0.5em;
}
+@media screen
+{
+ table.table th
+ {
+ background-color:#fafffb;
+ }
+}
+
+
table.docinfo
{
border: solid 0;
@@ -549,12 +585,29 @@
border-left: solid thin gray;
}
+@media screen
+{
+ table.citation
+ {
+ background-color:#fafffb;
+ }
+}
+
table.footnote
{
border: solid 0;
border-left: solid thin black;
}
+@media screen
+{
+ table.footnote
+ {
+ background-color:#fafffb;
+ }
+}
+
+
table.header,
table.footer
{
@@ -567,7 +620,7 @@
table.table
{
- border: solid 1px black;
+ border: solid 1px #c7c7c7;
border-collapse: collapse;
margin-bottom: 10pt;
}
@@ -581,7 +634,6 @@
table.table
th
{
- border: solid 1px black;
vertical-align: top;
}
@@ -592,6 +644,16 @@
padding-right: 5pt;
}
+
+@media screen
+{
+ table.table th
+ {
+ background-color:#fafffb;
+ }
+}
+
+
table.table
td
{
@@ -650,11 +712,16 @@
/* <tt/> */
-tt.literal
+@media screen
{
- background-color: #f5f5f5;
+ tt.literal
+ {
+
+ background-color: #fafffb;
+ }
}
+
h1
tt,
h2
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