Browse code

Make docs build without warnings or errors. Minor additional cleanup.

Andy Rothfusz authored on 2013/07/19 11:04:51
Showing 10 changed files
... ...
@@ -2,6 +2,9 @@
2 2
 :description: API Documentation for Docker
3 3
 :keywords: API, Docker, rcli, REST, documentation
4 4
 
5
+.. COMMENT use http://pythonhosted.org/sphinxcontrib-httpdomain/ to
6
+.. document the REST API.
7
+
5 8
 =================
6 9
 Docker Remote API
7 10
 =================
... ...
@@ -13,15 +16,23 @@ Docker Remote API
13 13
 
14 14
 - The Remote API is replacing rcli
15 15
 - Default port in the docker deamon is 4243 
16
-- The API tends to be REST, but for some complex commands, like attach or pull, the HTTP connection is hijacked to transport stdout stdin and stderr
17
-- Since API version 1.2, the auth configuration is now handled client side, so the client has to send the authConfig as POST in /images/(name)/push
16
+- The API tends to be REST, but for some complex commands, like attach
17
+  or pull, the HTTP connection is hijacked to transport stdout stdin
18
+  and stderr
19
+- Since API version 1.2, the auth configuration is now handled client
20
+  side, so the client has to send the authConfig as POST in
21
+  /images/(name)/push
18 22
 
19 23
 2. Versions
20 24
 ===========
21 25
 
22
-The current verson of the API is 1.3
23
-Calling /images/<name>/insert is the same as calling /v1.3/images/<name>/insert
24
-You can still call an old version of the api using /v1.0/images/<name>/insert
26
+The current verson of the API is 1.3 
27
+
28
+Calling /images/<name>/insert is the same as calling
29
+/v1.3/images/<name>/insert 
30
+
31
+You can still call an old version of the api using
32
+/v1.0/images/<name>/insert
25 33
 
26 34
 :doc:`docker_remote_api_v1.3`
27 35
 *****************************
... ...
@@ -29,19 +40,21 @@ You can still call an old version of the api using /v1.0/images/<name>/insert
29 29
 What's new
30 30
 ----------
31 31
 
32
-Listing processes (/top):
33
-
34
-- List the processes inside a container
32
+.. http:get:: /containers/(id)/top
35 33
 
34
+   **New!** List the processes running inside a container.
36 35
 
37 36
 Builder (/build):
38 37
 
39 38
 - Simplify the upload of the build context
40
-- Simply stream a tarball instead of multipart upload with 4 intermediary buffers
39
+- Simply stream a tarball instead of multipart upload with 4
40
+  intermediary buffers
41 41
 - Simpler, less memory usage, less disk usage and faster
42 42
 
43
-.. Note::
44
-The /build improvements are not reverse-compatible. Pre 1.3 clients will break on /build.
43
+.. Warning::
44
+
45
+  The /build improvements are not reverse-compatible. Pre 1.3 clients
46
+  will break on /build.
45 47
 
46 48
 List containers (/containers/json):
47 49
 
... ...
@@ -49,7 +62,8 @@ List containers (/containers/json):
49 49
 
50 50
 Start containers (/containers/<id>/start):
51 51
 
52
-- You can now pass host-specific configuration (e.g. bind mounts) in the POST body for start calls 
52
+- You can now pass host-specific configuration (e.g. bind mounts) in
53
+  the POST body for start calls
53 54
 
54 55
 :doc:`docker_remote_api_v1.2`
55 56
 *****************************
... ...
@@ -60,14 +74,25 @@ What's new
60 60
 ----------
61 61
 
62 62
 The auth configuration is now handled by the client.
63
-The client should send it's authConfig as POST on each call of /images/(name)/push
64 63
 
65
-.. http:get:: /auth is now deprecated
66
-.. http:post:: /auth only checks the configuration but doesn't store it on the server
64
+The client should send it's authConfig as POST on each call of
65
+/images/(name)/push
66
+
67
+.. http:get:: /auth 
68
+
69
+  **Deprecated.**
70
+
71
+.. http:post:: /auth 
72
+
73
+  Only checks the configuration but doesn't store it on the server
74
+
75
+  Deleting an image is now improved, will only untag the image if it
76
+  has chidren and remove all the untagged parents if has any.
67 77
 
68
-Deleting an image is now improved, will only untag the image if it has chidrens and remove all the untagged parents if has any.
78
+.. http:post:: /images/<name>/delete 
69 79
 
70
-.. http:post:: /images/<name>/delete now returns a JSON with the list of images deleted/untagged
80
+  Now returns a JSON structure with the list of images
81
+  deleted/untagged.
71 82
 
72 83
 
73 84
 :doc:`docker_remote_api_v1.1`
... ...
@@ -82,7 +107,7 @@ What's new
82 82
 .. http:post:: /images/(name)/insert
83 83
 .. http:post:: /images/(name)/push
84 84
 
