Skip to content

Commit dc5cf61

Browse files
committed
Doc: Drop now unused make suspicious and rstlint.
They have been replaced by [sphinx-lint](https://github.com/sphinx-contrib/sphinx-lint). closes pythongh-86404.
1 parent b399115 commit dc5cf61

File tree

8 files changed

+5
-1082
lines changed

8 files changed

+5
-1082
lines changed

Doc/Makefile

+1-14
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) -j auto \
2222
$(SPHINXOPTS) $(SPHINXERRORHANDLING) . build/$(BUILDER) $(SOURCES)
2323

2424
.PHONY: help build html htmlhelp latex text texinfo changes linkcheck \
25-
suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
25+
coverage doctest pydoc-topics htmlview clean dist check serve \
2626
autobuild-dev autobuild-stable venv
2727

2828
help:
@@ -42,7 +42,6 @@ help:
4242
@echo " doctest to run doctests in the documentation"
4343
@echo " pydoc-topics to regenerate the pydoc topics file"
4444
@echo " dist to create a \"dist\" directory with archived docs for download"
45-
@echo " suspicious to check for suspicious markup in output text"
4645
@echo " check to run a check for frequent markup errors"
4746

4847
build:
@@ -110,18 +109,6 @@ linkcheck:
110109
"or in build/$(BUILDER)/output.txt"; \
111110
false; }
112111

113-
suspicious: BUILDER = suspicious
114-
suspicious:
115-
@$(MAKE) build BUILDER=$(BUILDER) || { \
116-
echo "Suspicious check complete; look for any errors in the above output" \
117-
"or in build/$(BUILDER)/suspicious.csv. If all issues are false" \
118-
"positives, append that file to tools/susp-ignored.csv."; \
119-
false; }
120-
@echo "⚠ make suspicious is deprecated and will be removed soon."
121-
@echo "⚠ Use:"
122-
@echo "⚠ make check"
123-
@echo "⚠ instead."
124-
125112
coverage: BUILDER = coverage
126113
coverage: build
127114
@echo "Coverage finished; see c.txt and python.txt in build/coverage"

Doc/README.rst

-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ Available make targets are:
9393
plain text documentation for the labels defined in
9494
``tools/pyspecific.py`` -- pydoc needs these to show topic and keyword help.
9595

96-
* "suspicious", which checks the parsed markup for text that looks like
97-
malformed and thus unconverted reST.
98-
9996
* "check", which checks for frequent markup errors.
10097

10198
* "serve", which serves the build/html directory on port 8000.

Doc/make.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ echo.always available include:
109109
echo.
110110
echo. Provided by Sphinx:
111111
echo. html, htmlhelp, latex, text
112-
echo. suspicious, linkcheck, changes, doctest
112+
echo. linkcheck, changes, doctest
113113
echo. Provided by this script:
114114
echo. clean, check, htmlview
115115
echo.

Doc/tools/extensions/pyspecific.py

-5
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
from sphinx.domains.python import PyClassmember as PyMethod
3838
from sphinx.domains.python import PyModulelevel as PyFunction
3939

40-
# Support for checking for suspicious markup
41-
42-
import suspicious
43-
4440

4541
ISSUE_URI = 'https://bugs.python.org/issue?@action=redirect&bpo=%s'
4642
GH_ISSUE_URI = 'https://github.com/python/cpython/issues/%s'
@@ -686,7 +682,6 @@ def setup(app):
686682
app.add_directive('audit-event-table', AuditEventListDirective)
687683
app.add_directive('deprecated-removed', DeprecatedRemoved)
688684
app.add_builder(PydocTopicsBuilder)
689-
app.add_builder(suspicious.CheckSuspiciousMarkupBuilder)
690685
app.add_object_type('opcode', 'opcode', '%s (opcode)', parse_opcode_signature)
691686
app.add_object_type('pdbcommand', 'pdbcmd', '%s (pdb command)', parse_pdb_command)
692687
app.add_object_type('2to3fixer', '2to3fixer', '%s (2to3 fixer)')

Doc/tools/extensions/suspicious.py

-251
This file was deleted.

0 commit comments

Comments
 (0)