github.com/windmeup/goreleaser@v1.21.95/scripts/cmd_docs.sh (about) 1 #!/bin/sh 2 set -e 3 4 SED="sed" 5 if which gsed >/dev/null 2>&1; then 6 SED="gsed" 7 fi 8 9 rm -rf www/docs/cmd/*.md 10 go run . docs 11 go run . schema -o ./www/docs/static/schema.json 12 "$SED" \ 13 -i'' \ 14 -e 's/SEE ALSO/See also/g' \ 15 -e 's/^## /# /g' \ 16 -e 's/^### /## /g' \ 17 -e 's/^#### /### /g' \ 18 -e 's/^##### /#### /g' \ 19 ./www/docs/cmd/*.md