Skip to content

Commit 76b4fb7

Browse files
medmundsnessita
authored andcommitted
[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 248d845 from main.
1 parent 173edeb commit 76b4fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ spelling:
169169

170170
black:
171171
@mkdir -p $(BUILDDIR)/black
172-
find -name "*.txt" -not -path "./_build/*" -not -path "./_theme/*" \
172+
find . -name "*.txt" -not -path "./_build/*" -not -path "./_theme/*" \
173173
| xargs blacken-docs --rst-literal-block; echo $$? > "$(BUILDDIR)/black/output.txt"
174174
@echo
175175
@echo "Code blocks reformatted"

0 commit comments

Comments
 (0)