Skip to content

Conversation

@kbatuigas
Copy link
Contributor

@kbatuigas kbatuigas commented Jul 12, 2025

Description

Related: redpanda-data/docs#1207

This pull request makes updates to the Antora playbook and navigation structure to reflect changes in Iceberg schema documentation. It replaces the "Choose Iceberg Mode" page with a new "Specify Iceberg Schema" page and updates references accordingly.

Documentation Updates for Iceberg Schema:

Resolves https://github.com/redpanda-data/documentation-private/issues/
Review deadline: 21 July

Page previews

Specify Iceberg Schema

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

@netlify
Copy link

netlify bot commented Jul 12, 2025

Deploy Preview for rp-cloud ready!

Name Link
🔨 Latest commit 4361d79
🔍 Latest deploy log https://app.netlify.com/projects/rp-cloud/deploys/688bce56518e9f000842c23f
😎 Deploy Preview https://deploy-preview-354--rp-cloud.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
Contributor

coderabbitai bot commented Jul 12, 2025

📝 Walkthrough

Walkthrough

The changes remove the documentation page "choose-iceberg-mode.adoc" and its reference from the navigation, replacing it with a new page "specify-iceberg-schema.adoc". The new page covers supported Iceberg modes and schema integration, and includes content from an external source. The navigation structure is updated to reference the new documentation page under the "manage:iceberg" section.

Sequence Diagram(s)

Not applicable: The changes are limited to documentation structure and content updates without control flow or feature logic.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Assessment against linked issues

Objective Addressed Explanation
Document feature: Iceberg support for JSON Schemas (DOC-1379)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes found.

Possibly related PRs

Suggested reviewers

  • micheleRP
  • Feediver1

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch DOC-1379-cloud-iceberg-json-schema

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@kbatuigas kbatuigas force-pushed the DOC-1379-cloud-iceberg-json-schema branch from 5fe4ba8 to 4361d79 Compare July 31, 2025 20:13
@kbatuigas kbatuigas marked this pull request as ready for review July 31, 2025 20:16
@kbatuigas kbatuigas requested a review from a team as a code owner July 31, 2025 20:17
@paulohtb6
Copy link
Contributor

Since this is a rename, it's a good idea to add a redirect here https://github.com/redpanda-data/docs-site/blob/main/netlify.toml

@paulohtb6
Copy link
Contributor

nvm, I see thhe page-alias now. LGTM

Copy link
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 (1)
modules/ROOT/nav.adoc (1)

414-417: Consider adding explicit link text for the new page

The previous entry hard-coded Choose Iceberg Mode as the label.
Relying on an empty xref ([]) falls back to the page title, which is fine, but if you want the navigation to match the old style or a shorter label (for example, “Specify Schema”), specify it explicitly:

-*** xref:manage:iceberg/specify-iceberg-schema.adoc[]
+*** xref:manage:iceberg/specify-iceberg-schema.adoc[Specify Iceberg Schema]

Purely cosmetic, but helps keep the nav consistent.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d52eb6e and 4361d79.

📒 Files selected for processing (3)
  • modules/ROOT/nav.adoc (1 hunks)
  • modules/manage/pages/iceberg/choose-iceberg-mode.adoc (0 hunks)
  • modules/manage/pages/iceberg/specify-iceberg-schema.adoc (1 hunks)
