Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82589 - trunk/tools/quickbook/doc
From: dnljms_at_[hidden]
Date: 2013-01-22 19:06:27


Author: danieljames
Date: 2013-01-22 19:06:27 EST (Tue, 22 Jan 2013)
New Revision: 82589
URL: http://svn.boost.org/trac/boost/changeset/82589

Log:
Quickbook: Describe new 1.6 tags.
Text files modified:
   trunk/tools/quickbook/doc/1_6.qbk | 58 ++++++++++++++++++++++++++++++++++++---
   1 files changed, 53 insertions(+), 5 deletions(-)

Modified: trunk/tools/quickbook/doc/1_6.qbk
==============================================================================
--- trunk/tools/quickbook/doc/1_6.qbk (original)
+++ trunk/tools/quickbook/doc/1_6.qbk 2013-01-22 19:06:27 EST (Tue, 22 Jan 2013)
@@ -235,12 +235,60 @@
 
 [section:elements New Elements]
 
-New elements in 1.6 (to be documented later):
+[section:block `block`]
 
-* `block`
-* `ordered_list`
-* `itemized_list`
-* `role`
+`block` is a block element that just marks its contents as a block,
+so that they aren't wrapped in paragraph tags. The main use is
+for escaped docbook block tags, such as:
+
+ [template chapter[title] [block'''<chapter><title>'''[title]'''</title>''']]
+ [template chapterend [block'''</chapter>''']]
+
+ [chapter An example chapter]
+
+ Content
+
+ [chapterend]
+
+Without the `block` element, the `chapter` and `chapterend` templates
+would be wrapped in paragraph tags.
+
+[endsect]
+
+[section:lists `ordered_list` and `itemized_list`]
+
+These are used as an alternative to the normal wiki-style markup for
+lists. They make it easier to nest lists inside other elements, and
+nest elements inside lists. The markup is similar to a single level
+table:
+
+ [ordered_list [item1][item2]]
+
+is equivalent to:
+
+ # item1
+ # item2
+
+[endsect]
+
+[section: `role`]
+
+`role` is a phrase element used to mark up the text in the eventual html
+with an a class. For example:
+
+ [role red Text content]
+
+Will generate the docbook:
+
+ <phrase role="red">Text content</phrase>
+
+Which will generate html along the lines of:
+
+ <span class="red">Text content</span>
+
+And then you can use css to style this however you wish.
+
+[endsect]
 
 [endsect]
 


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