1
0
mirror of https://github.com/docker/cli.git synced 2025-08-31 23:02:07 +03:00
Files
cli/scripts/docs/generate-man.sh
Daniel Nephin 343d836a95 Run docs and man generation in CI
Also cleanup the scripts a bit to be more consistent, and fail on errors.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-06-14 14:59:48 -07:00

15 lines
365 B
Bash
Executable File

#!/usr/bin/env bash
# Generate man pages for docker/cli
set -eu -o pipefail
mkdir -p ./man/man1
go install ./vendor/github.com/cpuguy83/go-md2man
# Generate man pages from cobra commands
go build -o /tmp/gen-manpages github.com/docker/cli/man
/tmp/gen-manpages --root $(pwd) --target $(pwd)/man/man1
# Generate legacy pages from markdown
./man/md2man-all.sh -q