Skip to content

Commit

Permalink
Add docs/pipeline-api.md.backup to .gitignore
Browse files Browse the repository at this point in the history
It'd be nice to get rid of this file entirely, but it's a result of 8381d0d 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 <[email protected]>
  • Loading branch information
abayer authored and tekton-robot committed Sep 2, 2022
1 parent 2704d7f commit 933e816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion hack/update-reference-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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---\ntitle: Pipeline API\nlinkTitle: Pipeline API\nweight: 1000\n---\n-->\n\n/' ./docs/pipeline-api.md
sed -i".backup" '1s/^/<!--\n---\ntitle: Pipeline API\nlinkTitle: Pipeline API\nweight: 1000\n---\n-->\n\n/' ./docs/pipeline-api.md && rm docs/pipeline-api.md.backup

0 comments on commit 933e816

Please sign in to comment.