Skip to content

Commit

Permalink
MacOS and Linux compatible command
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Oct 14, 2024
1 parent 986f777 commit 5dd69cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ generate:
go run sigs.k8s.io/controller-tools/cmd/controller-gen object crd:maxDescLen=0 paths="./pkg/apis/planetscale/v2" output:crd:artifacts:config=./deploy/crds
go run github.com/ahmetb/gen-crd-api-reference-docs -api-dir planetscale.dev/vitess-operator/pkg/apis/planetscale/v2 -config ./docs/api/config.json -template-dir ./docs/api/template -out-file ./docs/api/index.html
@echo 'Copying ./docs/api/index.html to ./docs/api.md'
@cp ./docs/api/index.html ./docs/api.md && sed -i "" -e "1,2d" ./docs/api.md
@cp ./docs/api/index.html ./docs/api.md && ex -sc '1,2d|x' ./docs/api.md
@echo 'Written to ./docs/api.md'

generate-and-diff: generate
Expand Down

0 comments on commit 5dd69cb

Please sign in to comment.