summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Edmunds <medmunds@gmail.com>2025-02-01 17:27:38 -0800
committerNatalia <124304+nessita@users.noreply.github.com>2025-02-01 22:29:22 -0300
commit76b4fb74ce8219db0444e896218e39f3abbf3f0c (patch)
tree35aa5e67b329aeeb549de23e7f5cbc5a6c486c96
parent173edebf7f3ab3a8a999128ade8f4d8814ee565f (diff)
[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.
-rw-r--r--docs/Makefile2
1 files changed, 1 insertions, 1 deletions
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"