Add format_docs command for documentation trailing space formatting

This commit is contained in:
世界
2025-12-26 16:19:26 +08:00
parent d7cb4103ed
commit 4e973bff99
2 changed files with 120 additions and 0 deletions
+3
View File
@@ -37,6 +37,9 @@ fmt:
@gofmt -s -w .
@gci write --custom-order -s standard -s "prefix(github.com/sagernet/)" -s "default" .
fmt_docs:
go run ./cmd/internal/format_docs
fmt_install:
go install -v mvdan.cc/gofumpt@latest
go install -v github.com/daixiang0/gci@latest