@@ -5,7 +5,7 @@ This directory contains the reStructuredText (reST) sources to the Python
55documentation. You don't need to build them yourself, prebuilt versions are
66available at <https://docs.python.org/3.4/download.html>.
77
8- Documentation on the authoring Python documentation, including information about
8+ Documentation on authoring Python documentation, including information about
99both style and markup, is available in the "Documenting Python" chapter of the
1010developers guide <http://docs.python.org/devguide/documenting.html>.
1111
@@ -26,27 +26,37 @@ Sphinx, you can just run ::
2626
2727 make html
2828
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".
29+ to build the HTML output files.
3130
3231On Windows, we try to emulate the Makefile as closely as possible with a
3332``make.bat`` file.
3433
3534To use a Python interpreter that's not called ``python``, use the standard
3635way to set Makefile variables, using e.g. ::
3736
38- make html PYTHON=/usr/bin/python2.5
37+ make html PYTHON=python3
38+
39+ On Windows, set the PYTHON environment variable instead.
40+
41+ To use a specific sphinx-build (something other than ``sphinx-build``), set
42+ the SPHINXBUILD variable.
3943
4044Available make targets are:
4145
46+ * "clean", which removes all build files.
47+
4248 * "html", which builds standalone HTML files for offline viewing.
4349
50+ * "htmlview", which re-uses the "html" builder, but then opens the main page
51+ in your default web browser.
52+
4453 * "htmlhelp", which builds HTML files and a HTML Help project file usable to
4554 convert them into a single Compiled HTML (.chm) file -- these are popular
4655 under Microsoft Windows, but very handy on every platform.
4756
48- To create the CHM file, you need to run the Microsoft HTML Help Workshop over
49- the generated project (.hhp) file.
57+ To create the CHM file, you need to run the Microsoft HTML Help Workshop
58+ over the generated project (.hhp) file. The make.bat script does this for
59+ you on Windows.
5060
5161 * "latex", which builds LaTeX source files as input to "pdflatex" to produce
5262 PDF documents.
@@ -75,6 +85,13 @@ Available make targets are:
7585 * "suspicious", which checks the parsed markup for text that looks like
7686 malformed and thus unconverted reST.
7787
88+ * "check", which checks for frequent markup errors.
89+
90+ * "serve", which serves the build/html directory on port 8000.
91+
92+ * "dist", (Unix only) which creates distributable archives of HTML, text,
93+ PDF, and EPUB builds.
94+
7895
7996Without make
8097------------
0 commit comments