1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/scripts/cmd_docs.sh
Carlos A Becker cef6f13982
docs: fix cmd/docs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-03 19:27:03 +00:00

19 lines
279 B
Bash
Executable File

#!/bin/sh
set -e
SED="sed"
if which gsed >/dev/null 2>&1; then
SED="gsed"
fi
rm -rf www/docs/cmd/*.md
go run . docs
"$SED" \
-i'' \
-e 's/SEE ALSO/See also/g' \
-e 's/^## /# /g' \
-e 's/^### /## /g' \
-e 's/^#### /### /g' \
-e 's/^##### /#### /g' \
./www/docs/cmd/*.md