|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67234 - sandbox/configurator/libs/configurator/doc
From: for.dshevchenko_at_[hidden]
Date: 2010-12-15 04:14:42
Author: dshevchenko
Date: 2010-12-15 04:14:35 EST (Wed, 15 Dec 2010)
New Revision: 67234
URL: http://svn.boost.org/trac/boost/changeset/67234
Log:
Doc cleaning
Text files modified:
sandbox/configurator/libs/configurator/doc/config_file_customizing.html | 24 ++++++
sandbox/configurator/libs/configurator/doc/index.html | 134 +++++++++++++++++++--------------------
sandbox/configurator/libs/configurator/doc/own.css | 21 +++++
3 files changed, 108 insertions(+), 71 deletions(-)
Modified: sandbox/configurator/libs/configurator/doc/config_file_customizing.html
==============================================================================
--- sandbox/configurator/libs/configurator/doc/config_file_customizing.html (original)
+++ sandbox/configurator/libs/configurator/doc/config_file_customizing.html 2010-12-15 04:14:35 EST (Wed, 15 Dec 2010)
@@ -135,7 +135,29 @@
Port = 80
[[-Server]]
</pre>
-
+Changes may be more significant:
+<pre class="cpp">
+int main( int argc, char* argv[] ) {
+ try {
+ boost::cf::configurator conf;
+ conf.settings().set_open_section_edging( "", "{" );
+ conf.settings().set_close_section_edging( "}", "" );
+ // ...
+ } catch ( const std::exception& exc ) {
+ std::cerr << exc.what() << std::endl;
+ }
+
+ return 0;
+}
+</pre>
+In this case we can write:
+<pre class="config">
+Server {
+ Host = 127.0.0.1
+ Port = 80
+} Server
+</pre>
+
<br/><br/>
<hr/>
Last revised
Modified: sandbox/configurator/libs/configurator/doc/index.html
==============================================================================
--- sandbox/configurator/libs/configurator/doc/index.html (original)
+++ sandbox/configurator/libs/configurator/doc/index.html 2010-12-15 04:14:35 EST (Wed, 15 Dec 2010)
@@ -32,75 +32,73 @@
<br/>
<div class="table_of_contents">
- <h2>Table of contents</h2>
- <ul>
- <li><dt>Introduction</dt>
- <li><dt>Overview</dt>
- <ul>
- <li><dt>Motivation</dt></li>
- <li><dt>Hello, world!</dt></li>
- <li><dt>Features</dt></li>
- </ul>
-
- <li><dt>Requirements</dt>
- <ul>
- <li><dt>Necessary Boost libraries</dt></li>
- <li><dt>Compiling programs with Boost.Configurator</dt></li>
- </ul>
-
- <li><dt>Configuration file format</dt>
- <ul>
- <li><dt>Option</dt></li>
- <li><dt>Section</dt></li>
- <li><dt>Comments</dt></li>
- </ul>
-
- <li><dt>Common usage</dt>
- <ul>
- <li><dt>Defining concepts</dt></li>
- <li><dt>Options adding</dt></li>
- <li><dt>Loading</dt></li>
- <li><dt>Values obtaining</dt></li>
- <li><dt>Concepts vs location</dt></li>
- </ul>
-
- <li><dt>Advanced usage</dt>
- <ul>
- <li><dt>Option's default value</dt></li>
- <li><dt>Option's necessity</dt></li>
- <li><dt>Semantic of option's value</dt></li>
- <li><dt>Multi values for option</dt></li>
- <li><dt>Case sensitivity for names</dt></li>
- <li><dt>Non-string values obtating</dt></li>
- </ul>
-
- <li><dt>Configuration file customizing</dt>
- <ul>
- <li><dt>Name-value separator for options</dt></li>
- <li><dt>Comments</dt></li>
- <li><dt>Section names edging</dt></li>
- </ul>
-
- <li><dt>Reference</dt>
- <ul>
- <li><dt>Header <boost/configurator/configurator.hpp></dt></li>
- <li><dt>Header <boost/configurator/option.hpp></dt></li>
- </ul>
-
- <li><dt>Examples</dt>
- <ul>
- <li><dt>Hello, world!</dt></li>
- <li><dt>Medium</dt></li>
- <li><dt>Advanced</dt></li>
- </ul>
-
- <li><dt>Appendix</dt>
- <ul>
- <li><dt>Error messages</dt></li>
- </ul>
+ <h3>Table of contents</h3>
+ <div class="table_of_contents_main">Introduction</div>
+ <div class="table_of_contents_main">Overview</div>
+ <div class="table_of_contents_first">
+ Motivation<br/>
+ Hello, world!<br/>
+ Features
+ </div>
+
+ <div class="table_of_contents_main">Requirements</div>
+ <div class="table_of_contents_first">
+ Necessary Boost libraries<br/>
+ Compiling programs with Boost.Configurator<br/>
+ </div>
+
+ <div class="table_of_contents_main">Configuration file format</div>
+ <div class="table_of_contents_first">
+ Option<br/>
+ Section<br/>
+ Comments<br/>
+ </div>
+
+ <div class="table_of_contents_main">Common usage</div>
+ <div class="table_of_contents_first">
+ Defining concepts<br/>
+ Options adding<br/>
+ Loading<br/>
+ Values obtaining<br/>
+ Concepts vs location<br/>
+ </div>
+
+ <div class="table_of_contents_main">Advanced usage</div>
+ <div class="table_of_contents_first">
+ Option's default value<br/>
+ Option's necessity<br/>
+ Semantic of option's value<br/>
+ Multi values for option<br/>
+ Case sensitivity for names<br/>
+ Non-string values obtating<br/>
+ </div>
+
+ <div class="table_of_contents_main">Configuration file customizing</div>
+ <div class="table_of_contents_first">
+ Name-value separator for options<br/>
+ Comments<br/>
+ Section names edging<br/>
+ </div>
+
+ <div class="table_of_contents_main">Reference</div>
+ <div class="table_of_contents_first">
+ Header <boost/configurator/configurator.hpp><br/>
+ Header <boost/configurator/option.hpp><br/>
+ </div>
+
+ <div class="table_of_contents_main">Examples</div>
+ <div class="table_of_contents_first">
+ Hello, world!<br/>
+ Medium<br/>
+ Advanced<br/>
+ </div>
+
+ <div class="table_of_contents_main">Appendix</div>
+ <div class="table_of_contents_first">
+ Error messages<br/>
+ </div>
- <li><dt>Acknowledgments</dt>
- </ul>
+ <div class="table_of_contents_main">Acknowledgments</div>
</div>
<h2><a name="introduction">Introduction</a></h2>
Modified: sandbox/configurator/libs/configurator/doc/own.css
==============================================================================
--- sandbox/configurator/libs/configurator/doc/own.css (original)
+++ sandbox/configurator/libs/configurator/doc/own.css 2010-12-15 04:14:35 EST (Wed, 15 Dec 2010)
@@ -5,9 +5,26 @@
div.table_of_contents {
border: 1px solid gray;
- padding: 0px 10px;
+ padding: 0px 0px 15px 10px;
margin-left: 50px;
margin-right: 50px;
+ font-family: Arial;
+}
+
+div.table_of_contents a {
+ text-decoration: none;
+}
+
+div.table_of_contents a:hover {
+ text-decoration: underline;
+}
+
+div.table_of_contents_main {
+ padding-left: 20px;
+}
+
+div.table_of_contents_first {
+ padding-left: 60px;
}
pre.cpp {
@@ -17,7 +34,7 @@
margin-left: 30px;
margin-right: 30px;
font-family: Courier, monospace;
- font-size: 120%;
+ font-size: 100%;
}
pre.config {
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