Skip to content

Add rpk reference pages for rpk ai and rpk cloud commands#17

Merged
micheleRP merged 5 commits into
mainfrom
add-rpk-reference-pages
May 11, 2026
Merged

Add rpk reference pages for rpk ai and rpk cloud commands#17
micheleRP merged 5 commits into
mainfrom
add-rpk-reference-pages

Conversation

@micheleRP
Copy link
Copy Markdown
Contributor

@micheleRP micheleRP commented May 11, 2026

Summary

  • Adds a slim rpk reference section at modules/reference/pages/rpk/ so adp-docs prose has command-level pages to xref instead of bare backticks.
  • Covers the rpk ai plugin (new in ADP; content lives only in adp-docs, not in cloud-docs or the docs repo) — install, uninstall, upgrade.
  • Covers the rpk cloud subcommands actually referenced in adp-docs prose (login, logout, cluster, cluster select) via include from ROOT:reference:partial$rpk-cloud/... so they stay auto-synced with rpk releases.
  • Includes minimal stubs for rpk profile and rpk -X because the rpk-cloud-login partial xrefs them transitively. Without them the build emits broken-xref errors.
  • Extends the Reference section of modules/ROOT/nav.adoc with the new rpk subtree.
  • Adds xrefs at primary mentions of rpk ai / rpk cloud commands in ai-gateway/overview.adoc, ai-gateway/connect-agent.adoc, mcp/create-server.adoc, mcp/oauth-providers.adoc, and mcp/test-tools.adoc.

Preview pages

  • rpk Commands (new) — reference landing page; the rest of the rpk section is reachable from here.
  • Connect your agent (updated) — main prose page consuming the new xrefs.

Test plan

  • npm run build completes without target of xref not found or target of include not found errors for any page under modules/reference/pages/rpk/.
  • npm run serve and click through the new nav entries:
    • /redpanda-adp/reference/rpk/ renders the landing page with four sibling entries (rpk ai, rpk cloud, rpk profile, rpk -X) and no stray description text.
    • /redpanda-adp/reference/rpk/rpk-ai/rpk-ai-install/ shows install command usage, flags, and --ai-version.
    • /redpanda-adp/reference/rpk/rpk-cloud/rpk-cloud-login/ renders identical content to docs.redpanda.com's rpk cloud login page (proves the ROOT include resolves).
    • Sidebar shows the new rpk Commands group under Reference.
  • On /redpanda-adp/ai-gateway/connect-agent/, the inline rpk ai, rpk ai install, rpk cloud login, and rpk profile mentions link to the new reference pages.

🤖 Generated with Claude Code

Adds a slim rpk reference section under modules/reference/pages/rpk/ so
content pages have command-level docs to xref instead of bare backticks.
Covers the rpk ai plugin (new in ADP, content lives only in adp-docs)
plus the rpk cloud subcommands actually referenced in adp-docs prose
(login, logout, cluster, cluster select). rpk profile and rpk -X stubs
are included because the rpk-cloud-login partial transitively xrefs them.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@micheleRP micheleRP requested a review from a team as a code owner May 11, 2026 21:49
@netlify
Copy link
Copy Markdown

netlify Bot commented May 11, 2026

Deploy Preview for redpanda-agentic-data-plane ready!

Name Link
🔨 Latest commit d42188d
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-agentic-data-plane/deploys/6a025ad33fecb90007303152
😎 Deploy Preview https://deploy-preview-17--redpanda-agentic-data-plane.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.

micheleRP and others added 4 commits May 11, 2026 15:58
xrefs primary references in ai-gateway and mcp pages to the new rpk
reference section. Skips subsequent mentions, TODO comments, and rpk ai
subcommands without reference pages (mcp create, oauth create, etc.).
Also tightens code-style formatting in rpk-ai-install.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The autogenerated/ entry was a side effect of running the rpk doc generator
to bootstrap rpk-ai partials. Those partials have been inlined into the
rpk-ai pages and removed, so the generator isn't expected to run again for
adp-docs. Reverting the .gitignore change keeps this PR focused on content.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Adds a single-sourced Install or update rpk page under get-started/,
  including from `ROOT:get-started:rpk-install.adoc` with `:env-cloud:` so
  the Cloud-style "always use the latest" branch renders. Replaces two
  cross-repo `xref:redpanda-cloud:manage:rpk/rpk-install.adoc[]` links in
  ingest-custom-traces and transaction-dispute-resolution.

- Wraps four `:learning-objective-N:` attributes that contained backtick
  formatting in `pass:q[...]` so the monospace styling survives attribute
  expansion. Without the wrapper, AsciiDoc strips inline markup from
  attribute values.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirrors docs and cloud-docs positioning where Glossary sits at the very
end as a top-level entry. Drops the Pipeline examples nav link for now;
the page file is kept on disk in case it's restored later.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@micheleRP micheleRP merged commit dad1835 into main May 11, 2026
4 checks passed
@micheleRP micheleRP deleted the add-rpk-reference-pages branch May 11, 2026 22:45
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.

1 participant