1
0
forked from boostorg/mpl

Bring up MPL refmanual docs generation

[SVN r53532]
This commit is contained in:
Aleksey Gurtovoy
2009-06-01 11:50:35 +00:00
parent d53111cfc8
commit 4169d45c82
24 changed files with 228 additions and 130 deletions

View File

@@ -1,4 +1,4 @@
# Copyright (c) Aleksey Gurtovoy 2008 # Copyright (c) Aleksey Gurtovoy 2008-2009
# #
# Distributed under the Boost Software License, Version 1.0. # Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at # (See accompanying file LICENSE_1_0.txt or copy at
@@ -20,7 +20,7 @@ def build():
def generate_html(): def generate_html():
os.system( 'python refmanual.py' ) os.system( 'python refmanual.py' )
os.mkdir( 'build' ) os.mkdir( 'build' )
os.system( 'rst2htmlrefdoc.py -g -d -t --no-frames --traceback refmanual.gen build/refmanual.html' ) 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' ) os.chdir( 'refmanual' )
cleanup() cleanup()

View File

@@ -52,6 +52,12 @@ class refdoc_translator(html4_frames.frame_pages_translator):
self.__super.depart_title(self, node) 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): def visit_reference(self, node):
self.in_reference = 1 self.in_reference = 1
if len(node) == 1 and isinstance(node[0], nodes.literal) and node[0].has_key('class'): if len(node) == 1 and isinstance(node[0], nodes.literal) and node[0].has_key('class'):
@@ -162,9 +168,23 @@ class refdoc_translator(html4_frames.frame_pages_translator):
if not base.document.has_name( identifier.lower() ): if not base.document.has_name( identifier.lower() ):
return self.encode(match.group(0)) 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 = self.encode(match.group(1))
result += '<a href="%s" class="identifier">%s</a>' \ result += '<a href="%s" class="identifier">%s</a>' \
% ( base._chunk_ref( base._active_chunk_id(), base.document.nameids[identifier.lower()] ) % ( base._chunk_ref( base._active_chunk_id(), id )
, self.encode(identifier) , self.encode(identifier)
) )

View File

@@ -1,5 +1,5 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -41,4 +41,5 @@ concept.
.. |Output Iterator| replace:: `Output Iterator <http://www.sgi.com/tech/stl/OutputIterator.html>`__ .. |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`_

View File

@@ -1,6 +1,6 @@
.. Sequences/Concepts//Associative Sequence |70 .. Sequences/Concepts//Associative Sequence |70
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -114,8 +114,8 @@ See also
|Sequences|, |Extensible Associative Sequence|, |has_key|, |count|, |order|, |at|, |key_type|, |value_type| |Sequences|, |Extensible Associative Sequence|, |has_key|, |count|, |order|, |at|, |key_type|, |value_type|
.. |key| replace:: `key <|key-part_link|>`__ .. |key| replace:: `key`_
.. |key-part_link| replace:: `key-part`_ .. _`key`: `key-part`_
.. |value| replace:: `value <|value-part_link|>`__ .. |value| replace:: `value`_
.. |value-part_link| replace:: `value-part`_ .. _`value`: `value-part`_

View File

@@ -1,6 +1,6 @@
.. Macros/Configuration//BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS |10 .. 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 .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -40,4 +40,5 @@ See also
|Macros|, |Configuration| |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`_

View File

@@ -1,8 +1,9 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
.. |Arithmetic Operations| replace:: `Arithmetic Operations`_ .. |Arithmetic Operations| replace:: `Arithmetic Operations`_
.. |arithmetic| replace:: `arithmetic <|Arithmetic Operations|>`__ .. |arithmetic| replace:: arithmetic_
.. _arithmetic: `Arithmetic Operations`_

View File

@@ -1,8 +1,9 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
.. |Bitwise Operations| replace:: `Bitwise Operations`_ .. |Bitwise Operations| replace:: `Bitwise Operations`_
.. |bitwise| replace:: `bitwise <|Bitwise Operations|>`__ .. |bitwise| replace:: `bitwise`_
.. _`bitwise`: `Bitwise Operations`_

View File

@@ -1,8 +1,9 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
.. |Comparisons| replace:: `Comparisons`_ .. |Comparisons| replace:: `Comparisons`_
.. |comparison| replace:: `comparison <|Comparisons|>`__ .. |comparison| replace:: `comparison`_
.. _`comparison`: `Comparisons`_

View File