💤 Files with no reviewable changes (1)
  • modules/manage/pages/iceberg/choose-iceberg-mode.adoc
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: micheleRP
PR: redpanda-data/cloud-docs#267
File: modules/manage/pages/maintenance.adoc:63-64
Timestamp: 2025-04-25T01:42:09.318Z
Learning: The timeline for major upgrade notifications (180 days in advance) was intentionally removed from the Redpanda Cloud maintenance documentation, even though it was mentioned in the PR objectives.
📚 Learning: in asciidoc documentation used by redpanda, empty cross-references (xrefs) without link text (like `...
Learnt from: micheleRP
PR: redpanda-data/cloud-docs#278
File: modules/manage/pages/cluster-maintenance/config-cluster.adoc:75-75
Timestamp: 2025-04-29T18:43:42.666Z
Learning: In AsciiDoc documentation used by Redpanda, empty cross-references (xrefs) without link text (like `xref:manage:rpk/intro-to-rpk.adoc[]`) automatically use the target page's title as the link text.

Applied to files:

  • modules/ROOT/nav.adoc
📚 Learning: in the redpanda cloud documentation system using asciidoctor, glossary cross-references with spaces ...
Learnt from: micheleRP
PR: redpanda-data/cloud-docs#350
File: modules/get-started/pages/cloud-overview.adoc:55-56
Timestamp: 2025-07-16T21:11:59.964Z
Learning: In the Redpanda Cloud documentation system using Asciidoctor, glossary cross-references with spaces in the ID (like `glossterm:data plane[]`) work correctly and do not need to be changed to hyphenated forms. The existing syntax is functional and should not be modified.

Applied to files:

  • modules/ROOT/nav.adoc

:description: Learn about supported Iceberg modes and how you can integrate schemas with Iceberg topics.
:page-aliases: manage:iceberg/choose-iceberg-mode.adoc

include::ROOT:manage:iceberg/specify-iceberg-schema.adoc[tag=single-source] No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Include path is likely invalid or self-referential

The directive

include::ROOT:manage:iceberg/specify-iceberg-schema.adoc[tag=single-source]

uses two : separators instead of the required : (family) + $ (path) pattern.
As written, Antora may treat manage as a family name (which is unsupported) and the build will raise an “unresolved include” or, worse, recurse on the same file.

Proposed fix (assumes the single-source file lives in modules/ROOT/pages/manage/iceberg/):

-include::ROOT:manage:iceberg/specify-iceberg-schema.adoc[tag=single-source]
+// Single-source content lives in the ROOT module under pages/
+include::ROOT:pages$manage/iceberg/specify-iceberg-schema.adoc[tag=single-source]

Please verify the actual location and adjust family/path accordingly.


I want to confirm the actual file layout and include usage before updating the comment. Let's locate the target AsciiDoc file and inspect its include directives:


🏁 Script executed:

#!/usr/bin/env bash
# Find every occurrence of specify-iceberg-schema.adoc in the repo
fd specify-iceberg-schema.adoc

# Show the include::ROOT directive in the file under review
rg "include::ROOT" -n modules/manage/pages/iceberg/specify-iceberg-schema.adoc || true

Length of output: 246


Let’s confirm how the Antora playbook defines the ROOT module and its page roots:


🏁 Script executed:

#!/usr/bin/env bash
# Locate the Antora playbook
fd antora-playbook.*yml

# If it exists, show its modules section
if [ -f antora-playbook.yml ]; then
  grep -R "modules:" -n antora-playbook.yml | sed -n '1,10p'
  sed -n '1,200p' antora-playbook.yml | sed -n '/modules:/,$p'
fi

Length of output: 86


I need to confirm how the ROOT module is declared in your Antora playbook before suggesting the exact include syntax. Let’s inspect the top of local-antora-playbook.yml to see the modules: definitions:


🏁 Script executed:

#!/usr/bin/env bash
# Show the first 200 lines of the playbook to inspect module declarations
sed -n '1,200p' local-antora-playbook.yml

Length of output: 2937


I want to verify that the single-source file actually lives under the ROOT module before suggesting the updated include syntax. Let’s check for it:


🏁 Script executed:

#!/usr/bin/env bash
# Confirm the ROOT module exists and locate the shared AsciiDoc file
if [ -d modules/ROOT ]; then
  echo "Found modules/ROOT—searching for specify-iceberg-schema.adoc under ROOT/pages..."
  fd specify-iceberg-schema.adoc modules/ROOT/pages
else
  echo "modules/ROOT directory not found"
fi

Length of output: 354


Let’s inspect the modules directory and drill into modules/ROOT to see its layout:


🏁 Script executed:

#!/usr/bin/env bash
# List all modules
echo "Modules:"
ls -1 modules

# If ROOT exists, show its full tree
if [ -d modules/ROOT ]; then
  echo -e "\nmodules/ROOT structure:"
  ls -R modules/ROOT
else
  echo "modules/ROOT not found"
fi

Length of output: 520


Invalid include path: no modules/ROOT/pages or duplicate file
On line 5 of modules/manage/pages/iceberg/specify-iceberg-schema.adoc, the directive

include::ROOT:manage:iceberg/specify-iceberg-schema.adoc[tag=single-source]

points at modules/ROOT/pages/manage/iceberg/specify-iceberg-schema.adoc, but the ROOT module has no pages folder and no copy of this file.

Possible fixes:

  • If there is a separate “single-source” AsciiDoc file, move it into the correct module’s pages/iceberg directory (for example, under modules/shared/pages/iceberg) and update the include to use Antora’s family:pages$path syntax:
    -include::ROOT:manage:iceberg/specify-iceberg-schema.adoc[tag=single-source]
    +include::shared:pages$iceberg/specify-iceberg-schema.adoc[tag=single-source]
    (Replace shared with the actual module name where the file lives.)
  • If no external file exists (i.e. you’re including the same document), remove the include or replace it with a valid relative include.

Please confirm where the single-source file actually resides and correct the include directive accordingly.

🤖 Prompt for AI Agents
In modules/manage/pages/iceberg/specify-iceberg-schema.adoc at line 5, the
include directive uses an invalid path referencing
ROOT:manage:iceberg/specify-iceberg-schema.adoc, but the ROOT module lacks a
pages folder and this file. To fix, verify the actual location of the
single-source AsciiDoc file; if it exists in another module like shared, move it
to that module's pages/iceberg directory and update the include to use the
correct Antora family:pages$path syntax. If no separate file exists, remove the
include or replace it with a valid relative include path within the current
module.

@kbatuigas kbatuigas merged commit 6a4e126 into main Jul 31, 2025
5 checks passed
@kbatuigas kbatuigas deleted the DOC-1379-cloud-iceberg-json-schema branch July 31, 2025 20: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.

4 participants