From 76b4fb74ce8219db0444e896218e39f3abbf3f0c Mon Sep 17 00:00:00 2001 From: Mike Edmunds Date: Sat, 1 Feb 2025 17:27:38 -0800 Subject: [PATCH] [5.1.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 d97a7ff07c..5cabbd127a 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -169,7 +169,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"