@@ -1,9 +1,13 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. 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 and Argument Binding| replace:: `Composition and Argument Binding`_
.. |composition| replace:: `composition <|Composition and Argument Binding link|>`__ .. |composition| replace:: `composition`_
.. |argument binding| replace:: `argument binding <|Composition and Argument Binding link|>`__ .. _`composition`: `Composition and Argument Binding`_
.. |argument binding| replace:: `argument binding`_
.. _`argument binding`: `Composition and Argument Binding`_

View File

@@ -1,7 +1,7 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. 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`_

View File

@@ -1,7 +1,7 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
.. |invocation| replace:: `invocation <|Invocation link|>`__ .. |invocation| replace:: `invocation`_

View File

@@ -1,9 +1,11 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. 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`_
.. |logical operations| replace:: `logical operations`_ .. |logical operations| replace:: `logical operations`_

View File

@@ -1,5 +1,5 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -53,4 +53,5 @@ See Also
|Metafunctions|, |Trivial Metafunction| |Metafunctions|, |Trivial Metafunction|
.. |Trivial Metafunctions| replace:: `Trivial Metafunctions <|Trivial link|>`__ .. |Trivial Metafunctions| replace:: `Trivial Metafunctions`_
.. _`Trivial Metafunctions`: `label-Metafunctions-Trivial`_

View File

@@ -1,7 +1,7 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. 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`_

View File

@@ -1,12 +1,14 @@
.. Metafunctions/Composition and Argument Binding//_1,_2,..._n |10 .. 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 .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Placeholders Placeholders
============ ============
.. _`placeholder`:
Synopsis Synopsis
-------- --------
@@ -98,3 +100,20 @@ See also
-------- --------
|Composition and Argument Binding|, |arg|, |lambda|, |bind|, |apply|, |apply_wrap| |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|,\ |...|

View File

@@ -1,5 +1,5 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -29,4 +29,5 @@ The taxonomy of sequence concepts in MPL parallels the taxonomy of the MPL
the common parts of different sequence classes' specifications. 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`_

View File

@@ -1,6 +1,6 @@
.. Metafunctions/Concepts//Tag Dispatched Metafunction |50 .. Metafunctions/Concepts//Tag Dispatched Metafunction |50
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -161,5 +161,8 @@ See also
|Metafunction|, |Metafunction Class|, |Numeric Metafunction| |Metafunction|, |Metafunction Class|, |Numeric Metafunction|
.. |tag-metafunction| replace:: `tag metafunction <|tag-metafunction link|>`__ .. |tag-metafunction| replace:: `tag metafunctions`_
.. |tag dispatched| replace:: `tag dispatched <|Tag Dispatched Metafunction link|>`__ .. _`tag metafunctions`: `tag-metafunction`_
.. |tag dispatched| replace:: `tag dispatched`_
.. _`tag dispatched`: `Tag Dispatched Metafunction`_

View File

@@ -1,11 +1,10 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
.. _`Overloaded name`: .. _`Overloaded name`:
.. |Overloaded name link| replace:: `Overloaded name`_
Overloaded name Overloaded name
Overloaded name is a term used in this reference documentation to designate Overloaded name is a term used in this reference documentation to designate
@@ -14,11 +13,7 @@ Overloaded name
is implemented by other, unspecified, means. is implemented by other, unspecified, means.
.. |overloaded name| replace:: `overloaded name <|Overloaded name link|>`__
.. _`Concept-identical`: .. _`Concept-identical`:
.. |Concept-identical link| replace:: `Concept-identical`_
Concept-identical Concept-identical
A sequence ``s1`` is said to be concept-identical to a sequence ``s2`` if A sequence ``s1`` is said to be concept-identical to a sequence ``s2`` if
@@ -26,7 +21,6 @@ Concept-identical
.. _`Bind expression`: .. _`Bind expression`:
.. |Bind expression link| replace:: `Bind expression`_
Bind expression Bind expression
A bind expression is simply that |--| an instantiation of one of the |bind| A bind expression is simply that |--| an instantiation of one of the |bind|
@@ -43,5 +37,6 @@ Bind expression
_2 _2
.. |bind expression| replace:: `bind expression <|Bind expression link|>`__ .. |overloaded name| replace:: `overloaded name`_
.. |concept-identical| replace:: `concept-identical <|Concept-identical link|>`__ .. |concept-identical| replace:: `concept-identical`_
.. |bind expression| replace:: `bind expression`_

View File

