Skip to content

Commit 3e9905f

Browse files
authored
Link to CRD docs (#509)
* ~ * updated link on landing page * Added release branch script * added another attribute to antora.yml * Added WIP version of the second release script * Added WIP version of the second release script * WIP * WIP * WIP * merged scripts * fixed review * Cleanup for the link icon; use target=_blank
1 parent f091580 commit 3e9905f

15 files changed

+27
-334
lines changed

antora-playbook.yml

+2
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ asciidoc:
183183
base-repo: https://github.com/stackabletech
184184
plantuml-server-url: http://www.plantuml.com/plantuml
185185
kroki-fetch-diagram: true
186+
# an external icon. Create a link opening in a new tab like this: http://my-url.com[Text {external-link-icon}^]
187+
external-link-icon: "<i class=\"fa-solid fa-arrow-up-right-from-square fa-xs\" style=\"margin-left: 3px; vertical-align: baseline;\"></i>"
186188
extensions:
187189
- asciidoctor-kroki
188190

antora.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ nav:
66
- modules/concepts/nav.adoc
77
- modules/demos/nav.adoc
88
- modules/tutorials/nav.adoc
9-
- modules/reference/nav.adoc
109
- modules/operators/nav.adoc
10+
- modules/reference/nav.adoc
1111
- modules/contributor/nav.adoc
1212
- modules/ROOT/nav2.adoc
1313
# The prerelease setting affects version sorting.
@@ -24,3 +24,6 @@ asciidoc:
2424
# use the attributes below to link to the CRD docs
2525
crd-docs-base-url: "https://crds.stackable.tech"
2626
crd-docs: "{crd-docs-base-url}/{crd-docs-version}"
27+
# this attribute is an annoying little hack to make the versioned
28+
# link accessible to the UI template.
29+
page-crd-docs: "{crd-docs}"

local-antora-playbook.yml

+2
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ asciidoc:
172172
base-repo: https://github.com/stackabletech
173173
plantuml-server-url: http://www.plantuml.com/plantuml
174174
kroki-fetch-diagram: true
175+
# an external icon. Create a link opening in a new tab like this: http://my-url.com[Text {external-link-icon}^]
176+
external-link-icon: "<i class=\"fa-solid fa-arrow-up-right-from-square fa-xs\" style=\"margin-left: 3px; vertical-align: baseline;\"></i>"
175177
extensions:
176178
- asciidoctor-kroki
177179

modules/ROOT/pages/index.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ xref:operators:index.adoc[Operator overview]
118118

119119
Read the CustomResourceDefinition (CRD) reference for all CRDs that are deployed by any Stackable operator.
120120

121-
https://crds.stackable.tech/[CRD Reference]
121+
{crd-docs}[CRD Reference {external-link-icon}^]
122122

123123
++++
124124
</div>

modules/concepts/pages/authentication.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ In a diagram it would look like this:
3434

3535
image::image$authentication-overview.drawio.svg[]
3636

37-
NOTE: For more details, look at the xref:reference:authenticationclass.adoc[AuthenticationClass reference] as well as the xref:tutorials:authentication_with_openldap.adoc[OpenLDAP tutorial].
37+
NOTE: Learn more in the xref:tutorials:authentication_with_openldap.adoc[OpenLDAP tutorial] and get a full overview of all the properties in the {crd-docs}/authentication.stackable.tech/authenticationclass/v1alpha1/#spec-provider-ldap[AuthenticationClass LDAP provider CRD reference].
3838

3939
[#tls]
4040
=== TLS
@@ -78,4 +78,4 @@ include::example$authenticationclass-static-secret.yaml[]
7878
== Further Reading
7979

8080
* xref:tutorials:authentication_with_openldap.adoc[] tutorial
81-
* xref:reference:authenticationclass.adoc[] reference
81+
* {crd-docs}/authentication.stackable.tech/authenticationclass/v1alpha1/[AuthenticationClass CRD reference]

modules/concepts/pages/s3.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,4 @@ credentials:
205205

206206
== What's next
207207

208-
Find details about the options of the S3 resource in the xref:reference:s3.adoc[S3 resources reference].
208+
Read the {crd-docs}/s3.stackable.tech/s3bucket/v1alpha1/[S3Bucket CRD reference] and the {crd-docs}/s3.stackable.tech/s3connection/v1alpha1/[S3Connection CRD reference].

modules/concepts/pages/service-discovery.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:page-aliases: service_discovery.adoc
33

44
// Abstract
5-
Stackable operators provide a _service discovery ConfigMap_ for each product instance that is deployed. This ConfigMap has the same name as the product instance and contains information about how to connect to the instance. The ConfigMap is used by other Operators to connect products together and can also be used by you, the user, to connect external software to Stackable-operated software.
5+
Stackable operators provide a _service discovery ConfigMap_ for each product instance that is deployed. **This ConfigMap has the same name as the product instance** and contains information about how to connect to the instance. The ConfigMap is used by other Operators to connect products together and can also be used by you, the user, to connect external software to Stackable-operated software.
66

77
== Motivation
88

@@ -118,7 +118,7 @@ For Stackable managed services the Stackable Operators will take care of this, b
118118

119119
Consult discovery ConfigMap documentation for specific products:
120120

121-
* xref:druid:discovery.adoc[Apache Druid]
121+
* xref:druid:reference/discovery.adoc[Apache Druid]
122122
* xref:hdfs:discovery.adoc[Apache Hadoop HDFS]
123123
* xref:hive:discovery.adoc[Apache Hive]
124124
* xref:kafka:discovery.adoc[Apache Kafka]

modules/reference/examples/authenticationclass-ldap-full.yaml

-29
This file was deleted.

modules/reference/nav.adoc

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
* xref:index.adoc[]
2-
** xref:authenticationclass.adoc[]
3-
** xref:s3.adoc[]
1+
- {crd-docs}[CRD Reference {external-link-icon}^]

modules/reference/pages/authenticationclass.adoc

-22
This file was deleted.

modules/reference/pages/index.adoc

-3
This file was deleted.

modules/reference/pages/s3.adoc

-99
This file was deleted.

modules/tutorials/pages/authentication_with_openldap.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ The LDAP connection details only need to be written down once, in the Authentica
351351
== Further Reading
352352

353353
- xref:concepts:authentication.adoc[Authentication concepts page]
354-
- xref:reference:authenticationclass.adoc[AuthenticationClass reference]
354+
* {crd-docs}/authentication.stackable.tech/authenticationclass/v1alpha1/[AuthenticationClass CRD reference]
355355
- xref:superset:getting_started/index.adoc[Getting started with the Stackable Operator for Apache Superset]
356356
- xref:trino:getting_started/index.adoc[Getting started with the Stackable Operator for Trino]
357357
// TODO Operator docs for LDAP

0 commit comments

Comments
 (0)