85
-Uses json stream instead of HTML hijack, it looks like this:
85
+   Uses json stream instead of HTML hijack, it looks like this:
86 86
 
87 87
         .. sourcecode:: http
88 88
 
... ...
@@ -1,3 +1,8 @@
1
+.. use orphan to suppress "WARNING: document isn't included in any toctree"
2
+.. per http://sphinx-doc.org/markup/misc.html#file-wide-metadata
3
+
4
+:orphan:
5
+
1 6
 :title: Remote API v1.0
2 7
 :description: API Documentation for Docker
3 8
 :keywords: API, Docker, rcli, REST, documentation
... ...
@@ -300,8 +305,8 @@ Start a container
300 300
 	:statuscode 500: server error
301 301
 
302 302
 
303
-Stop a contaier
304
-***************
303
+Stop a container
304
+****************
305 305
 
306 306
 .. http:post:: /containers/(id)/stop
307 307
 
... ...
@@ -1,3 +1,7 @@
1
+.. use orphan to suppress "WARNING: document isn't included in any toctree"
2
+.. per http://sphinx-doc.org/markup/misc.html#file-wide-metadata
3
+
4
+:orphan:
1 5
 
2 6
 :title: Remote API v1.1
3 7
 :description: API Documentation for Docker
... ...
@@ -1,3 +1,8 @@
1
+.. use orphan to suppress "WARNING: document isn't included in any toctree"
2
+.. per http://sphinx-doc.org/markup/misc.html#file-wide-metadata
3
+
4
+:orphan:
5
+
1 6
 :title: Remote API v1.2
2 7
 :description: API Documentation for Docker
3 8
 :keywords: API, Docker, rcli, REST, documentation
... ...
@@ -1,3 +1,8 @@
1
+.. use orphan to suppress "WARNING: document isn't included in any toctree"
2
+.. per http://sphinx-doc.org/markup/misc.html#file-wide-metadata
3
+
4
+:orphan:
5
+
1 6
 :title: Remote API v1.3
2 7
 :description: API Documentation for Docker
3 8
 :keywords: API, Docker, rcli, REST, documentation
... ...
@@ -452,7 +452,7 @@ User Register
452 452
          "username": "foobar"'}
453 453
 
454 454
     :jsonparameter email: valid email address, that needs to be confirmed
455
-    :jsonparameter username: min 4 character, max 30 characters, must match the regular expression [a-z0-9_].
455
+    :jsonparameter username: min 4 character, max 30 characters, must match the regular expression [a-z0-9\_].
456 456
     :jsonparameter password: min 5 characters
457 457
 
458 458
     **Example Response**:
... ...
@@ -367,7 +367,8 @@ POST /v1/users
367 367
     {"email": "sam@dotcloud.com", "password": "toto42", "username": "foobar"'}
368 368
 
369 369
 **Validation**:
370
-    - **username** : min 4 character, max 30 characters, must match the regular expression [a-z0-9_].
370
+    - **username**: min 4 character, max 30 characters, must match the regular
371
+      expression [a-z0-9\_].
371 372
     - **password**: min 5 characters
372 373
 
373 374
 **Valid**: return HTTP 200
... ...
@@ -566,4 +567,4 @@ Next request::
566 566
 ---------------------
567 567
 
568 568
 - 1.0 : May 6th 2013 : initial release 
569
-- 1.1 : June 1st 2013 : Added Delete Repository and way to handle new source namespace.
570 569
\ No newline at end of file
570
+- 1.1 : June 1st 2013 : Added Delete Repository and way to handle new source namespace.
... ...
@@ -2,8 +2,6 @@
2 2
 :description: An overview of the Docker Documentation
3 3
 :keywords: containers, lxc, concepts, explanation
4 4
 
5
-.. _introduction:
6
-
7 5
 Welcome
8 6
 =======
9 7
 
... ...
@@ -1,6 +1,6 @@
1
-:title: Dockerfile Builder
2
-:description: Docker Builder specifes a simple DSL which allows you to automate the steps you would normally manually take to create an image.
3
-:keywords: builder, docker, Docker Builder, automation, image creation
1
+:title: Dockerfiles for Images
2
+:description: Dockerfiles use a simple DSL which allows you to automate the steps you would normally manually take to create an image.
3
+:keywords: builder, docker, Dockerfile, automation, image creation
4 4
 
5 5
 ==================
6 6
 Dockerfile Builder
... ...
@@ -177,7 +177,7 @@ The copy obeys the following rules:
177 177
   with mode 0700, uid and gid 0.
178 178
 
179 179
 3.8 ENTRYPOINT
180
+--------------
180 181
 
181 182
     ``ENTRYPOINT /bin/echo``
182 183
 
... ...
@@ -119,7 +119,7 @@ your container to an image within your username namespace.
119 119
 
120 120
 
121 121
 Pushing a container to its repository
122
+-------------------------------------
122 123
 
123 124
 In order to push an image to its repository you need to have committed
124 125
 your container to a named image (see above)