Skip to content

Update component xrefs for unified navigation#285

Open
JakeSCahill wants to merge 10 commits into
mainfrom
feature/page-header-data
Open

Update component xrefs for unified navigation#285
JakeSCahill wants to merge 10 commits into
mainfrom
feature/page-header-data

Conversation

@JakeSCahill
Copy link
Copy Markdown
Contributor

@JakeSCahill JakeSCahill commented May 12, 2026

Summary

Updates component references across all Redpanda Labs examples to work with unified navigation component renames.

Changes

  • Updated xrefs: ROOT: → streaming:
  • Updated xrefs: redpanda-connect: → connect:
  • Updated xrefs: redpanda-labs: → labs:
  • Fixed page-context-links: Updated JSON arrays for context switchers
  • Fixed module references: connect:streaming:about → connect:get-started:about

Why These Changes

Part of unified navigation rollout. Component names have been simplified:

  • ROOT → streaming
  • redpanda-connect → connect
  • redpanda-labs → labs

Related PRs

Part of unified navigation implementation:

  • docs-extensions-and-macros#197 - Extension
  • docs#1697-1705 - All version branches + main
  • docs-ui#376 - UI implementation
  • cloud-docs#578 - Cloud updates
  • rp-connect-docs#427 - Connect updates
  • docs-site#173 - Test playbook

Jira

DOC-2180

Add a new lab demonstrating Redpanda's shadow linking feature for
disaster recovery on Kubernetes. The lab deploys two single-node
clusters and configures continuous replication of topics, consumer
group offsets, and Schema Registry data.

Includes three demo scenarios:
- Basic topic shadowing
- Schema Registry shadowing
- Consumer group failover

Based on https://github.com/pmw-rp/shadowing-demo
Replace bash wrapper scripts with direct rpk commands in the README.
Users can now copy commands directly from the documentation instead
of running numbered scripts. This makes the lab clearer and more
educational.
- Use correct xref path for shadow linking docs
- Add ^ to external links for new tab behavior
- Fix invalid category: Replication -> Data Replication
- Add kind and Docker to prerequisites
- Add step to create kind cluster before running setup
- Update clean up to delete kind cluster
- Add .gitignore for pid files
- Add progress messages for each step
- Suppress helm notes, repo updates, and K8s warnings
- Add set -e to exit on errors
- Show next steps on completion
Use helm upgrade --install so script can be re-run
- Updated xrefs: ROOT → streaming
- Updated xrefs: redpanda-connect → connect
- Updated xrefs: redpanda-labs → labs
- Fixed page-context-links
- Changed all :ROOT: to :streaming: in xrefs and includes
- Fixed connect:streaming:about to connect:get-started:about
- Page aliases with version numbers left unchanged
@JakeSCahill
Copy link
Copy Markdown
Contributor Author

JakeSCahill commented May 12, 2026

Jira: DOC-2180

@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for redpanda-labs-preview failed. Why did it fail? →

Name Link
🔨 Latest commit 209cd58
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-labs-preview/deploys/6a0324d6fe5f730008aa03e0

Copy link
Copy Markdown
Contributor

@micheleRP micheleRP left a comment

Choose a reason for hiding this comment

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

Review

