diff --git a/Makefile b/Makefile index 36c6be63..4c990981 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,9 @@ integration-test: 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 && ex -sc '1,2d|x' ./docs/api.md + @echo 'Written to ./docs/api.md' generate-and-diff: generate git add --all diff --git a/docs/api.md b/docs/api.md index 8ce4875e..4c7486c3 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1,6 +1,22 @@ -

Vitess Operator API Reference

+ + + + +Vitess Operator API Reference + + + +
+

planetscale.com/v2

-This page describes all the available fields of CRD APIs implemented by the operator. +

Package v2 contains API Schema definitions for the planetscale.com/v2 API group.

Resource Types

+ + + + + diff --git a/docs/api/index.html b/docs/api/index.html index 1ffe05bf..e6052847 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -4,11 +4,11 @@ -PlanetScale API Reference +Vitess Operator API Reference