1
0
mirror of https://github.com/django/django.git synced 2025-04-01 12:06:43 +00:00

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.
This commit is contained in:
Mike Edmunds 2025-02-01 17:27:38 -08:00 committed by GitHub
parent 4608d34b34
commit 248d8457cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"