cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
check:
- $(PYTHON) tools/rstlint.py -i tools -i venv
+ $(PYTHON) tools/rstlint.py -i tools -i venv -i README.rst
serve:
../Tools/scripts/serve.py build/html
~~~~~~~~~~~~~~~~~~~~~~~~~~~
This directory contains the reStructuredText (reST) sources to the Python
-documentation. You don't need to build them yourself, prebuilt versions are
-available at <https://docs.python.org/dev/download.html>.
+documentation. You don't need to build them yourself, `prebuilt versions are
+available <https://docs.python.org/dev/download.html>`_.
Documentation on authoring Python documentation, including information about
-both style and markup, is available in the "Documenting Python" chapter of the
-developers guide <https://docs.python.org/devguide/documenting.html>.
+both style and markup, is available in the "`Documenting Python
+<https://docs.python.org/devguide/documenting.html>`_" chapter of the
+developers guide.
Building the docs
=================
-You need to have Sphinx <http://sphinx-doc.org/> installed; it is the toolset
+You need to have `Sphinx <http://sphinx-doc.org/>`_ installed; it is the toolset
used to build the docs. It is not included in this tree, but maintained
-separately and available from PyPI <https://pypi.python.org/pypi/Sphinx>.
+separately and `available from PyPI <https://pypi.python.org/pypi/Sphinx>`_.
Using make
Contributing
============
-Bugs in the content should be reported to the Python bug tracker at
-https://bugs.python.org.
+Bugs in the content should be reported to the
+`Python bug tracker <https://bugs.python.org>`_.
-Bugs in the toolset should be reported in the Sphinx bug tracker at
-https://www.bitbucket.org/birkenfeld/sphinx/issues/.
+Bugs in the toolset should be reported in the
+`Sphinx bug tracker <https://github.com/sphinx-doc/sphinx/issues>`_.
You can also send a mail to the Python Documentation Team at docs@python.org,
and we will process your request as soon as possible.
needs_sphinx = '1.2'
# Ignore any .rst files in the venv/ directory.
-exclude_patterns = ['venv/*']
+exclude_patterns = ['venv/*', 'README.rst']
# Options for HTML output
echo. clean, check, serve, htmlview\r
echo.\r
echo.All arguments past the first one are passed through to sphinx-build as\r
-echo.filenames to build or are ignored. See README.txt in this directory or\r
+echo.filenames to build or are ignored. See README.rst in this directory or\r
echo.the documentation for your version of Sphinx for more exhaustive lists\r
echo.of available targets and descriptions of each.\r
echo.\r
See the end of this file for further copyright and license information.
+General Information
+-------------------
+
+- Website: https://www.python.org
+- Source code: https://github.com/python/cpython
+- Issue tracker: https://bugs.python.org
+- Documentation: https://docs.python.org
+- Developer's Guide: https://docs.python.org/devguide/
+
+Contributing to CPython
+-----------------------
+
+For more complete instructions on contributing to CPython development,
+see the `Developer Guide`_.
+
+.. _Developer Guide: https://docs.python.org/devguide/
Using Python
------------
Build Instructions
------------------
-On Unix, Linux, BSD, OSX, and Cygwin::
+On Unix, Linux, BSD, macOS, and Cygwin::
./configure
make
This will install Python as python3.
You can pass many options to the configure script; run ``./configure --help``
-to find out more. On OSX and Cygwin, the executable is called ``python.exe``;
+to find out more. On macOS and Cygwin, the executable is called ``python.exe``;
elsewhere it's just ``python``.
-On Mac OS X, if you have configured Python with ``--enable-framework``, you
+On macOS, if you have configured Python with ``--enable-framework``, you
should use ``make frameworkinstall`` to do the installation. Note that this
installs the Python executable in a place that is not normally on your PATH,
you may want to set up a symlink in ``/usr/local/bin``.
is primarily for documentation authors, translators, and people with special
formatting requirements.
-If you would like to contribute to the development of Python, relevant
-documentation is available in the `Python Developer's Guide
-<https://docs.python.org/devguide/>`_.
-
-For information about building Python's documentation, refer to `Doc/README.txt
-<https://github.com/python/cpython/blob/3.6/Doc/README.txt>`_.
+For information about building Python's documentation, refer to `Doc/README.rst
+<https://github.com/python/cpython/blob/3.6/Doc/README.rst>`_.
Converting From Python 2.x to 3.x