Skip to content

Conversation

@necatiozmen
Copy link
Member

@necatiozmen necatiozmen commented Dec 24, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

What is the new behavior?

fixes (issue)

Notes for reviewers


Summary by cubic

Updated the docs navigation with a new sticky, two-row navbar and streamlined layout to make browsing and search faster and more consistent across documentation pages. Removes the old docs header and aligns the sidebar and TOC with the new navbar.

  • New Features

    • Added a docs-specific navbar with logo, version badge, Search (⌘K) trigger, CTA, and social links.
    • Introduced tabs for major docs sections with active state highlighting.
    • Search button now opens DocSearch via a hidden SearchBar instance.
  • Refactors

    • Removed the legacy docs header from DocRoot/Layout/Main.
    • Simplified the desktop DocSidebar to only render the menu (no logo/search).
    • Adjusted TOC and sidebar to be sticky at 100px to match the new navbar.
    • Updated CSS for docs navbar styling, tab states, caret sizes, and DocSearch modal offset.

Written for commit 78e1f0f. Summary will update automatically on new commits.

@changeset-bot
Copy link

changeset-bot bot commented Dec 24, 2025

⚠️ No Changeset found

Latest commit: 78e1f0f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@joggrbot

This comment has been minimized.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 24, 2025

Deploying voltagent with  Cloudflare Pages  Cloudflare Pages

Latest commit: 78e1f0f
Status: ✅  Deploy successful!
Preview URL: https://5035f9ad.voltagent.pages.dev
Branch Preview URL: https://update-doc-navbar.voltagent.pages.dev

View logs

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

3 issues found across 13 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="website/src/components/navbar/index.tsx">

<violation number="1" location="website/src/components/navbar/index.tsx:230">
P2: Incomplete ARIA tablist implementation. The `role=&quot;tablist&quot;` container requires children with `role=&quot;tab&quot;` and `aria-selected` attributes. Since these are navigation links rather than content-switching tabs, consider either removing `role=&quot;tablist&quot;` or adding proper tab semantics.</violation>
</file>

<file name="website/src/components/ops/Observability.tsx">

<violation number="1" location="website/src/components/ops/Observability.tsx:686">
P2: Removing the biome lint suppression without fixing the accessibility issue. The `&lt;div&gt;` with `onClick` still lacks keyboard handlers. Either restore the ignore comment or properly fix the accessibility by adding `role=&quot;button&quot;`, `tabIndex={0}`, and an `onKeyDown` handler that responds to Enter/Space keys.</violation>
</file>

<file name="website/src/css/layout.css">

<violation number="1" location="website/src/css/layout.css:211">
P1: `overflow: hidden` on a documentation sidebar will prevent users from scrolling to see navigation items that exceed the viewport height. Consider using `overflow-y: auto` to allow vertical scrolling while keeping horizontal overflow hidden.</violation>
</file>

Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR

</div>
{/* Bottom Row: Tabs */}
<div className={styles.docsNavbarBottom}>
<div className={styles.docsTabList} role="tablist" aria-label="Documentation sections">
Copy link

@cubic-dev-ai cubic-dev-ai bot Dec 24, 2025

Choose a reason for hiding this comment

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

P2: Incomplete ARIA tablist implementation. The role="tablist" container requires children with role="tab" and aria-selected attributes. Since these are navigation links rather than content-switching tabs, consider either removing role="tablist" or adding proper tab semantics.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At website/src/components/navbar/index.tsx, line 230:

<comment>Incomplete ARIA tablist implementation. The `role=&quot;tablist&quot;` container requires children with `role=&quot;tab&quot;` and `aria-selected` attributes. Since these are navigation links rather than content-switching tabs, consider either removing `role=&quot;tablist&quot;` or adding proper tab semantics.</comment>

<file context>
@@ -117,6 +141,112 @@ export default function Navbar() {
+        &lt;/div&gt;
+        {/* Bottom Row: Tabs */}
+        &lt;div className={styles.docsNavbarBottom}&gt;
+          &lt;div className={styles.docsTabList} role=&quot;tablist&quot; aria-label=&quot;Documentation sections&quot;&gt;
+            {docTabs.map((tab) =&gt; (
+              &lt;Link
</file context>
Suggested change
<div className={styles.docsTabList} role="tablist" aria-label="Documentation sections">
<div className={styles.docsTabList} aria-label="Documentation sections">
Fix with Cubic

}) => {
return (
// biome-ignore lint/a11y/useKeyWithClickEvents: ignore
<div
Copy link

@cubic-dev-ai cubic-dev-ai bot Dec 24, 2025

Choose a reason for hiding this comment

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

P2: Removing the biome lint suppression without fixing the accessibility issue. The <div> with onClick still lacks keyboard handlers. Either restore the ignore comment or properly fix the accessibility by adding role="button", tabIndex={0}, and an onKeyDown handler that responds to Enter/Space keys.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At website/src/components/ops/Observability.tsx, line 686:

<comment>Removing the biome lint suppression without fixing the accessibility issue. The `&lt;div&gt;` with `onClick` still lacks keyboard handlers. Either restore the ignore comment or properly fix the accessibility by adding `role=&quot;button&quot;`, `tabIndex={0}`, and an `onKeyDown` handler that responds to Enter/Space keys.</comment>

<file context>
@@ -683,7 +683,6 @@ const TabItem = ({
 }) =&gt; {
   return (
-    // biome-ignore lint/a11y/useKeyWithClickEvents: ignore
     &lt;div
       className={`flex flex-col items-center px-3 pt-2 cursor-pointer transition-all duration-300 ease-in-out  min-w-[80px] ${
         isActive ? &quot;  &quot; : &quot;border-transparent text-gray-300 hover:text-gray-200 &quot;
</file context>
Fix with Cubic

top: 100px;
height: calc(100vh - 100px);
align-self: flex-start;
overflow: hidden;
Copy link

@cubic-dev-ai cubic-dev-ai bot Dec 24, 2025

Choose a reason for hiding this comment

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

P1: overflow: hidden on a documentation sidebar will prevent users from scrolling to see navigation items that exceed the viewport height. Consider using overflow-y: auto to allow vertical scrolling while keeping horizontal overflow hidden.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At website/src/css/layout.css, line 211:

<comment>`overflow: hidden` on a documentation sidebar will prevent users from scrolling to see navigation items that exceed the viewport height. Consider using `overflow-y: auto` to allow vertical scrolling while keeping horizontal overflow hidden.</comment>

<file context>
@@ -204,6 +204,11 @@ div[class^=&quot;announcementBar_&quot;] button {
+    top: 100px;
+    height: calc(100vh - 100px);
+    align-self: flex-start;
+    overflow: hidden;
   }
 
</file context>
Suggested change
overflow: hidden;
overflow-y: auto;
Fix with Cubic

@omeraplak omeraplak merged commit 65800fc into main Dec 24, 2025
22 checks passed
@omeraplak omeraplak deleted the update-doc-navbar branch December 24, 2025 16:27
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.

3 participants