@@ -1,6 +1,6 @@
.. Sequences/Concepts//Variadic Sequence |100 .. Sequences/Concepts//Variadic Sequence |100
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -113,7 +113,11 @@ See also
|Sequences|, |Configuration|, |Integral Sequence Wrapper| |Sequences|, |Configuration|, |Integral Sequence Wrapper|
.. |variadic| replace:: `variadic <|Variadic Sequence link|>`__ .. |variadic| replace:: `variadic`_
.. |variadic forms| replace:: `variadic forms <|Variadic Sequence link|>`__ .. _`variadic`: `Variadic Sequence`_
.. |numbered forms| replace:: `numbered forms <|Variadic Sequence link|>`__
.. |Variadic Sequence link| replace:: `Variadic Sequence`_ .. |variadic forms| replace:: `variadic forms`_
.. _`variadic forms`: `Variadic Sequence`_
.. |numbered forms| replace:: `numbered forms`_
.. _`numbered forms`: `Variadic Sequence`_

View File

@@ -1,6 +1,6 @@
.. Data Types/Numeric//bool_ |10 .. Data Types/Numeric//bool_ |10
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -76,7 +76,7 @@ Example
.. parsed-literal:: .. parsed-literal::
BOOST_MPL_ASSERT(( is_same< bool_<true>::value_type, bool > )); 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(( is_same< bool_<true>::type, bool_<true> > ));
BOOST_MPL_ASSERT_RELATION( bool_<true>::value, ==, true ); BOOST_MPL_ASSERT_RELATION( bool_<true>::value, ==, true );
assert( bool_<true>() == true ); assert( bool_<true>() == true );
@@ -88,5 +88,8 @@ See also
|Data Types|, |Integral Constant|, |int_|, |long_|, |integral_c| |Data Types|, |Integral Constant|, |int_|, |long_|, |integral_c|
.. |true_| replace:: ```true_`` <|bool_ link|>`__ .. |true_| replace:: `true_`_
.. |false_| replace:: ```false_`` <|bool_ link|>`__ .. _`true_`: `bool_`_
.. |false_| replace:: `false_`_
.. _`false_`: `bool_`_

View File

@@ -1,12 +1,12 @@
.. Algorithms/Inserters//inserter .. Algorithms/Inserters//inserter
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|+inserter+| |inserter(title)|
================ =================
.. _`inserter_`: .. _`inserter_`:
@@ -100,5 +100,5 @@ See also
|Algorithms|, |Inserter|, |Reversible Algorithm|, |front_inserter|, |back_inserter| |Algorithms|, |Inserter|, |Reversible Algorithm|, |front_inserter|, |back_inserter|
.. |+inserter+| replace:: inserter .. |inserter(title)| replace:: inserter
.. |inserter| replace:: ':refentry:`inserter` <|inserter_ link|>'__ .. |inserter| replace:: ':refentry:`inserter` <|inserter_|>'__

View File

@@ -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. # Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at # (See accompanying file LICENSE_1_0.txt or copy at
@@ -20,8 +20,7 @@ def __section_header(section):
underline = underlines[len(parts) - 1] * len(parts[-1]) underline = underlines[len(parts) - 1] * len(parts[-1])
if len(parts) > 0: if len(parts) > 0:
hidden_target = '.. _`label-%s`:' % '-'.join( parts ) 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\n' % (parts[-1], underline, hidden_target )
return '\n%s\n%s\n%s\n%s\n\n' % (parts[-1], underline, hidden_target, replacement_link )
else: else:
return '\n%s\n%s\n\n' % (parts[-1], underline ) return '\n%s\n%s\n\n' % (parts[-1], underline )
@@ -40,15 +39,12 @@ def __include_page( output, page, name = None ):
else: ref = '/'.join( page.split('.')[0].split('-') ) else: ref = '/'.join( page.split('.')[0].split('-') )
if ref.upper() == ref or ref.lower() == ref: if ref.upper() == ref or ref.lower() == ref:
output.write( output.write(
( '.. |%(ref)s| replace:: `|%(ref)s refentry| <|%(ref)s link|>`__\n' ( '.. |%(ref)s| replace:: `%(ref)s`_\n' )
+ '.. |%(ref)s refentry| replace:: :refentry:`%(ref)s`\n'
+ '.. |%(ref)s link| replace:: `%(ref)s`_\n'
)
% { 'ref': ref } % { 'ref': ref }
) )
else: else:
if ref.find( '/' ) == -1: 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 } ) output.write( '.. |%(ref)s| replace:: `%(ref)s`_\n' % { 'ref': ref } )
modtime = time.gmtime( os.stat( page ).st_mtime ) modtime = time.gmtime( os.stat( page ).st_mtime )

View File

