@@ -3,36 +3,34 @@ Python Documentation README
33
44This directory contains the reStructuredText (reST) sources to the Python
55documentation. You don't need to build them yourself, prebuilt versions are
6- available at http://docs.python.org/download/.
6+ available at < http://docs.python.org/download/> .
77
88Documentation on the authoring Python documentation, including information about
99both style and markup, is available in the "Documenting Python" chapter of the
10- developers guide (http://docs.python.org/devguide/documenting.html).
11- There's also a chapter intended to point out differences to
12- those familiar with the previous docs written in LaTeX.
10+ developers guide <http://docs.python.org/devguide/documenting.html>.
1311
1412
1513Building the docs
1614=================
1715
18- You need to have Python 2.4 or higher installed; the toolset used to build the
19- docs is written in Python. It is called *Sphinx*, it is not included in this
20- tree, but maintained separately. Also needed are the docutils, supplying the
21- base markup that Sphinx uses, Jinja, a templating engine, and optionally
22- Pygments, a code highlighter.
16+ You need to have Sphinx <http://sphinx-doc.org/> installed; it is the toolset
17+ used to build the docs. It is not included in this tree, but maintained
18+ separately and available from PyPI <http://pypi.python.org/pypi/Sphinx>.
2319
2420
2521Using make
2622----------
2723
28- Luckily, a Makefile has been prepared so that on Unix, provided you have
29- installed Python and Subversion , you can just run ::
24+ A Makefile has been prepared so that on Unix, provided you have installed
25+ Sphinx , you can just run ::
3026
3127 make html
3228
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".
29+ to build the HTML output files. To view the generated HTML, point your favorite
30+ browser at the top-level index `build/html/index.html` after running "make".
31+
32+ On Windows, we try to emulate the Makefile as closely as possible with a
33+ ``make.bat`` file.
3634
3735To use a Python interpreter that's not called ``python``, use the standard
3836way to set Makefile variables, using e.g. ::
@@ -74,43 +72,21 @@ Available make targets are:
7472 `tools/sphinxext/pyspecific.py` -- pydoc needs these to show topic and
7573 keyword help.
7674
77- A "make update" updates the Subversion checkouts in `tools/`.
75+ * "suspicious", which checks the parsed markup for text that looks like
76+ malformed and thus unconverted reST.
7877
7978
8079Without make
8180------------
8281
83- You'll need to install the Sphinx package, either by checking it out via ::
84-
85- svn co http://svn.python.org/projects/external/Sphinx-1.0.7/sphinx tools/sphinx
86-
87- or by installing it from PyPI.
88-
89- Then, you need to install Docutils, either by checking it out via ::
90-
91- svn co http://svn.python.org/projects/external/docutils-0.6/docutils tools/docutils
92-
93- or by installing it from http://docutils.sf.net/.
94-
95- You also need Jinja2, either by checking it out via ::
96-
97- svn co http://svn.python.org/projects/external/Jinja-2.3.1/jinja2 tools/jinja2
98-
99- or by installing it from PyPI.
100-
101- You can optionally also install Pygments, either as a checkout via ::
102-
103- svn co http://svn.python.org/projects/external/Pygments-1.3.1/pygments tools/pygments
104-
105- or from PyPI at http://pypi.python.org/pypi/Pygments.
106-
82+ Install the Sphinx package and its dependencies from PyPI.
10783
108- Then, make an output directory, e.g. under `build/`, and run ::
84+ Then, from the ``Docs`` directory, run ::
10985
110- python tools/ sphinx-build.py -b<builder> . build/<outputdirectory >
86+ sphinx-build -b<builder> . build/<builder >
11187
112- where `<builder>` is one of html, text, latex, or htmlhelp (for explanations see
113- the make targets above).
88+ where `` <builder>`` is one of html, text, latex, or htmlhelp (for explanations
89+ see the make targets above).
11490
11591
11692Contributing
0 commit comments