summaryrefslogtreecommitdiff
path: root/docs
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:28:35 -0300
commite939cffa504837d90cf2958306f57649ee6a8323 (patch)
tree7206e65c49bfc5b637f481b56750f1b01fb8d8b8 /docs
parent2146bd1261905f74df615ebfa1ac56dd735baee8 (diff)
[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.
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile2
1 files changed, 1 insertions, 1 deletions
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"