@@ -1,5 +1,5 @@
.. Copyright Aleksey Gurtovoy, David Abrahams 2007. .. Copyright Aleksey Gurtovoy, David Abrahams 2001-2009.
.. Distributed under the Boost .. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying .. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -7,7 +7,7 @@
The MPL Reference Manual The MPL Reference Manual
************************ ************************
:Copyright: Copyright <20> Aleksey Gurtovoy and David Abrahams, 2001-2007. :Copyright: Copyright <20> Aleksey Gurtovoy and David Abrahams, 2001-2009.
:License: Distributed under the Boost Software License, Version 1.0. (See :License: Distributed under the Boost Software License, Version 1.0. (See
accompanying file ``LICENSE_1_0.txt`` or copy at accompanying file ``LICENSE_1_0.txt`` or copy at
@@ -84,23 +84,6 @@ __ http://www.boost.org/LICENSE_1_0.txt
.. |O(1)| replace:: *O(1)* .. |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 .. |--| unicode:: U+02014 .. EM DASH
@@ -122,13 +105,8 @@ __ http://www.boost.org/LICENSE_1_0.txt
.. |preprocessed headers disclaimer| replace:: [*Note:* Overriding will take effect .. |preprocessed headers disclaimer| replace:: [*Note:* Overriding will take effect
*only* if the library is configured not to use `preprocessed headers *only* if the library is configured not to use |preprocessed headers|. See
<|BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS_link|>`__. See |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS| for more information. |--| *end note*\]
|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`_
.. |transformation algorithm disclaimer| replace:: .. |transformation algorithm disclaimer| replace::
[*Note:* This wording applies to a no-inserter version(s) of the algorithm. See the [*Note:* This wording applies to a no-inserter version(s) of the algorithm. See the

View File

@@ -7,7 +7,6 @@
*/ */
.first .first
{ {
margin-top: 0; margin-top: 0;
@@ -22,27 +21,43 @@
/* <a/> */ /* <a/> */
a a
{ {
color: #0000cc; text-decoration: none; /* no underline */
}
a:hover
{
text-decoration: underline;
}
@media screen
{
a
{
color: #0C7445;
} }
a:visited a:visited
{ {
color: #800080; color: #663974;
}
} }
/*
sup a:link, @media print
sup a:visited,
a.interlink:link,
a.interlink:visited
{ {
color: #505050; a
text-decoration: none; {
color: black;
} }
*/
a:visited
{
color: black;
}
}
a.refentry a.refentry
{ {
@@ -78,7 +93,8 @@ a.header:visited
a.identifier:hover, a.identifier:hover,
a.header:hover a.header:hover
{ {
color: #0000cc; color: #0077cc;
text-decoration: underline;
} }
a.toc-backref:link, a.toc-backref:link,
@@ -117,13 +133,15 @@ caption
body 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; text-align: left;
margin-right: 25pt; line-height: 1.15;
} }
/* <dd/> */ /* <dd/> */
@@ -500,10 +518,19 @@ pre.literal-block
padding-right: 1em; padding-right: 1em;
margin-top: 10pt; margin-top: 10pt;
margin-left: 0pt; margin-left: 0pt;
/* background-color: #f7f7f7;*/
background-color: #f5f5f5;
} }
@media screen
{
pre.literal-block
{
background-color: #fafffb;
}
}
td td
pre.literal-block pre.literal-block
{ {
@@ -530,6 +557,15 @@ table
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
@media screen
{
table.table th
{
background-color:#fafffb;
}
}
table.docinfo table.docinfo
{ {
border: solid 0; border: solid 0;
@@ -549,12 +585,29 @@ table.citation
border-left: solid thin gray; border-left: solid thin gray;
} }
@media screen
{
table.citation
{
background-color:#fafffb;
}
}
table.footnote table.footnote
{ {
border: solid 0; border: solid 0;
border-left: solid thin black; border-left: solid thin black;
} }
@media screen
{
table.footnote
{
background-color:#fafffb;
}
}
table.header, table.header,
table.footer table.footer
{ {
@@ -567,7 +620,7 @@ table.footer
table.table table.table
{ {
border: solid 1px black; border: solid 1px #c7c7c7;
border-collapse: collapse; border-collapse: collapse;
margin-bottom: 10pt; margin-bottom: 10pt;
} }
@@ -581,7 +634,6 @@ td,
table.table table.table
th th
{ {
border: solid 1px black;
vertical-align: top; vertical-align: top;
} }
@@ -592,6 +644,16 @@ th
padding-right: 5pt; padding-right: 5pt;
} }
@media screen
{
table.table th
{
background-color:#fafffb;
}
}
table.table table.table
td td
{ {
@@ -650,10 +712,15 @@ tr.footer
/* <tt/> */ /* <tt/> */
@media screen
{
tt.literal tt.literal
{ {
background-color: #f5f5f5;
background-color: #fafffb;
} }
}
h1 h1
tt, tt,