From 1e7414d662715f2ec7b871d252239e823bf8a375 Mon Sep 17 00:00:00 2001 From: Pavol Loffay Date: Tue, 25 Jul 2023 15:18:31 +0200 Subject: [PATCH] Publish API docs only as a md file (#521) * Publish API docs only as a md file Signed-off-by: Pavol Loffay * Fix Signed-off-by: Pavol Loffay --------- Signed-off-by: Pavol Loffay --- Makefile | 4 --- config/docs/templates/pkg.tpl | 12 ------- docs/operator/api.md | 62 ++-------------------------------- docs/operator/feature-gates.md | 15 +------- 4 files changed, 3 insertions(+), 90 deletions(-) diff --git a/Makefile b/Makefile index 5abc40433..378f0bd56 100644 --- a/Makefile +++ b/Makefile @@ -450,10 +450,6 @@ api-docs: docs/operator/api.md docs/operator/feature-gates.md TYPES_TARGET := $(shell find apis/tempo -type f -iname "*_types.go") docs/operator/api.md: $(TYPES_TARGET) gen-crd-api-reference-docs $(GEN_CRD) -api-dir "github.com/grafana/tempo-operator/apis/tempo/" -config "$(PWD)/config/docs/config.json" -template-dir "$(PWD)/config/docs/templates" -out-file "$(PWD)/$@" - sed -i 's/+docs:/ docs:/' $@ - sed -i 's/+parent:/ parent:/' $@ - sed -i 's/##/\n##/' $@ - sed -i 's/+newline/\n/' $@ FEATURE_GATES_TARGET := $(shell find apis/config -type f -iname "*_types.go") diff --git a/config/docs/templates/pkg.tpl b/config/docs/templates/pkg.tpl index e933b3711..108eb311d 100644 --- a/config/docs/templates/pkg.tpl +++ b/config/docs/templates/pkg.tpl @@ -1,16 +1,4 @@ {{ define "packages" }} ---- -title: "API" -description: "Generated API docs for the Tempo Operator" -lead: "" -draft: false -images: [] -menu: -+docs: -+parent: "operator" -weight: 1000 -toc: true ---- This Document contains the types introduced by the Tempo Operator to be consumed by users. diff --git a/docs/operator/api.md b/docs/operator/api.md index fa3763670..a2a86c5e1 100644 --- a/docs/operator/api.md +++ b/docs/operator/api.md @@ -1,17 +1,4 @@ - ---- -title: "API" -description: "Generated API docs for the Tempo Operator" -lead: "" -draft: false -images: [] -menu: - docs: - parent: "operator" -weight: 1000 -toc: true ---- - + This Document contains the types introduced by the Tempo Operator to be consumed by users. > This page is automatically generated with `gen-crd-api-reference-docs`. @@ -26,7 +13,6 @@ This Document contains the types introduced by the Tempo Operator to be consumed Resource Types: - ## AuthenticationSpec { #tempo-grafana-com-v1alpha1-AuthenticationSpec }

@@ -130,7 +116,6 @@ OIDCSpec - ## AuthorizationSpec { #tempo-grafana-com-v1alpha1-AuthorizationSpec }

@@ -219,7 +204,6 @@ configuration per tenant for tempo Gateway component.

- ## ComponentStatus { #tempo-grafana-com-v1alpha1-ComponentStatus }

@@ -415,7 +399,6 @@ PodStatusMap - ## ConditionReason { #tempo-grafana-com-v1alpha1-ConditionReason } (string alias) @@ -488,7 +471,6 @@ PodStatusMap - ## ConditionStatus { #tempo-grafana-com-v1alpha1-ConditionStatus } (string alias) @@ -536,7 +518,6 @@ PodStatusMap - ## Defaulter { #tempo-grafana-com-v1alpha1-Defaulter }

@@ -587,7 +568,6 @@ Feature Gates.ProjectConfig - ## IngestionLimitSpec { #tempo-grafana-com-v1alpha1-IngestionLimitSpec }

@@ -713,7 +693,6 @@ int - ## IngressSpec { #tempo-grafana-com-v1alpha1-IngressSpec }

@@ -873,7 +852,6 @@ RouteSpec - ## IngressType { #tempo-grafana-com-v1alpha1-IngressType } (string alias) @@ -922,7 +900,6 @@ RouteSpec - ## JaegerQuerySpec { #tempo-grafana-com-v1alpha1-JaegerQuerySpec }

@@ -1006,7 +983,6 @@ IngressSpec - ## LimitSpec { #tempo-grafana-com-v1alpha1-LimitSpec }

@@ -1094,7 +1070,6 @@ RateLimitSpec - ## ManagementStateType { #tempo-grafana-com-v1alpha1-ManagementStateType } (string alias) @@ -1140,7 +1115,6 @@ reconciled by the operator.

- ## MetricsConfigSpec { #tempo-grafana-com-v1alpha1-MetricsConfigSpec }

@@ -1220,7 +1194,6 @@ bool - ## ModeType { #tempo-grafana-com-v1alpha1-ModeType } (string alias) @@ -1266,7 +1239,6 @@ using an in-process OpenPolicyAgent Rego authorizer.

- ## OIDCSpec { #tempo-grafana-com-v1alpha1-OIDCSpec }

@@ -1419,7 +1391,6 @@ string - ## ObjectStorageSecretSpec { #tempo-grafana-com-v1alpha1-ObjectStorageSecretSpec }

@@ -1499,7 +1470,6 @@ string - ## ObjectStorageSecretType { #tempo-grafana-com-v1alpha1-ObjectStorageSecretType } (string alias) @@ -1548,7 +1518,6 @@ string - ## ObjectStorageSpec { #tempo-grafana-com-v1alpha1-ObjectStorageSpec }

@@ -1636,7 +1605,6 @@ Name of a secret in the same namespace as the tempo TempoStack custom resource.< - ## ObjectStorageTLSSpec { #tempo-grafana-com-v1alpha1-ObjectStorageTLSSpec }

@@ -1694,7 +1662,6 @@ It needs to be in the same namespace as the Tempo custom resource.

- ## ObservabilitySpec { #tempo-grafana-com-v1alpha1-ObservabilitySpec }

@@ -1782,7 +1749,6 @@ TracingConfigSpec - ## PermissionType { #tempo-grafana-com-v1alpha1-PermissionType } (string alias) @@ -1826,7 +1792,6 @@ TracingConfigSpec - ## PodStatusMap { #tempo-grafana-com-v1alpha1-PodStatusMap } (map[k8s.io/api/core/v1.PodPhase][]string alias) @@ -1843,7 +1808,6 @@ TracingConfigSpec

- ## QueryLimit { #tempo-grafana-com-v1alpha1-QueryLimit }

@@ -1953,7 +1917,6 @@ If this value is not set, then spec.search.maxDuration is used.

- ## RateLimitSpec { #tempo-grafana-com-v1alpha1-RateLimitSpec }

@@ -2041,7 +2004,6 @@ QueryLimit - ## Resources { #tempo-grafana-com-v1alpha1-Resources }

@@ -2105,7 +2067,6 @@ See http://github.com/graf - ## RetentionConfig { #tempo-grafana-com-v1alpha1-RetentionConfig }

@@ -2168,7 +2129,6 @@ default: value is 48h.

- ## RetentionSpec { #tempo-grafana-com-v1alpha1-RetentionSpec }

@@ -2256,7 +2216,6 @@ RetentionConfig - ## RoleBindingsSpec { #tempo-grafana-com-v1alpha1-RoleBindingsSpec }

@@ -2351,7 +2310,6 @@ string - ## RoleSpec { #tempo-grafana-com-v1alpha1-RoleSpec }

@@ -2465,7 +2423,6 @@ string - ## RouteSpec { #tempo-grafana-com-v1alpha1-RouteSpec }

@@ -2526,7 +2483,6 @@ TLSRouteTerminationType - ## SearchSpec { #tempo-grafana-com-v1alpha1-SearchSpec }

@@ -2635,7 +2591,6 @@ The default value of 0 disables this limit.

- ## Subject { #tempo-grafana-com-v1alpha1-Subject }

@@ -2711,7 +2666,6 @@ SubjectKind - ## SubjectKind { #tempo-grafana-com-v1alpha1-SubjectKind } (string alias) @@ -2755,7 +2709,6 @@ SubjectKind - ## TLSRouteTerminationType { #tempo-grafana-com-v1alpha1-TLSRouteTerminationType } (string alias) @@ -2812,7 +2765,6 @@ and re-encrypt using a new certificate.

- ## TempoComponentSpec { #tempo-grafana-com-v1alpha1-TempoComponentSpec }

@@ -2919,7 +2871,6 @@ map[string]string - ## TempoGatewaySpec { #tempo-grafana-com-v1alpha1-TempoGatewaySpec }

@@ -3029,7 +2980,6 @@ IngressSpec - ## TempoQueryFrontendSpec { #tempo-grafana-com-v1alpha1-TempoQueryFrontendSpec }

@@ -3120,7 +3070,6 @@ JaegerQuerySpec - ## TempoStack { #tempo-grafana-com-v1alpha1-TempoStack }

@@ -3221,7 +3170,6 @@ TempoStackSpec - ## TempoStackSpec { #tempo-grafana-com-v1alpha1-TempoStackSpec }

@@ -3618,7 +3566,6 @@ ObservabilitySpec - ## TempoStackStatus { #tempo-grafana-com-v1alpha1-TempoStackStatus }

@@ -3776,7 +3723,6 @@ per component.

- ## TempoTemplateSpec { #tempo-grafana-com-v1alpha1-TempoTemplateSpec }

@@ -3973,7 +3919,6 @@ TempoGatewaySpec - ## TenantSecretSpec { #tempo-grafana-com-v1alpha1-TenantSecretSpec }

@@ -4031,7 +3976,6 @@ string - ## TenantsSpec { #tempo-grafana-com-v1alpha1-TenantsSpec }

@@ -4145,7 +4089,6 @@ AuthorizationSpec - ## TracingConfigSpec { #tempo-grafana-com-v1alpha1-TracingConfigSpec }

@@ -4227,6 +4170,5 @@ string


- - ++newline diff --git a/docs/operator/feature-gates.md b/docs/operator/feature-gates.md index b3b171304..96afb11b6 100644 --- a/docs/operator/feature-gates.md +++ b/docs/operator/feature-gates.md @@ -1,17 +1,4 @@ - ---- -title: "Feature Gates" -description: "Generated API docs for the Tempo Operator" -lead: "" -draft: false -images: [] -menu: - docs: - parent: "operator" -weight: 1000 -toc: true ---- - + This Document contains the types introduced by the Tempo Operator to be consumed by users. > This page is automatically generated with `gen-crd-api-reference-docs`.