Major rework needed before this PR ships alongside the other 13 in the rollout. The component rename + xref sweep itself is clean, but the PR pulls in an unfinished lab (kubernetes/stretch-cluster) and uses the wrong attribute key (page-header-data vs the rest of the rollout's component-metadata).

Critical

  1. docs/local-antora-playbook.yml still references the old component name in three places:

    • line 3: start_page: redpanda-labs:ROOT:index.adoc
    • line 55: component: redpanda-labs (generate-index-data extension)
    • line 72: 'redpanda-labs' (replace-attributes-in-attachments extension)

    Local dev builds and the docker_labs index data will both break. Fix: swap all three to labs.

  2. kubernetes/stretch-cluster/ is not a finished lab. The README itself states:

    This is an educational lab demonstrating Stretch Cluster concepts and infrastructure setup… Full Stretch Cluster deployment requires additional operator configuration for multicluster coordination (TLS certificates for inter-operator communication). This lab focuses on infrastructure setup and architecture understanding.

    It also notes the StretchCluster shows "Waiting for controller" and NodePools show "NotBound" — i.e., it does not actually deploy a working stretch cluster. Should not ship under "Disaster Recovery / High Availability" lab categories. Fix: split into a separate PR once it actually works, or label clearly as a scaffolding/demo and move out of the unified-nav PR.

  3. kubernetes/stretch-cluster/README.adoc uses emojis throughout: ⏱️ (line 26), (lines 355–363), (lines 369–375). Style guide forbids emojis in docs.

  4. No docs/modules/kubernetes/pages/stretch-cluster.adoc exists, so the stretch-cluster lab ships only as a repo README (not on the docs site). If intentional, fine — but inconsistent with shadow-linking, which has both.

  5. Heading case in kubernetes/stretch-cluster/README.adoc H2s: "Example Configurations", "Understanding the Architecture", "What You Learned", "Next Steps for Production Deployment". Project rule is sentence case for H2+.

Suggestions

  1. Attribute key mismatch (coordination). docs/antora.yml adds page-header-data, but the rest of the rollout (rp-connect-docs redpanda-data/rp-connect-docs#427, cloud-docs redpanda-data/cloud-docs#578, docs redpanda-data/docs#1698-redpanda-data/docs#1705) uses component-metadata. The docs-ui v3 helpers (sort-components.js, get-header-data.js, get-header-color.js) read component-metadata. If this PR ships as-is, labs likely falls out of the sidebar or renders with stale metadata. Fix: rename to component-metadata.

  2. The new shadow-linking/README.adoc and docs/modules/kubernetes/pages/shadow-linking.adoc are byte-identical (218 lines each). Consider single-sourcing one from the other (e.g. include:: from the canonical) to avoid drift.

  3. ai-agents/langchain-agent/README.adoc is well-structured (learning objectives, prerequisites, clear steps) — good template for the other new labs to follow.

New labs assessment

  • shadow-linking: 218-line README + 56-line setup.sh + 4 resource YAMLs. Polished, clear prereqs, structured steps, has a docs-site page. Ready to ship.
  • stretch-cluster: 692-line README + 696-line setup.sh + verify.sh + cleanup.sh + 7 resource YAMLs. README openly admits the lab does not produce a working cluster and is "demonstrating concepts." Has emojis, Title Case H2s, no docs-site page. Not ready — pull out of this PR.

Coordination risk

  • Attribute key (page-header-data) doesn't match the rest of the rollout — must be reconciled before merge, otherwise labs won't render in the unified sidebar.
  • Component rename consistent in user-visible page content for the files touched (redpanda-labs:labs:, redpanda-connect:connect:, ROOT:streaming:, redpanda-cloud:cloud-data-platform:).
  • docs-site redpanda-data/docs-site#173 production playbook currently points redpanda-labs at branches: main but main still has name: redpanda-labs — production build won't find a labs component. Either this PR must merge first, or docs-site must point at the feature branch.
  • Legacy :page-aliases: 23.3@ROOT:… entries (10 instances in clients/chat-room/*/README.adoc and docs/modules/ROOT/pages/index.adoc) are preserved as-is. Versioned aliases pointing back at the old name are intentionally backwards-compatible — fine to leave.

See docs-site redpanda-data/docs-site#173 for cross-rollout notes (suggested approval order + verification steps).

Copy link
Copy Markdown
Contributor

@micheleRP micheleRP left a comment

Choose a reason for hiding this comment

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

Approved on the assumption that the 5 Critical items in the review comment above are addressed before merge: (1) fix the 3 stale redpanda-labs references in docs/local-antora-playbook.yml (lines 3, 55, 72) → labs, (2) pull kubernetes/stretch-cluster/ out of this PR — its own README states the lab does not produce a working cluster (StretchCluster shows 'Waiting for controller', NodePools 'NotBound'), (3) strip the emojis from stretch-cluster/README.adoc (⏱️ line 26, ✅ lines 355-363, ❌ lines 369-375) if it ships at all, (4) fix the Title Case H2s in stretch-cluster/README.adoc, (5) rename the page-header-data attribute in docs/antora.yml to component-metadata to match docs #1698-#1705, rp-connect-docs redpanda-data/rp-connect-docs#427, and cloud-docs redpanda-data/cloud-docs#578docs-ui v3 helpers only read component-metadata, so as-is this PR will fall out of the unified sidebar.

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