1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/scripts/cmd_docs.sh

20 lines
328 B
Bash
Raw Normal View History

#!/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
go run . schema -o ./www/docs/static/schema.json
"$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