From e939cffa504837d90cf2958306f57649ee6a8323 Mon Sep 17 00:00:00 2001 From: Mike Edmunds Date: Sat, 1 Feb 2025 17:27:38 -0800 Subject: [PATCH] [5.2.x] Fixed #36162 -- Fixed the `black` Makefile docs rule to work on macOS. The `make black` target in the docs directory used Linux-specific syntax for its `find` command. Changed to syntax that also works on macOS and other BSD Unix variants. Backport of 248d8457cbec631ef93d76137bc621106347adda from main. --- docs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index 15383bdd38..bbdd2bb4c8 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -170,7 +170,7 @@ spelling: black: @mkdir -p $(BUILDDIR)/black - find -name "*.txt" -not -path "./_build/*" -not -path "./_theme/*" \ + find . -name "*.txt" -not -path "./_build/*" -not -path "./_theme/*" \ | xargs blacken-docs --rst-literal-block; echo $$? > "$(BUILDDIR)/black/output.txt" @echo @echo "Code blocks reformatted"