Skip to content

docs: fix SDK root 404, breadcrumb link, callout icons#401

Merged
pratyush618 merged 3 commits into
masterfrom
docs/fix-sdk-root-and-callouts
Jul 10, 2026
Merged

docs: fix SDK root 404, breadcrumb link, callout icons#401
pratyush618 merged 3 commits into
masterfrom
docs/fix-sdk-root-and-callouts

Conversation

@pratyush618

@pratyush618 pratyush618 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Three docs-site fixes reported after #400.

Bare SDK root 404'd

Visiting `/python` (and `/node`, `/java`) hit Page not found — the SDK root has no page of its own, and only the `/{sdk}/getting-started` section landing was in the redirect map. Added the bare SDK root to the same landing map, so it redirects to `getting-started/installation`. Verified in the prerendered stub (`build/client/python/index.html` meta-refreshes to the installation page).

SDK breadcrumb was a dead link

The leading breadcrumb crumb (e.g. Python) linked to that same redirect-only SDK root. It now renders as a plain label — the rest of the trail stays clickable.

Inconsistent callout icons

Four callouts omitted `type=`, so they fell back to the neutral default variant and their icon/border differed from every other info callout (191 use `type="info"`). Set `type="info"` on all four (installation, two sso pages, architecture/storage).

Verification

  • `pnpm run typecheck` and `biome check` clean
  • `pnpm build` — prerender emits the `/python`, `/node`, `/java` redirect stubs; breadcrumb renders `Python` (non-link)

Summary by CodeRabbit

  • New Features

    • Added redirects from SDK root pages to their installation guides.
    • Improved SDK breadcrumbs by displaying the root SDK name as non-clickable text.
  • Documentation

    • Updated several guidance callouts to use consistent informational styling.
    • Clarified installation, storage schema, and SSO documentation presentation.

Untyped callouts rendered with default (neutral) styling instead of the info variant, so their icon/border differed from every other info callout.
/python (and /node, /java) had no page and 404'd; send them to getting-started/installation like the section landing already does.
The SDK breadcrumb (e.g. Python) only redirected to the first doc; render it as a plain label instead of a link.
@github-actions github-actions Bot added the docs label Jul 10, 2026
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation updates add SDK root redirects, render SDK roots as non-link breadcrumb labels, style those labels, and explicitly mark four callouts as informational.

Changes

SDK navigation

Layer / File(s) Summary
SDK landing redirects
docs/app/lib/redirects.ts
SDK root and getting-started paths redirect to each SDK’s installation page.
SDK breadcrumb rendering
docs/app/routes/docs.$.tsx, docs/app/styles/docs.css
SDK root breadcrumb segments render as non-link spans with default cursor styling.

Documentation callout types

Layer / File(s) Summary
Info callout annotations
docs/content/docs/architecture/storage.mdx, docs/content/docs/java/guides/operations/sso.mdx, docs/content/docs/python/getting-started/installation.mdx, docs/content/docs/python/guides/dashboard/sso.mdx
Four documentation callouts explicitly specify type="info".

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: python

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main documentation fixes: SDK root redirects, breadcrumb behavior, and callout styling.
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.
✨ 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 docs/fix-sdk-root-and-callouts

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
docs/app/routes/docs.$.tsx (1)

27-29: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Update the stale breadcrumb JSDoc.

The comment at Line 16 says the leading segment links to its section index, but SDK roots are now intentionally rendered as non-links. Update it to document this exception.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/app/routes/docs`.$.tsx around lines 27 - 29, Update the breadcrumb JSDoc
describing the leading segment so it accurately states that it links to its
section index except for SDK roots, which are rendered as plain non-links and
redirect to the first document. Keep the implementation in the breadcrumb
mapping unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@docs/app/routes/docs`.$.tsx:
- Around line 27-29: Update the breadcrumb JSDoc describing the leading segment
so it accurately states that it links to its section index except for SDK roots,
which are rendered as plain non-links and redirect to the first document. Keep
the implementation in the breadcrumb mapping unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 89c03696-de11-48f8-bd3d-960b8ff75103

📥 Commits

Reviewing files that changed from the base of the PR and between 013a1ab and 7d97d87.

📒 Files selected for processing (7)
  • docs/app/lib/redirects.ts
  • docs/app/routes/docs.$.tsx
  • docs/app/styles/docs.css
  • docs/content/docs/architecture/storage.mdx
  • docs/content/docs/java/guides/operations/sso.mdx
  • docs/content/docs/python/getting-started/installation.mdx
  • docs/content/docs/python/guides/dashboard/sso.mdx

@pratyush618
pratyush618 merged commit 0e2c122 into master Jul 10, 2026
15 checks passed
@pratyush618
pratyush618 deleted the docs/fix-sdk-root-and-callouts branch July 10, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant