Skip to content

Commit d49f141

Browse files
committed
Merge pull request moby#1303 from dhrp/update-spinx-for-man
Enabled the docs to generate manpages.
2 parents 590fc58 + ad3b091 commit d49f141

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

docs/README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
Docker documentation and website
2-
================================
1+
Docker Documentation
2+
====================
33

44
Documentation
55
-------------
6-
This is your definite place to contribute to the docker documentation. The documentation is generated from the
7-
.rst files under sources.
8-
9-
The folder also contains the other files to create the http://docker.io website, but you can generally ignore
10-
most of those.
6+
This is your definite place to contribute to the docker documentation. After each push to master the documentation
7+
is automatically generated and made available on [docs.docker.io](http://docs.docker.io)
118

9+
Each of the .rst files under sources reflects a page on the documentation.
1210

1311
Installation
1412
------------
@@ -36,15 +34,11 @@ Images
3634
------
3735
When you need to add images, try to make them as small as possible (e.g. as gif).
3836

39-
4037
Notes
4138
-----
42-
* The index.html and gettingstarted.html files are copied from the source dir to the output dir without modification.
43-
So changes to those pages should be made directly in html
4439
* For the template the css is compiled from less. When changes are needed they can be compiled using
4540
lessc ``lessc main.less`` or watched using watch-lessc ``watch-lessc -i main.less -o main.css``
4641

47-
4842
Guides on using sphinx
4943
----------------------
5044
* To make links to certain pages create a link target like so:
@@ -75,3 +69,12 @@ Guides on using sphinx
7569
* Code examples
7670
7771
Start without $, so it's easy to copy and paste.
72+
73+
Manpages
74+
--------
75+
76+
* To make the manpages, simply run 'make man'. Please note there is a bug in spinx 1.1.3 which makes this fail.
77+
Upgrade to the latest version of sphinx.
78+
* Then preview the manpage by running `man _build/man/docker.1`, where _build/man/docker.1 is the path to the generated
79+
manfile
80+
* The manpages are also autogenerated by our hosted readthedocs here: http://docs-docker.dotcloud.com/projects/docker/downloads/

docs/sources/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
# Grouping the document tree into LaTeX files. List of tuples
204204
# (source start file, target name, title, author, documentclass [howto/manual]).
205205
latex_documents = [
206-
('index', 'Docker.tex', u'Docker Documentation',
206+
('toctree', 'Docker.tex', u'Docker Documentation',
207207
u'Team Docker', 'manual'),
208208
]
209209

@@ -233,7 +233,7 @@
233233
# One entry per manual page. List of tuples
234234
# (source start file, name, description, authors, manual section).
235235
man_pages = [
236-
('index', 'docker', u'Docker Documentation',
236+
('toctree', 'docker', u'Docker Documentation',
237237
[u'Team Docker'], 1)
238238
]
239239

@@ -247,7 +247,7 @@
247247
# (source start file, target name, title, author,
248248
# dir menu entry, description, category)
249249
texinfo_documents = [
250-
('index', 'Docker', u'Docker Documentation',
250+
('toctree', 'Docker', u'Docker Documentation',
251251
u'Team Docker', 'Docker', 'One line description of project.',
252252
'Miscellaneous'),
253253
]

docs/sources/use/builder.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ the image. This is functionally equivalent to running ``docker commit
107107
-run '{"Cmd": <command>}'`` outside the builder.
108108

109109
.. note::
110-
Don't confuse `RUN` with `CMD`. `RUN` actually runs a
111-
command and commits the result; `CMD` does not execute anything at
110+
Don't confuse ``RUN`` with ``CMD``. ``RUN`` actually runs a
111+
command and commits the result; ``CMD`` does not execute anything at
112112
build time, but specifies the intended command for the image.
113113

114114
3.5 EXPOSE

0 commit comments

Comments
 (0)