Skip to content

docs: Fix broken xrefs in single-sourced content#1645

Merged
JakeSCahill merged 5 commits intomainfrom
fix-single-sourced-broken-links
Mar 31, 2026
Merged

docs: Fix broken xrefs in single-sourced content#1645
JakeSCahill merged 5 commits intomainfrom
fix-single-sourced-broken-links

Conversation

@JakeSCahill
Copy link
Copy Markdown
Contributor

Summary

Fixes broken cross-references that appear when single-sourced content is built for cloud-docs:

  • k-group-controller.adoc: Fixed deployment xref path and conditionalized OIDC reference
  • audit-log-samples.adoc: Conditionalized gbac.adoc xref for cloud builds
  • acl.adoc: Removed cloud-specific gbac.adoc xref
  • property-overrides.json: Updated to use self-managed-only: prefix for tiered-storage.adoc xrefs
  • cluster-properties.adoc: Applied conditionals to tiered-storage.adoc references

Test plan

  • Verify docs build succeeds
  • Verify cloud-docs build succeeds without broken link errors
  • Verify xrefs appear correctly in self-managed docs
  • Verify xrefs are properly hidden in cloud docs

Fix broken cross-references that appear when building cloud-docs:
- Conditionalize tiered-storage.adoc xrefs using self-managed-only prefix
- Fix k-production-deployment.adoc path in k-group-controller.adoc
- Conditionalize gbac.adoc xrefs for cloud builds
- Update property-overrides.json to preserve changes in autogenerated docs
@JakeSCahill JakeSCahill requested a review from a team as a code owner March 31, 2026 16:37
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 7e471a8
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/69cbfd802cab21000899e4f0
😎 Deploy Preview https://deploy-preview-1645--redpanda-docs-preview.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
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 31, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d7ab3554-84bb-4251-8d5c-3568efc7ad58

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This pull request updates documentation across five files to introduce environment-based conditionals and refactor cross-reference paths. The changes add conditional rendering directives (ifdef::env-cloud[] and ifndef::env-cloud[]) to gate documentation references based on deployment type (cloud vs. self-managed). Property descriptions for retention-related configuration are updated with "Tiered Storage enabled" phrasing, related topic links are conditionally shown only for non-cloud builds, and xref paths are corrected to reference the appropriate documentation modules for both Kubernetes operator and core security/authorization topics.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • paulohtb6
  • Feediver1
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: fixing broken cross-references in single-sourced content for cloud documentation builds.
Description check ✅ Passed The description provides a clear summary and test plan, but is missing a Jira ticket reference and review deadline as specified in the template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-single-sourced-broken-links

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
modules/manage/pages/audit-logging/audit-log-samples.adoc (1)

301-301: Prefer auto-titled xref for consistency.

Use xref:{gbac-doc}[] instead of hard-coded link text to keep link titles single-sourced from the target page.

Based on learnings: “AsciiDoc linking: prefer using xref links with empty brackets … avoid hard-coding link text.”

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@modules/manage/pages/audit-logging/audit-log-samples.adoc` at line 301,
Replace the hard-coded link text "xref:{gbac-doc}[Group-Based Access Control]"
with the auto-titled xref "xref:{gbac-doc}[]" in the audit-log-samples.adoc
content so the link title is sourced from the target page; locate the occurrence
of xref:{gbac-doc}[Group-Based Access Control] and change it to
xref:{gbac-doc}[] to ensure consistent, single-sourced link titles.
modules/manage/pages/kubernetes/security/authorization/k-group-controller.adoc (1)

43-45: Use empty-bracket xrefs in prerequisites links.

For consistency with repository linking style, prefer xref:...[] over hard-coded link labels in these updated references.

Based on learnings: “AsciiDoc linking: prefer using xref links with empty brackets … avoid hard-coding link text.”

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@modules/manage/pages/kubernetes/security/authorization/k-group-controller.adoc`
around lines 43 - 45, Update the two xref links in the prerequisites so they use
empty-bracket xrefs instead of hard-coded link labels: replace
xref:deploy:redpanda/kubernetes/k-production-deployment.adoc[Redpanda Operator]
with xref:deploy:redpanda/kubernetes/k-production-deployment.adoc[] and replace
xref:manage:security/authorization/gbac.adoc[OIDC authentication] with
xref:manage:security/authorization/gbac.adoc[]; ensure you update the
occurrences in the k-group-controller.adoc prerequisites block where these two
xref targets appear.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs-data/property-overrides.json`:
- Line 1102: Update the property description string that currently ends with
"joining the partition replica is set" to read "joining the partition replica
set"; locate the JSON entry containing the description key (the string starting
"Initial local retention time target for partitions of topics with Tiered
Storage enabled...") and replace the final phrase to correct the grammar so the
sentence reads "...all locally-retained data will be delivered to learner when
joining the partition replica set."

---

Nitpick comments:
In `@modules/manage/pages/audit-logging/audit-log-samples.adoc`:
- Line 301: Replace the hard-coded link text "xref:{gbac-doc}[Group-Based Access
Control]" with the auto-titled xref "xref:{gbac-doc}[]" in the
audit-log-samples.adoc content so the link title is sourced from the target
page; locate the occurrence of xref:{gbac-doc}[Group-Based Access Control] and
change it to xref:{gbac-doc}[] to ensure consistent, single-sourced link titles.

In
`@modules/manage/pages/kubernetes/security/authorization/k-group-controller.adoc`:
- Around line 43-45: Update the two xref links in the prerequisites so they use
empty-bracket xrefs instead of hard-coded link labels: replace
xref:deploy:redpanda/kubernetes/k-production-deployment.adoc[Redpanda Operator]
with xref:deploy:redpanda/kubernetes/k-production-deployment.adoc[] and replace
xref:manage:security/authorization/gbac.adoc[OIDC authentication] with
xref:manage:security/authorization/gbac.adoc[]; ensure you update the
occurrences in the k-group-controller.adoc prerequisites block where these two
xref targets appear.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fbf7bdbb-2a2b-49ae-a039-6ddeaa8916a4

📥 Commits

Reviewing files that changed from the base of the PR and between db9ff19 and ad672e2.

📒 Files selected for processing (5)
  • docs-data/property-overrides.json
  • modules/manage/pages/audit-logging/audit-log-samples.adoc
  • modules/manage/pages/kubernetes/security/authorization/k-group-controller.adoc
  • modules/manage/pages/security/authorization/acl.adoc
  • modules/reference/partials/properties/cluster-properties.adoc
💤 Files with no reviewable changes (1)
  • modules/manage/pages/security/authorization/acl.adoc

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.

Do we single source this page for Cloud too? Curious about needing the conditionals here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ha, good catch! Thanks.

JakeSCahill and others added 3 commits March 31, 2026 17:58
Add self-managed-only prefix to cloud-topics.adoc xrefs in:
- cloud_topics_enabled property
- default_redpanda_storage_mode property
Use attribute-based xrefs to point to correct gbac.adoc location:
- Self-managed: manage:security/authorization/gbac.adoc
- Cloud: security:authorization/gbac.adoc
@JakeSCahill JakeSCahill merged commit c4f9842 into main Mar 31, 2026
7 checks passed
@JakeSCahill JakeSCahill deleted the fix-single-sourced-broken-links branch March 31, 2026 17:21
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