From ef2f16bc4824ca2b10b7f2845baf4d313c9c0da1 Mon Sep 17 00:00:00 2001 From: David Smith Date: Sun, 1 Jun 2025 22:38:04 +0100 Subject: Refs #36485 -- Added sphinx-lint support and make lint rule for docs. This adds a `lint.py` script to run sphinx-lint on Django's docs files, a mathing `lint` target in the `docs/Makefile` and `docs/make.bat`, and updates `docs/requirements.txt` accordingly. --- docs/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/Makefile') diff --git a/docs/Makefile b/docs/Makefile index 9935ad09e5..78cbccd00e 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -51,6 +51,7 @@ help: @echo " doctest to run all doctests embedded in the documentation (if enabled)" @echo " spelling to check for typos in documentation" @echo " black to apply the black formatting to code blocks in documentation" + @echo " lint to check for linting errors in documentation" clean: @@ -175,6 +176,11 @@ black: @echo @echo "Code blocks reformatted" +lint: + $(PYTHON) lint.py + @echo + @echo "Documentation lint complete." + check: spelling black @echo @echo "Style and spelling checks completed." -- cgit v1.3