Skip to content

Commit 3a015c1

Browse files
committed
Handle broken anchors in docs-v3
1 parent 5ff45f6 commit 3a015c1

File tree

3 files changed

+38
-20
lines changed

3 files changed

+38
-20
lines changed

docs/reference/api-docs.md

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ applies_to:
66
deployment:
77
eck: all
88
---
9-
<!-- Generated documentation. Please do not edit. -->
9+
% Generated documentation. Please do not edit.
1010

1111
# {{eck}} API Reference [k8s-api-reference]
1212

@@ -30,7 +30,8 @@ applies_to:
3030
* [stackconfigpolicy.k8s.elastic.co/v1alpha1](#stackconfigpolicyk8selasticcov1alpha1)
3131

3232

33-
## agent.k8s.elastic.co/v1alpha1
33+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
34+
## agent.k8s.elastic.co/v1alpha1 [#agentk8selasticcov1alpha1]
3435

3536
Package v1alpha1 contains API Schema definitions for the agent v1alpha1 API group
3637

@@ -159,7 +160,8 @@ AgentSpec defines the desired state of the Agent
159160

160161

161162

162-
## apm.k8s.elastic.co/v1
163+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
164+
## apm.k8s.elastic.co/v1 [#apmk8selasticcov1]
163165

164166
Package v1 contains API schema definitions for managing APM Server resources.
165167

@@ -207,7 +209,8 @@ ApmServerSpec holds the specification of an APM Server.
207209

208210

209211

210-
## apm.k8s.elastic.co/v1beta1
212+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
213+
## apm.k8s.elastic.co/v1beta1 [#apmk8selasticcov1beta1]
211214

212215
Package v1beta1 contains API schema definitions for managing APM Server resources.
213216

@@ -252,7 +255,8 @@ ApmServerSpec holds the specification of an APM Server.
252255

253256

254257

255-
## autoscaling.k8s.elastic.co/v1alpha1
258+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
259+
## autoscaling.k8s.elastic.co/v1alpha1 [#autoscalingk8selasticcov1alpha1]
256260

257261
Package v1alpha1 contains API schema definitions for managing ElasticsearchAutoscaler resources.
258262

@@ -305,7 +309,8 @@ ElasticsearchRef is a reference to an Elasticsearch cluster that exists in the s
305309

306310

307311

308-
## beat.k8s.elastic.co/v1beta1
312+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
313+
## beat.k8s.elastic.co/v1beta1 [#beatk8selasticcov1beta1]
309314

310315
Package v1beta1 contains API Schema definitions for the beat v1beta1 API group
311316

@@ -386,7 +391,8 @@ BeatSpec defines the desired state of a Beat.
386391

387392

388393

389-
## common.k8s.elastic.co/v1
394+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
395+
## common.k8s.elastic.co/v1 [#commonk8selasticcov1]
390396

391397
Package v1 contains API schema definitions for common types used by all resources.
392398

@@ -708,7 +714,8 @@ TLSOptions holds TLS configuration options.
708714

709715

710716

711-
## common.k8s.elastic.co/v1alpha1
717+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
718+
## common.k8s.elastic.co/v1alpha1 [#commonk8selasticcov1alpha1]
712719

713720
Package v1alpha1 contains API schema definitions for common types used by all resources.
714721

@@ -775,7 +782,8 @@ ConditionType defines the condition of an Elasticsearch resource.
775782

776783

777784

778-
## common.k8s.elastic.co/v1beta1
785+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
786+
## common.k8s.elastic.co/v1beta1 [#commonk8selasticcov1beta1]
779787

780788
Package v1beta1 contains API schema definitions for common types used by all resources.
781789

@@ -951,7 +959,8 @@ TLSOptions holds TLS configuration options.
951959

952960

953961

954-
## elasticsearch.k8s.elastic.co/v1
962+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
963+
## elasticsearch.k8s.elastic.co/v1 [#elasticsearchk8selasticcov1]
955964

956965
Package v1 contains API schema definitions for managing Elasticsearch resources.
957966

@@ -1438,7 +1447,8 @@ Inspired by https://github.com/kubernetes/enhancements/pull/2440
14381447

14391448

14401449

1441-
## elasticsearch.k8s.elastic.co/v1beta1
1450+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
1451+
## elasticsearch.k8s.elastic.co/v1beta1 [#elasticsearchk8selasticcov1beta1]
14421452

14431453
Package v1beta1 contains API schema definitions for managing Elasticsearch resources.
14441454

@@ -1573,7 +1583,8 @@ UpdateStrategy specifies how updates to the cluster should be performed.
15731583

15741584

15751585

1576-
## enterprisesearch.k8s.elastic.co/v1
1586+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
1587+
## enterprisesearch.k8s.elastic.co/v1 [#enterprisesearchk8selasticcov1]
15771588

15781589
Package v1beta1 contains API schema definitions for managing Enterprise Search resources.
15791590

@@ -1620,7 +1631,8 @@ EnterpriseSearchSpec holds the specification of an Enterprise Search resource.
16201631

16211632

16221633

1623-
## enterprisesearch.k8s.elastic.co/v1beta1
1634+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
1635+
## enterprisesearch.k8s.elastic.co/v1beta1 [#enterprisesearchk8selasticcov1beta1]
16241636

16251637
Package v1beta1 contains API schema definitions for managing Enterprise Search resources.
16261638

@@ -1666,7 +1678,8 @@ EnterpriseSearchSpec holds the specification of an Enterprise Search resource.
16661678

16671679

16681680

1669-
## kibana.k8s.elastic.co/v1
1681+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
1682+
## kibana.k8s.elastic.co/v1 [#kibanak8selasticcov1]
16701683

16711684
Package v1 contains API schema definitions for managing Kibana resources.
16721685

@@ -1715,7 +1728,8 @@ KibanaSpec holds the specification of a Kibana instance.
17151728

17161729

17171730

1718-
## kibana.k8s.elastic.co/v1beta1
1731+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
1732+
## kibana.k8s.elastic.co/v1beta1 [#kibanak8selasticcov1beta1]
17191733

17201734
Package v1beta1 contains API schema definitions for managing Kibana resources.
17211735

@@ -1760,7 +1774,8 @@ KibanaSpec holds the specification of a Kibana instance.
17601774

17611775

17621776

1763-
## logstash.k8s.elastic.co/v1alpha1
1777+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
1778+
## logstash.k8s.elastic.co/v1alpha1 [#logstashk8selasticcov1alpha1]
17641779

17651780
Package v1alpha1 contains API Schema definitions for the logstash v1alpha1 API group
17661781

@@ -1875,7 +1890,8 @@ LogstashStatus defines the observed state of Logstash
18751890

18761891

18771892

1878-
## maps.k8s.elastic.co/v1alpha1
1893+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
1894+
## maps.k8s.elastic.co/v1alpha1 [#mapsk8selasticcov1alpha1]
18791895

18801896
Package v1alpha1 contains API schema definitions for managing Elastic Maps Server resources.
18811897

@@ -1940,7 +1956,8 @@ MapsSpec holds the specification of an Elastic Maps Server instance.
19401956

19411957

19421958

1943-
## stackconfigpolicy.k8s.elastic.co/v1alpha1
1959+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
1960+
## stackconfigpolicy.k8s.elastic.co/v1alpha1 [#stackconfigpolicyk8selasticcov1alpha1]
19441961

19451962
Package v1alpha1 contains API schema definitions for managing StackConfigPolicy resources.
19461963

hack/api-docs/templates/gv_details.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{{- define "gvDetails" -}}
22
{{- $gv := . -}}
33

4-
## {{ $gv.GroupVersionString }}
4+
% TODO add function to crd-ref-docs return anchor used in links docs-v3 does not seem to produce valid markdown anchors
5+
## {{ $gv.GroupVersionString }} [#{{ markdownGroupVersionID $gv | replace "-" "" }}]
56

67
{{ $gv.Doc }}
78

hack/api-docs/templates/gv_list.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ applies_to:
88
deployment:
99
eck: all
1010
---
11-
<!-- Generated documentation. Please do not edit. -->
11+
% Generated documentation. Please do not edit.
1212

1313
# {{`{{eck}}`}} API Reference [k8s-api-reference]
1414

0 commit comments

Comments
 (0)