Remove C++/C99-style comments.
[python.git] / Doc / README.txt
blob75f89a5c2c743b44d78f8b2212e493fa7e688822
1 Python Documentation README
2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 This directory contains the reStructuredText (reST) sources to the Python
5 documentation.  You don't need to build them yourself, prebuilt versions are
6 available at http://docs.python.org/download/.
8 Documentation on the authoring Python documentation, including information about
9 both style and markup, is available in the "Documenting Python" chapter of the
10 documentation.  There's also a chapter intended to point out differences to
11 those familiar with the previous docs written in LaTeX.
14 Building the docs
15 =================
17 You need to install Python 2.4 or higher; the toolset used to build the docs are
18 written in Python.  The toolset used to build the documentation is called
19 *Sphinx*, it is not included in this tree, but maintained separately in the
20 Python Subversion repository.  Also needed are Jinja, a templating engine
21 (included in Sphinx as a Subversion external), and optionally Pygments, a code
22 highlighter.
25 Using make
26 ----------
28 Luckily, a Makefile has been prepared so that on Unix, provided you have
29 installed Python and Subversion, you can just run ::
31    make html
33 to check out the necessary toolset in the `tools/` subdirectory and build the
34 HTML output files.  To view the generated HTML, point your favorite browser at
35 the top-level index `build/html/index.html` after running "make".
37 Available make targets are:
39  * "html", which builds standalone HTML files for offline viewing.
41  * "htmlhelp", which builds HTML files and a HTML Help project file usable to
42    convert them into a single Compiled HTML (.chm) file -- these are popular
43    under Microsoft Windows, but very handy on every platform.
45    To create the CHM file, you need to run the Microsoft HTML Help Workshop
46    over the generated project (.hhp) file.
48  * "latex", which builds LaTeX source files that can be run with "pdflatex"
49    to produce PDF documents.
51  * "text", which builds a plain text file for each source file.
53  * "linkcheck", which checks all external references to see whether they are
54    broken, redirected or malformed, and outputs this information to stdout
55    as well as a plain-text (.txt) file.
57  * "changes", which builds an overview over all versionadded/versionchanged/
58    deprecated items in the current version. This is meant as a help for the
59    writer of the "What's New" document.
61  * "coverage", which builds a coverage overview for standard library modules
62    and C API.
64  * "pydoc-topics", which builds a Python module containing a dictionary
65    with plain text documentation for the labels defined in
66    `tools/sphinxext/pyspecific.py` -- pydoc needs these to show topic
67    and keyword help.
69 A "make update" updates the Subversion checkouts in `tools/`.
72 Without make
73 ------------
75 You'll need to checkout the Sphinx package to the `tools/` directory::
77    svn co http://svn.python.org/projects/external/Sphinx-0.6.1/sphinx tools/sphinx
79 Then, you need to install Docutils, either by checking it out via ::
81    svn co http://svn.python.org/projects/external/docutils-0.5/docutils tools/docutils
83 or by installing it from http://docutils.sf.net/.
85 You also need Jinja2, either by checking it out via ::
87    svn co http://svn.python.org/projects/external/Jinja-2.1.1/jinja2 tools/jinja2
89 or by installing it from PyPI.
91 You can optionally also install Pygments, either as a checkout via :: 
93    svn co http://svn.python.org/projects/external/Pygments-1.1.1/pygments tools/pygments
95 or from PyPI at http://pypi.python.org/pypi/Pygments.
98 Then, make an output directory, e.g. under `build/`, and run ::
100    python tools/sphinx-build.py -b<builder> . build/<outputdirectory>
102 where `<builder>` is one of html, text, latex, or htmlhelp (for explanations see
103 the make targets above).
106 Contributing
107 ============
109 Bugs in the content should be reported to the Python bug tracker at
110 http://bugs.python.org.
112 Bugs in the toolset should be reported in the Sphinx bug tracker at
113 http://www.bitbucket.org/birkenfeld/sphinx/issues/.
115 You can also send a mail to the Python Documentation Team at docs@python.org,
116 and we will process your request as soon as possible.
118 If you want to help the Documentation Team, you are always welcome.  Just send
119 a mail to docs@python.org.
122 Copyright notice
123 ================
125 The Python source is copyrighted, but you can freely use and copy it
126 as long as you don't change or remove the copyright notice:
128 ----------------------------------------------------------------------
129 Copyright (c) 2000-2008 Python Software Foundation.
130 All rights reserved.
132 Copyright (c) 2000 BeOpen.com.
133 All rights reserved.
135 Copyright (c) 1995-2000 Corporation for National Research Initiatives.
136 All rights reserved.
138 Copyright (c) 1991-1995 Stichting Mathematisch Centrum.
139 All rights reserved.
141 See the file "license.rst" for information on usage and redistribution
142 of this file, and for a DISCLAIMER OF ALL WARRANTIES.
143 ----------------------------------------------------------------------