This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch 2.13.x in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit c74970f7f2b6a70744490675291c51e4626faf21 Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Mon Sep 26 07:59:38 2022 +0100 Fix malformed id headings for AWS extensions --- docs/modules/ROOT/pages/reference/extensions/aws2-ddb.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/aws2-s3.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/aws2-ses.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/aws2-sns.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/aws2-sqs.adoc | 2 +- .../org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java | 4 ++++ .../src/main/resources/doc-templates/extension-doc-page.adoc | 2 +- 7 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/modules/ROOT/pages/reference/extensions/aws2-ddb.adoc b/docs/modules/ROOT/pages/reference/extensions/aws2-ddb.adoc index 91394bbb1c..fa8e0940bd 100644 --- a/docs/modules/ROOT/pages/reference/extensions/aws2-ddb.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/aws2-ddb.adoc @@ -56,7 +56,7 @@ https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. [id="extensions-aws2-ddb-additional-camel-quarkus-configuration"] == Additional Camel Quarkus configuration -[id="extensions-aws2-ddb-optional-integration-with-Quarkus Amazon DynamoDB"] +[id="extensions-aws2-ddb-optional-integration-with-quarkus-amazon-dynamodb"] === Optional integration with Quarkus Amazon DynamoDB If desired, it is possible to use the Quarkus Amazon DynamoDB extension in conjunction with Camel Quarkus AWS 2 DynamoDB. diff --git a/docs/modules/ROOT/pages/reference/extensions/aws2-s3.adoc b/docs/modules/ROOT/pages/reference/extensions/aws2-s3.adoc index 29d9ecdc40..750b27c63f 100644 --- a/docs/modules/ROOT/pages/reference/extensions/aws2-s3.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/aws2-s3.adoc @@ -55,7 +55,7 @@ https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. [id="extensions-aws2-s3-additional-camel-quarkus-configuration"] == Additional Camel Quarkus configuration -[id="extensions-aws2-s3-optional-integration-with-Quarkus Amazon S3"] +[id="extensions-aws2-s3-optional-integration-with-quarkus-amazon-s3"] === Optional integration with Quarkus Amazon S3 If desired, it is possible to use the Quarkus Amazon S3 extension in conjunction with Camel Quarkus AWS 2 S3 Storage Service. diff --git a/docs/modules/ROOT/pages/reference/extensions/aws2-ses.adoc b/docs/modules/ROOT/pages/reference/extensions/aws2-ses.adoc index 2e08b0cdb6..8e9712b8f8 100644 --- a/docs/modules/ROOT/pages/reference/extensions/aws2-ses.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/aws2-ses.adoc @@ -55,7 +55,7 @@ https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. [id="extensions-aws2-ses-additional-camel-quarkus-configuration"] == Additional Camel Quarkus configuration -[id="extensions-aws2-ses-optional-integration-with-Quarkus Amazon SES"] +[id="extensions-aws2-ses-optional-integration-with-quarkus-amazon-ses"] === Optional integration with Quarkus Amazon SES If desired, it is possible to use the Quarkus Amazon SES extension in conjunction with Camel Quarkus AWS 2 Simple Email Service (SES). diff --git a/docs/modules/ROOT/pages/reference/extensions/aws2-sns.adoc b/docs/modules/ROOT/pages/reference/extensions/aws2-sns.adoc index abf700f346..116425d2cc 100644 --- a/docs/modules/ROOT/pages/reference/extensions/aws2-sns.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/aws2-sns.adoc @@ -55,7 +55,7 @@ https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. [id="extensions-aws2-sns-additional-camel-quarkus-configuration"] == Additional Camel Quarkus configuration -[id="extensions-aws2-sns-optional-integration-with-Quarkus Amazon SNS"] +[id="extensions-aws2-sns-optional-integration-with-quarkus-amazon-sns"] === Optional integration with Quarkus Amazon SNS If desired, it is possible to use the Quarkus Amazon SNS extension in conjunction with Camel Quarkus AWS 2 Simple Notification System (SNS). diff --git a/docs/modules/ROOT/pages/reference/extensions/aws2-sqs.adoc b/docs/modules/ROOT/pages/reference/extensions/aws2-sqs.adoc index a02bbae444..9cb6e9bb68 100644 --- a/docs/modules/ROOT/pages/reference/extensions/aws2-sqs.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/aws2-sqs.adoc @@ -55,7 +55,7 @@ https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. [id="extensions-aws2-sqs-additional-camel-quarkus-configuration"] == Additional Camel Quarkus configuration -[id="extensions-aws2-sqs-optional-integration-with-Quarkus Amazon SQS"] +[id="extensions-aws2-sqs-optional-integration-with-quarkus-amazon-sqs"] === Optional integration with Quarkus Amazon SQS If desired, it is possible to use the Quarkus Amazon SQS extension in conjunction with Camel Quarkus AWS 2 Simple Queue Service (SQS). diff --git a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java index e2effb49ad..98905e2d63 100644 --- a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java +++ b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java @@ -478,6 +478,10 @@ public class UpdateExtensionDocPageMojo extends AbstractDocGeneratorMojo { return "Quarkus Amazon " + nameBase; } + public String getExtensionNameIdHeading() { + return getExtensionName().toLowerCase().replace(" ", "-"); + } + public String getConfigurationUrl() { String lowerCaseName = nameBase.toLowerCase(Locale.ROOT); return "https://quarkus.io/guides/amazon-" + lowerCaseName + "#configuring-" + lowerCaseName + "-clients"; diff --git a/tooling/maven-plugin/src/main/resources/doc-templates/extension-doc-page.adoc b/tooling/maven-plugin/src/main/resources/doc-templates/extension-doc-page.adoc index 2949b41d38..d2eb663813 100644 --- a/tooling/maven-plugin/src/main/resources/doc-templates/extension-doc-page.adoc +++ b/tooling/maven-plugin/src/main/resources/doc-templates/extension-doc-page.adoc @@ -108,7 +108,7 @@ You will also need to enable serialization for the exception classes that you in [/#if] [#if quarkusAwsClient??] -[id="extensions-[=artifactIdBase]-optional-integration-with-[=quarkusAwsClient.extensionName]"] +[id="extensions-[=artifactIdBase]-optional-integration-with-[=quarkusAwsClient.extensionNameIdHeading]"] === Optional integration with [=quarkusAwsClient.extensionName] If desired, it is possible to use the [=quarkusAwsClient.extensionName] extension in conjunction with Camel Quarkus [=name].