Skip to content

Commit f16fbf9

Browse files
committed
Move Doc/tools/sphinxext content to Doc/tools, there is no need for the nested subdirectory anymore.
1 parent bb67528 commit f16fbf9

22 files changed

+8
-117
lines changed

Doc/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PYTHON = python
88
SPHINXBUILD = sphinx-build
99
PAPER =
1010
SOURCES =
11-
DISTVERSION = $(shell $(PYTHON) tools/sphinxext/patchlevel.py)
11+
DISTVERSION = $(shell $(PYTHON) tools/patchlevel.py)
1212

1313
ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees -D latex_paper_size=$(PAPER) \
1414
$(SPHINXOPTS) . build/$(BUILDER) $(SOURCES)
@@ -79,7 +79,7 @@ suspicious:
7979
@$(MAKE) build BUILDER=$(BUILDER) || { \
8080
echo "Suspicious check complete; look for any errors in the above output" \
8181
"or in build/$(BUILDER)/suspicious.csv. If all issues are false" \
82-
"positives, append that file to tools/sphinxext/susp-ignored.csv."; \
82+
"positives, append that file to tools/susp-ignored.csv."; \
8383
false; }
8484

8585
coverage: BUILDER = coverage

Doc/README.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ Available make targets are:
7979

8080
* "pydoc-topics", which builds a Python module containing a dictionary with
8181
plain text documentation for the labels defined in
82-
`tools/sphinxext/pyspecific.py` -- pydoc needs these to show topic and
83-
keyword help.
82+
`tools/pyspecific.py` -- pydoc needs these to show topic and keyword help.
8483

8584
* "suspicious", which checks the parsed markup for text that looks like
8685
malformed and thus unconverted reST.

Doc/conf.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
# that aren't pickleable (module imports are okay, they're removed automatically).
99

1010
import sys, os, time
11-
sys.path.append(os.path.abspath('tools/sphinxext'))
11+
sys.path.append(os.path.abspath('tools'))
1212

1313
# General configuration
1414
# ---------------------
1515

1616
extensions = ['sphinx.ext.coverage', 'sphinx.ext.doctest',
1717
'pyspecific', 'c_annotations']
18-
templates_path = ['tools/sphinxext']
18+
templates_path = ['tools']
1919

2020
# General substitutions.
2121
project = 'Python'
@@ -89,7 +89,7 @@
8989
html_use_opensearch = 'http://docs.python.org/'
9090

9191
# Additional static files.
92-
html_static_path = ['tools/sphinxext/static']
92+
html_static_path = ['tools/static']
9393

9494
# Output file base name for HTML help builder.
9595
htmlhelp_basename = 'python' + release.replace('.', '')

Doc/make.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if DEFINED ProgramFiles(x86) set _PRGMFLS=%ProgramFiles(x86)%
1212
if NOT DEFINED ProgramFiles(x86) set _PRGMFLS=%ProgramFiles%
1313
if "%HTMLHELP%" EQU "" set HTMLHELP=%_PRGMFLS%\HTML Help Workshop\hhc.exe
1414

15-
if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v
15+
if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/patchlevel.py`) do set DISTVERSION=%%v
1616

1717
if "%BUILDDIR%" EQU "" set BUILDDIR=build
1818

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Doc/tools/roman.py

-80
This file was deleted.

Doc/tools/sphinx-build.py

-28
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Lib/pydoc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ class Helper:
15991599
# in pydoc_data/topics.py.
16001600
#
16011601
# CAUTION: if you change one of these dictionaries, be sure to adapt the
1602-
# list of needed labels in Doc/tools/sphinxext/pyspecific.py and
1602+
# list of needed labels in Doc/tools/pyspecific.py and
16031603
# regenerate the pydoc_data/topics.py file by running
16041604
# make pydoc-topics
16051605
# in Doc/ and copying the output file into the Lib/ directory.

0 commit comments

Comments
 (0)