Skip to content

Commit

Permalink
Move Doc/tools/sphinxext content to Doc/tools, there is no need for t…
Browse files Browse the repository at this point in the history
…he nested subdirectory anymore.
  • Loading branch information
birkenfeld committed Sep 30, 2014
1 parent bb67528 commit f16fbf9
Show file tree
Hide file tree
Showing 22 changed files with 8 additions and 117 deletions.
4 changes: 2 additions & 2 deletions Doc/Makefile
Expand Up @@ -8,7 +8,7 @@ PYTHON = python
SPHINXBUILD = sphinx-build
PAPER =
SOURCES =
DISTVERSION = $(shell $(PYTHON) tools/sphinxext/patchlevel.py)
DISTVERSION = $(shell $(PYTHON) tools/patchlevel.py)

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

coverage: BUILDER = coverage
Expand Down
3 changes: 1 addition & 2 deletions Doc/README.txt
Expand Up @@ -79,8 +79,7 @@ Available make targets are:

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

* "suspicious", which checks the parsed markup for text that looks like
malformed and thus unconverted reST.
Expand Down
6 changes: 3 additions & 3 deletions Doc/conf.py
Expand Up @@ -8,14 +8,14 @@
# that aren't pickleable (module imports are okay, they're removed automatically).

import sys, os, time
sys.path.append(os.path.abspath('tools/sphinxext'))
sys.path.append(os.path.abspath('tools'))

# General configuration
# ---------------------

extensions = ['sphinx.ext.coverage', 'sphinx.ext.doctest',
'pyspecific', 'c_annotations']
templates_path = ['tools/sphinxext']
templates_path = ['tools']

# General substitutions.
project = 'Python'
Expand Down Expand Up @@ -89,7 +89,7 @@
html_use_opensearch = 'http://docs.python.org/'

# Additional static files.
html_static_path = ['tools/sphinxext/static']
html_static_path = ['tools/static']

# Output file base name for HTML help builder.
htmlhelp_basename = 'python' + release.replace('.', '')
Expand Down
2 changes: 1 addition & 1 deletion Doc/make.bat
Expand Up @@ -12,7 +12,7 @@ if DEFINED ProgramFiles(x86) set _PRGMFLS=%ProgramFiles(x86)%
if NOT DEFINED ProgramFiles(x86) set _PRGMFLS=%ProgramFiles%
if "%HTMLHELP%" EQU "" set HTMLHELP=%_PRGMFLS%\HTML Help Workshop\hhc.exe

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

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

Expand Down
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.
80 changes: 0 additions & 80 deletions Doc/tools/roman.py

This file was deleted.

28 changes: 0 additions & 28 deletions Doc/tools/sphinx-build.py

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.
File renamed without changes.
2 changes: 1 addition & 1 deletion Lib/pydoc.py
Expand Up @@ -1599,7 +1599,7 @@ class Helper:
# in pydoc_data/topics.py.
#
# CAUTION: if you change one of these dictionaries, be sure to adapt the
# list of needed labels in Doc/tools/sphinxext/pyspecific.py and
# list of needed labels in Doc/tools/pyspecific.py and
# regenerate the pydoc_data/topics.py file by running
# make pydoc-topics
# in Doc/ and copying the output file into the Lib/ directory.
Expand Down

0 comments on commit f16fbf9

Please sign in to comment.