Add format_docs command for documentation trailing space formatting

This commit is contained in:
世界
2025-12-26 16:19:26 +08:00
parent bf4a9edc89
commit 8ae16aa452
2 changed files with 120 additions and 0 deletions

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