mirror of
https://github.com/python/cpython.git
synced 2025-09-30 04:15:43 +00:00
[3.6] Backport README.rst changes (GH-294)
(cherry picked from commitb3f1f59cf4
) (cherry picked from commit1b3d88eb33
) (cherry picked from commitc0866855d5
) (cherry picked from commite32ec9334b
) (cherry picked from commit6329aea78e
)
This commit is contained in:
parent
bea9d2f648
commit
814213bdf1
5 changed files with 35 additions and 22 deletions
|
@ -153,7 +153,7 @@ dist:
|
||||||
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
|
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
|
||||||
|
|
||||||
check:
|
check:
|
||||||
$(PYTHON) tools/rstlint.py -i tools -i venv
|
$(PYTHON) tools/rstlint.py -i tools -i venv -i README.rst
|
||||||
|
|
||||||
serve:
|
serve:
|
||||||
../Tools/scripts/serve.py build/html
|
../Tools/scripts/serve.py build/html
|
||||||
|
|
|
@ -2,20 +2,21 @@ Python Documentation README
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This directory contains the reStructuredText (reST) sources to the Python
|
This directory contains the reStructuredText (reST) sources to the Python
|
||||||
documentation. You don't need to build them yourself, prebuilt versions are
|
documentation. You don't need to build them yourself, `prebuilt versions are
|
||||||
available at <https://docs.python.org/dev/download.html>.
|
available <https://docs.python.org/dev/download.html>`_.
|
||||||
|
|
||||||
Documentation on authoring Python documentation, including information about
|
Documentation on authoring Python documentation, including information about
|
||||||
both style and markup, is available in the "Documenting Python" chapter of the
|
both style and markup, is available in the "`Documenting Python
|
||||||
developers guide <https://docs.python.org/devguide/documenting.html>.
|
<https://docs.python.org/devguide/documenting.html>`_" chapter of the
|
||||||
|
developers guide.
|
||||||
|
|
||||||
|
|
||||||
Building the docs
|
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
|
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
|
Using make
|
||||||
|
@ -108,11 +109,11 @@ see the make targets above).
|
||||||
Contributing
|
Contributing
|
||||||
============
|
============
|
||||||
|
|
||||||
Bugs in the content should be reported to the Python bug tracker at
|
Bugs in the content should be reported to the
|
||||||
https://bugs.python.org.
|
`Python bug tracker <https://bugs.python.org>`_.
|
||||||
|
|
||||||
Bugs in the toolset should be reported in the Sphinx bug tracker at
|
Bugs in the toolset should be reported in the
|
||||||
https://www.bitbucket.org/birkenfeld/sphinx/issues/.
|
`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,
|
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.
|
and we will process your request as soon as possible.
|
|
@ -37,7 +37,7 @@ highlight_language = 'python3'
|
||||||
needs_sphinx = '1.2'
|
needs_sphinx = '1.2'
|
||||||
|
|
||||||
# Ignore any .rst files in the venv/ directory.
|
# Ignore any .rst files in the venv/ directory.
|
||||||
exclude_patterns = ['venv/*']
|
exclude_patterns = ['venv/*', 'README.rst']
|
||||||
|
|
||||||
|
|
||||||
# Options for HTML output
|
# Options for HTML output
|
||||||
|
|
|
@ -74,7 +74,7 @@ echo. Provided by this script:
|
||||||
echo. clean, check, serve, htmlview
|
echo. clean, check, serve, htmlview
|
||||||
echo.
|
echo.
|
||||||
echo.All arguments past the first one are passed through to sphinx-build as
|
echo.All arguments past the first one are passed through to sphinx-build as
|
||||||
echo.filenames to build or are ignored. See README.txt in this directory or
|
echo.filenames to build or are ignored. See README.rst in this directory or
|
||||||
echo.the documentation for your version of Sphinx for more exhaustive lists
|
echo.the documentation for your version of Sphinx for more exhaustive lists
|
||||||
echo.of available targets and descriptions of each.
|
echo.of available targets and descriptions of each.
|
||||||
echo.
|
echo.
|
||||||
|
|
30
README.rst
30
README.rst
|
@ -15,6 +15,22 @@ reserved.
|
||||||
|
|
||||||
See the end of this file for further copyright and license information.
|
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
|
Using Python
|
||||||
------------
|
------------
|
||||||
|
@ -28,7 +44,7 @@ Installable Python kits, and information about using Python, are available at
|
||||||
Build Instructions
|
Build Instructions
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
On Unix, Linux, BSD, OSX, and Cygwin::
|
On Unix, Linux, BSD, macOS, and Cygwin::
|
||||||
|
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
|
@ -38,10 +54,10 @@ On Unix, Linux, BSD, OSX, and Cygwin::
|
||||||
This will install Python as python3.
|
This will install Python as python3.
|
||||||
|
|
||||||
You can pass many options to the configure script; run ``./configure --help``
|
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``.
|
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
|
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,
|
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``.
|
you may want to set up a symlink in ``/usr/local/bin``.
|
||||||
|
@ -126,12 +142,8 @@ is downloadable in HTML, PDF, and reStructuredText formats; the latter version
|
||||||
is primarily for documentation authors, translators, and people with special
|
is primarily for documentation authors, translators, and people with special
|
||||||
formatting requirements.
|
formatting requirements.
|
||||||
|
|
||||||
If you would like to contribute to the development of Python, relevant
|
For information about building Python's documentation, refer to `Doc/README.rst
|
||||||
documentation is available in the `Python Developer's Guide
|
<https://github.com/python/cpython/blob/3.6/Doc/README.rst>`_.
|
||||||
<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>`_.
|
|
||||||
|
|
||||||
|
|
||||||
Converting From Python 2.x to 3.x
|
Converting From Python 2.x to 3.x
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue