yq/scripts/generate-man-page-md.sh

17 lines
339 B
Bash
Raw Normal View History

2021-10-20 04:01:08 +00:00
#! /bin/bash
set -e
# note that this reqires pandoc to be installed.
cat ./pkg/yqlib/doc/operators/headers/Main.md > man.md
2021-10-20 04:01:08 +00:00
printf "\n# HOW IT WORKS\n" >> man.md
2021-11-03 02:54:09 +00:00
tail -n +2 how-it-works.md >> man.md
2021-10-20 04:01:08 +00:00
2022-01-22 00:56:21 +00:00
for f in ./pkg/yqlib/doc/operators/*.md; do
cat "$f" >> man.md
done
for f in ./pkg/yqlib/doc/usage/*.md; do
2021-11-03 04:00:58 +00:00
cat "$f" >> man.md
2021-10-20 04:01:08 +00:00
done