Skip to content

Commit 58de3d2

Browse files
committed
Updated documentation style, minor fixes to docs based on feedback.
1 parent 17d7551 commit 58de3d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+271
-311
lines changed

libs/network/doc/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_build
3.42 KB
Loading
2.84 KB
Loading

libs/network/doc/_static/cpp-netlib.css

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
html,body
44
{
5-
background-image: url('./orange-background.jpg');
65
background-repeat: no-repeat;
76
background-position: left top;
87
background-attachment: fixed;
9-
background-color: black;
8+
background-color: #f80;
109
}
1110

1211
body
@@ -158,9 +157,9 @@ a.reference em
158157
div.nav
159158
{
160159
margin: 0;
161-
font-size: 12px;
160+
font-size: 14px;
162161
text-align: right;
163-
color: #487858
162+
color: #fff
164163
}
165164

166165
div.nav a: link,div.nav a: visited
@@ -539,7 +538,7 @@ dt .literal,table .literal
539538
{
540539
padding: .8em 1em .8em;
541540
margin: 1em 0;
542-
background-color: #E8FFE8;
541+
background-color: #6ABDFB;
543542
-moz-border-radius: 3px;
544543
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
545544
-webkit-border-radius: 3px;
@@ -560,16 +559,16 @@ dt .literal,table .literal
560559
margin-bottom: 0 !important
561560
}
562561

563-
div.admonition-philosophy
562+
.note
564563
{
565-
padding-left: 65px;
566-
background: url(docicons-philosophy.png) .8em .8em no-repeat
564+
padding-left: 85px;
565+
background: #6ABDFB url(Button-Info-icon.png) .8em .8em no-repeat
567566
}
568567

569-
div.admonition-behind-the-scenes
568+
.warning
570569
{
571-
padding-left: 65px;
572-
background: url(docicons-behindscenes.png) .8em .8em no-repeat
570+
padding-left: 85px;
571+
background: #6ABDFB url(Button-Warning-icon.png) .8em .8em no-repeat
573572
}
574573

575574
/*** versoinadded/changes ***/
@@ -671,7 +670,7 @@ img
671670
}
672671

673672
#index #cpp-netlib-getting-cpp-netlib, #index #cpp-netlib-boost {
674-
background:none repeat scroll 0 0 #E8FFE8;
673+
background:none repeat scroll 0 0 #6ABDFB;
675674
margin: 2em 0 2em 2em;
676675

677676
border-radius:6px 6px;

libs/network/doc/_templates/layout.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@
3737
<h1><a href="{{ pathto('index') }}">{{ docstitle }}</a></h1>
3838
<div id="global-nav">
3939
<a title="Home page" href="{{ pathto('index') }}">Home</a> {{ reldelim2 }}
40-
<a title="Table of contents" href="{{ pathto('contents') }}">Table of contents</a>
40+
<a title="Table of contents" href="{{ pathto('contents') }}">Table of contents</a> |
41+
<a title="What's new" href="{{ pathto('whats_new') }}">What's new</a> |
42+
<a title="Getting started" href="{{ pathto('getting_started') }}">Getting started</a> |
43+
<a title="Examples" href="{{ pathto('examples') }}">Examples</a> |
44+
<a title="In depth" href="{{ pathto('in_depth') }}">In depth</a> |
45+
<a title="Reference" href="{{ pathto('reference') }}">Reference</a>
4146
</div>
4247
<div class="nav">{{ secondnav() }}</div>
4348
</div>
@@ -100,6 +105,5 @@ <h3>You are here:</h3>
100105
{% block footer %}
101106
<div class="footer">
102107
documentation automatically generated by <a href="http://sphinx.pocoo.org">Sphinx</a> | style mostly stolen from <a href="http://lettuce.it">lettuce.it</a>
103-
| background image attributed to <a href="http://www.flickr.com/photos/OrangeSmell">OrangeSmell</a>
104108
</div>
105109
{% endblock %}

libs/network/doc/examples.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,19 @@ common networking protocols. The following set of examples describe a
99
series of realistic examples that use the :mod:`cpp-netlib` for these
1010
kinds of application. All examples are built using CMake.
1111

12-
.. include:: examples_http.rst
12+
HTTP examples
13+
`````````````
14+
15+
The HTTP component of the :mod:`cpp-netlib` contains a client and server.
16+
The examples that follow show how to use both for programs that can be
17+
embedded into larger applications.
18+
19+
.. toctree::
20+
:maxdepth: 1
21+
22+
examples/http/http_client
23+
examples/http/simple_wget
24+
examples/http/hello_world_server
25+
examples/http/hello_world_client
26+
examples/http/atom_reader
27+
examples/http/twitter_search

libs/network/doc/examples_http.rst

Lines changed: 0 additions & 16 deletions
This file was deleted.

libs/network/doc/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ refer to the `Git documentation`_.
3838

3939
.. note:: Previous versions of :mod:`cpp-netlib` referred to the
4040
*mikhailberis* repository as the main development repository. This
41-
account is still valid, but not always up-to-date. In interest of
41+
account is still valid, but not always up-to-date. In the interest of
4242
consistency, the main repository has been changed to *cpp-netlib*.
4343

4444
Windows users need to use msysGit_, and to invoke the command above
-13.1 KB
Binary file not shown.
-13.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)