Skip to content

fix(DOC-1919): fully qualify cloud-stub xrefs to resolve in cloud-docs#438

Merged
Feediver1 merged 1 commit into
mainfrom
fix/aurora-cloud-xref-resolution
Jun 4, 2026
Merged

fix(DOC-1919): fully qualify cloud-stub xrefs to resolve in cloud-docs#438
Feediver1 merged 1 commit into
mainfrom
fix/aurora-cloud-xref-resolution

Conversation

@Feediver1

@Feediver1 Feediver1 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Add the connect: component prefix to the two Next steps xrefs in aws-iam-aurora.adoc so they resolve correctly when the page is single-sourced into cloud-docs.

Problem

The Next steps section at the bottom of modules/guides/pages/cloud/aws-iam-aurora.adoc previously used the unqualified form:

* xref:components:inputs/postgres_cdc.adoc[`postgres_cdc` input]
* xref:components:inputs/mysql_cdc.adoc[`mysql_cdc` input]

This resolves fine in rp-connect-docs's own build (component connect) because the components: module is local. But these xrefs are inside the tag::single-source[] range, so cloud-docs (component redpanda-cloud) includes them via:

include::connect:guides:cloud/aws-iam-aurora.adoc[tag=single-source]

When Antora processes the included content, it resolves components: against the consuming component's namespace (redpanda-cloud), not the source component's. redpanda-cloud has no components/inputs/postgres_cdc.adoc page, so the cloud-docs build emits an asciidoctor "missing xref" warning. This was reported as breaking adjacent PRs' build logs because the temp-overrides in those PRs aggregate both repos.

The error first surfaced on cloud-docs main after #612 merged 9a7c3b2c (DOC-1919: add cloud stub for aws-iam-aurora Connect guide).

Fix

Qualify both xrefs with the connect: component prefix:

* xref:connect:components:inputs/postgres_cdc.adoc[`postgres_cdc` input]
* xref:connect:components:inputs/mysql_cdc.adoc[`mysql_cdc` input]

This resolves correctly in both contexts:

  • In rp-connect-docs's own build: connect:components:inputs/... resolves to the local component (the connect: prefix is redundant but harmless).
  • In cloud-docs's build via single-source include: connect:components:inputs/... resolves cross-component to the Connect component's pages.

Preview pages

Test plan

  • Cloud-docs Netlify preview no longer logs the aws-iam-aurora.adoc → missing postgres_cdc.adoc xref warning.
  • rp-connect-docs Netlify preview still renders the Next steps section with working links.

🤖 Generated with Claude Code

… prefix

The Next steps xrefs to postgres_cdc and mysql_cdc input pages used the
unqualified form `xref:components:inputs/...`, which resolves correctly
when the page is rendered inside its own component (connect) but fails
to resolve when the content is single-sourced into cloud-docs via
`include::connect:guides:cloud/aws-iam-aurora.adoc[tag=single-source]`.

Antora resolves the `components:` module qualifier against the consuming
component's namespace (redpanda-cloud), not the source component's, so
the cloud-docs build reports an asciidoctor "missing xref" warning for
postgres_cdc.adoc.

Add the `connect:` component prefix so the xref resolves cross-component
in cloud-docs and continues to resolve locally in rp-connect-docs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Feediver1 Feediver1 requested a review from a team as a code owner June 4, 2026 19:49
@netlify

netlify Bot commented Jun 4, 2026

Copy link
Copy Markdown

Deploy Preview for redpanda-connect ready!

Name Link
🔨 Latest commit 721a708
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-connect/deploys/6a21d6b9d6b4ca0008ffe0cd
😎 Deploy Preview https://deploy-preview-438--redpanda-connect.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This pull request updates the "Next steps" section of the AWS IAM Aurora guide document to correct the cross-reference link paths for the postgres_cdc and mysql_cdc inputs. The xref targets were changed from the components:inputs/... namespace to connect:components:inputs/... to align with the current Antora component pathing structure.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • kbatuigas
  • micheleRP
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: fully qualifying xrefs with the connect: component prefix to fix cloud-docs resolution.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The pull request description clearly explains the problem (unqualified xrefs breaking in cloud-docs single-source includes), the solution (adding connect: prefix), and provides technical context with code examples.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/aurora-cloud-xref-resolution

Comment @coderabbitai help to get the list of available commands and usage tips.

@micheleRP micheleRP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final-pass review

Files reviewed: 1 .adoc file (modules/guides/pages/cloud/aws-iam-aurora.adoc, +2/-2)
Assessment: Correct, minimal, well-explained build fix. No blocking issues.

Verification

  • ✅ Component name is connectconnect: prefix is the right qualifier.
  • ✅ Both xrefs are inside the tag::single-source[] range (tags at lines 2/285, xrefs at 282–283).
  • ✅ Target pages exist: modules/components/pages/inputs/postgres_cdc.adoc and mysql_cdc.adoc.
  • ✅ Root cause confirmed: the consuming component (cloud-data-platform) has no components/inputs/ module, so the unqualified form genuinely breaks on include.
  • ✅ Single-source wiring confirmed in the cloud-docs stub: include::connect:guides:cloud/aws-iam-aurora.adoc[tag=single-source].
  • ✅ Completeness: these two xrefs are the only cross-component references in the entire single-source range — nothing else shares the bug.

Critical issues

None.

Suggestions

None blocking. The fix matches the single-sourcing convention (cross-component refs in single-sourced content must be component-qualified) and the full-resource-ID guidance.

Minor note (PR description only, no doc change)

The PR body refers to the consuming component as redpanda-cloud; the actual component name is now cloud-data-platform. The fix is correct regardless — just a stale name in the prose.

@micheleRP micheleRP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@Feediver1 Feediver1 merged commit a12c693 into main Jun 4, 2026
5 checks passed
@Feediver1 Feediver1 deleted the fix/aurora-cloud-xref-resolution branch June 4, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants