Jelajahi Sumber

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.
Mike Edmunds 1 bulan lalu
induk
melakukan
248d8457cb
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      docs/Makefile

+ 1 - 1
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"