1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-26 12:06:09 +02:00
nfpm/scripts/cmd_docs.sh
Carlos A Becker ff6dfb9df4
docs: update
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-15 15:36:38 -03:00

22 lines
369 B
Bash
Executable File

#!/bin/sh
set -e
SED="sed"
if which gsed >/dev/null 2>&1; then
SED="gsed"
fi
mkdir -p www/docs/cmd
rm -rf www/docs/cmd/*.md
go run ./cmd/nfpm docs
go run ./cmd/nfpm 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