mirror of
https://github.com/django/django.git
synced 2025-05-21 14:26:29 +00:00
[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.
This commit is contained in:
parent
173edebf7f
commit
76b4fb74ce
@ -169,7 +169,7 @@ spelling:
|
|||||||
|
|
||||||
black:
|
black:
|
||||||
@mkdir -p $(BUILDDIR)/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"
|
| xargs blacken-docs --rst-literal-block; echo $$? > "$(BUILDDIR)/black/output.txt"
|
||||||
@echo
|
@echo
|
||||||
@echo "Code blocks reformatted"
|
@echo "Code blocks reformatted"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user