8000 Rename Doc/README.txt to Doc/README.rst and add formatting (#104) · python/cpython@b3f1f59 · GitHub
[go: up one dir, main page]

Skip to content

Commit b3f1f59

Browse files
Rogervstinner
Roger
authored andcommitted
Rename Doc/README.txt to Doc/README.rst and add formatting (#104)
* Reformat Doc/README.txt to Doc/README.rst * Update mention of Doc/README.rst * Update mention of README.txt to README.rst * Make line fold * rstlint ignore Doc/README.rst * conf.py ignore Doc/README.rst * Update issue tracker url in Docs/README.rst
1 parent 91b0e7d commit b3f1f59

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

Doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ dist:
153153
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
154154

155155
check:
156-
$(PYTHON) tools/rstlint.py -i tools -i venv
156+
$(PYTHON) tools/rstlint.py -i tools -i venv -i README.rst
157157

158158
serve:
159159
../Tools/scripts/serve.py build/html

Doc/README.txt renamed to Doc/README.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ Python Documentation README
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

44
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 <https://docs.python.org/dev/download.html>.
5+
documentation. You don't need to build them yourself, `prebuilt versions are
6+
available <https://docs.python.org/dev/download.html>`_.
77

88
Documentation on authoring Python documentation, including information about
9-
both style and markup, is available in the "Documenting Python" chapter of the
10-
developers guide <https://docs.python.org/devguide/documenting.html>.
9+
both style and markup, is available in the "`Documenting Python
10+
<https://docs.python.org/devguide/documenting.html>`_" chapter of the
11+
developers guide.
1112

1213

1314
Building the docs
1415
=================
1516

16-
You need to have Sphinx <http://sphinx-doc.org/> installed; it is the toolset
17+
You need to have `Sphinx <http://sphinx-doc.org/>`_ installed; it is the toolset
1718
used to build the docs. It is not included in this tree, but maintained
18-
separately and available from PyPI <https://pypi.python.org/pypi/Sphinx>.
19+
separately and `available from PyPI <https://pypi.python.org/pypi/Sphinx>`_.
1920

2021

2122
Using make
@@ -108,11 +109,11 @@ see the make targets above).
108109
Contributing
109110
============
110111

111-
Bugs in the content should be reported to the Python bug tracker at
112-
https://bugs.python.org.
112+
Bugs in the content should be reported to the
113+
`Python bug tracker <https://bugs.python.org>`_.
113114

114-
Bugs in the toolset should be reported in the Sphinx bug tracker at
115-
https://www.bitbucket.org/birkenfeld/sphinx/issues/.
115+
Bugs in the toolset should be reported in the
116+
`Sphinx bug tracker <https://github.com/sphinx-doc/sphinx/issues>`_.
116117

117118
You can also send a mail to the Python Documentation Team at docs@python.org,
118119
and we will process your request as soon as possible.

Doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
needs_sphinx = '1.2'
3838

3939
# Ignore any .rst files in the venv/ directory.
40-
exclude_patterns = ['venv/*']
40+
exclude_patterns = ['venv/*', 'README.rst']
4141

4242

4343
# Options for HTML output

Doc/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ echo. Provided by this script:
7474
echo. clean, check, serve, htmlview
7575
echo.
7676
echo.All arguments past the first one are passed through to sphinx-build as
77-
echo.filenames to build or are ignored. See README.txt in this directory or
77+
echo.filenames to build or are ignored. See README.rst in this directory or
7878
8000 echo.the documentation for your version of Sphinx for more exhaustive lists
7979
echo.of available targets and descriptions of each.
8080
echo.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ If you would like to contribute to the development of Python, relevant
130130
documentation is available in the `Python Developer's Guide
131131
<https://docs.python.org/devguide/>`_.
132132

133-
For information about building Python's documentation, refer to `Doc/README.txt
134-
<https://github.com/python/cpython/blob/master/Doc/README.txt>`_.
133+
For information about building Python's documentation, refer to `Doc/README.rst
134+
<https://github.com/python/cpython/blob/master/Doc/README.rst>`_.
135135

136136

137137
Converting From Python 2.x to 3.x

0 commit comments

Comments
 (0)
0