From 933e81683891d10d8a357f5fc79b20666fa9a96f Mon Sep 17 00:00:00 2001 From: Andrew Bayer Date: Thu, 1 Sep 2022 16:56:25 -0400 Subject: [PATCH] Add docs/pipeline-api.md.backup to .gitignore It'd be nice to get rid of this file entirely, but it's a result of https://github.com/tektoncd/pipeline/commit/8381d0d9d83326724ab260dc7ab36632afb1451f and I'm not sure how to tweak `sed` args to not generate a backup file but also work right on Macs... Signed-off-by: Andrew Bayer --- .gitignore | 3 +++ hack/update-reference-docs.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 18adc5c121f..a9e14b9298f 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,6 @@ test/pullrequest/pullrequest-init # Temporary GOPATH used during code gen if user's Tekton checkout is # not already in GOPATH. .gopath + +# Backup of API reference docs generated by sed +docs/pipeline-api.md.backup diff --git a/hack/update-reference-docs.sh b/hack/update-reference-docs.sh index 1e1cb7a2157..5244a82d214 100755 --- a/hack/update-reference-docs.sh +++ b/hack/update-reference-docs.sh @@ -23,4 +23,4 @@ go run github.com/ahmetb/gen-crd-api-reference-docs \ -api-dir "github.com/tektoncd/pipeline/pkg/apis" \ -template-dir "./hack/reference-docs-template" \ -out-file "./docs/pipeline-api.md" -sed -i".backup" '1s/^/\n\n/' ./docs/pipeline-api.md +sed -i".backup" '1s/^/\n\n/' ./docs/pipeline-api.md && rm docs/pipeline-api.md.backup