2021-04-23 14:29:19 +02:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
SED="sed"
|
|
|
|
if which gsed >/dev/null 2>&1; then
|
|
|
|
SED="gsed"
|
|
|
|
fi
|
|
|
|
|
2021-12-15 19:36:38 +01:00
|
|
|
mkdir -p www/docs/cmd
|
2021-06-27 03:01:53 +02:00
|
|
|
rm -rf www/docs/cmd/*.md
|
2021-04-23 14:29:19 +02:00
|
|
|
go run ./cmd/nfpm docs
|
2021-07-07 19:20:34 +02:00
|
|
|
go run ./cmd/nfpm schema -o ./www/docs/static/schema.json
|
2021-07-07 03:48:09 +02:00
|
|
|
|
2021-04-23 14:29:19 +02:00
|
|
|
"$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
|