Skip to content

Add Cookbooks page - #537

Merged
juecd merged 8 commits into
mainfrom
feature/kernel-docs-cookbooks-page-94e601
Sep 9, 2026
Merged

Add Cookbooks page#537
juecd merged 8 commits into
mainfrom
feature/kernel-docs-cookbooks-page-94e601

Conversation

@goosewin

@goosewin goosewin commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Adds a Cookbooks tab to the docs, cataloguing all 16 recipes in kernel/cookbooks. Related to the strawman in #525 — built as a separate take from main; happy to reconcile whichever direction wins.


Note

Low Risk
Documentation and navigation-only changes with no runtime product or API behavior impact.

Overview
Adds a Cookbooks docs tab that catalogs runnable recipes from kernel/cookbooks, with a wide landing page (cookbooks.mdx), client-side search (CookbookSearch), and a card grid split into “common patterns” vs “harnesses & models.”

Navigation is reorganized: Playwright computer-use fallback and enable payments move out of the Platform section into Cookbooks under Common Patterns; Harnesses & Models uses lightweight cookbooks/*.mdx stubs (url frontmatter) so the sidebar lists GitHub recipes without full doc pages. Integration guides (Browser Use, Claude Managed Agents, Anthropic computer use, Stagehand, AI SDK, Vibium) gain Tip links to the matching cookbooks, and the changelog fixes the Claude Managed Agents cookbook URL to the monorepo path. CSS hides misleading prev/next pagination on external cookbook routes and styles .cookbook-tag on cards.

Reviewed by Cursor Bugbot for commit d0f2613. Bugbot is set up for automated code reviews on this repo. Configure here.

New Cookbooks tab with a card gallery for all 16 kernel/cookbooks
recipes, per-card feature/integration labels, live search filter
(snippets/cookbook-search.jsx), sidebar external links to each cookbook
subdirectory, and card artwork in images/cookbooks/.
…links

Add cookbook Tips to the five integration pages with a matching
cookbook, and point claude-managed-agents-kernel links (integration
page + changelog) at kernel/cookbooks subdirectories.
…ookbooks-page-94e601

# Conflicts:
#	style.css
@mintlify

mintlify Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Kernel 🟢 Ready View Preview Sep 1, 2026, 5:51 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

cursor[bot]
cursor Bot approved these changes Sep 1, 2026

@cursor cursor 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.

Stale Bugbot comment from a previous run.

Comment thread style.css
so hide pagination that would point at them */
#pagination a[href^="/cookbooks/"] {
display: none;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pagination hide misses production URLs

Medium Severity

The pagination hide rule matches only hrefs that start with /cookbooks/. Docs are served under /docs, so production pagination links likely will not match and will still send readers to the empty cookbook stubs this rule is meant to hide.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 10dcac3. Configure here.

@juecd
juecd self-requested a review September 2, 2026 13:43
Comment thread cookbooks.mdx

<CookbookSearch />

<Columns className="responsive-columns" cols={3}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove features section per canvas notes

Comment thread cookbooks.mdx Outdated
Comment thread docs.json Outdated
Comment thread cookbooks.mdx Outdated
Comment thread cookbooks.mdx Outdated
Comment thread cookbooks.mdx

Every cookbook is self-contained: clone it, set your secrets, run. Use them as 1-click starts for your agents or as templates for your own automations.

import { CookbookSearch } from '/snippets/cookbook-search.jsx';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very cool addition, tysm!

@cursor cursor 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.

Stale comment

Risk assessment: Low

Verdict: Low risk. Re-evaluated after 287b9e9 (copy edit on cookbooks.mdx). Risk did not increase. Prior approval stands; not re-approving.

What changed (from the diff)

  • New docs tab and landing page (docs.json, cookbooks.mdx) cataloguing 16 cookbooks as cards that link out to github.com/kernel/cookbooks.
  • 16 stub MDX pages under cookbooks/ whose only content is title + external url frontmatter.
  • Card images under images/cookbooks/.
  • Tip/link updates on existing integration pages and a changelog URL rewrite from absorbed repo paths to kernel/cookbooks.
  • Client-side search snippet (snippets/cookbook-search.jsx) that filters existing cards by textContent and toggles style.display.
  • Scoped CSS: hide pagination links whose href starts with /cookbooks/, plus .cookbook-tag styling.
  • Latest commit vs prior approval: one intro sentence rewrite on cookbooks.mdx. No new files, logic, or nav changes.

Why Low (not Very Low)

This is more than a typo or copy-only edit: it adds a new nav tab, a new interactive snippet, and CSS that hides pagination for cookbook routes. Those are easy to reason about but they are a real user-facing surface on the docs site.

Why not Medium+

  • No auth, billing, permissions, APIs, or infrastructure.
  • No production application logic; this repo is a Mintlify docs site.
  • Search uses the query only for string matching (includes) and does not inject user input as HTML or make network calls.
  • CSS and navigation changes are limited to the new Cookbooks surface.
  • No CODEOWNERS file and no code-owner review requirement found.

Approval is not revoked. If later commits expand beyond docs/nav/UI (for example CI, secrets, or site-wide behavior), this approval must be re-evaluated.

Open in Web View Automation 

Sent by Cursor Automation: Assign PR reviewers

@juecd
juecd force-pushed the feature/kernel-docs-cookbooks-page-94e601 branch from 287b9e9 to adce39e Compare September 9, 2026 17:03
@juecd
juecd self-requested a review September 9, 2026 17:04

@cursor cursor 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.

Stale comment

Risk assessment: Low

Verdict: Low risk. Re-evaluated after adce39e (address review comments, merge main, update cookbook images and card order). Risk did not increase versus the prior Low assessment. Prior approval stands; not re-approving.

What changed (from the diff)

  • New Cookbooks tab and landing page (docs.json, cookbooks.mdx) with a card grid. Most cards link out to github.com/kernel/cookbooks; two cards link to existing in-repo guides (/browsers/playwright-computer-use-fallback, /browsers/enable-payments-in-browser-agent).
  • Those two existing guide pages are removed from the Guides tree and listed under Cookbooks → Common Patterns. Remaining sidebar entries are thin cookbooks/*.mdx stubs (title + external url frontmatter) under Harnesses & Models.
  • Card images under images/cookbooks/.
  • Tip/link updates on existing integration pages and a changelog URL rewrite to kernel/cookbooks.
  • Client-side search snippet (snippets/cookbook-search.jsx) that filters matching cards by textContent and toggles style.display.
  • Scoped CSS: hide pagination links whose href starts with /cookbooks/, plus .cookbook-tag styling.

This update vs the last assessed head is still docs/nav/UI: group rename, card reorder, new images, and moving two existing docs pages into the Cookbooks tab. No CI, secrets, auth, or site-wide runtime changes.

Why Low (not Very Low)

This is more than a typo or copy-only edit: it adds a new nav tab, a new interactive snippet, and CSS that hides pagination for cookbook routes. Those are easy to reason about but they are a real user-facing surface on the docs site.

Why not Medium+

  • No auth, billing, permissions, APIs, or infrastructure.
  • No production application logic; this repo is a Mintlify docs site.
  • Search uses the query only for string matching (includes) and does not inject user input as HTML or make network calls.
  • CSS and navigation changes are limited to the Cookbooks surface and two relocated guide pages.
  • No CODEOWNERS file. Branch ruleset require_code_owner_review is false.

Approval is not revoked. If later commits expand beyond docs/nav/UI (for example CI, secrets, or site-wide behavior), this approval must be re-evaluated.

Open in Web View Automation 

Sent by Cursor Automation: Assign PR reviewers

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit adce39e. Configure here.

).filter((a) => !a.closest('nav') && !a.closest('aside'));
const cards = anchors.map((a) => a.closest('.card') || a);
return Array.from(new Set(cards));
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Search skips internal cookbook cards

Medium Severity

CookbookSearch only treats anchors whose href starts with the GitHub cookbooks URL as cards, so the Agentic Payments and Playwright cards are never shown or hidden. They stay on screen for every query, and a search for those titles can still render the empty-results message.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit adce39e. Configure here.

@cursor cursor 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.

Risk assessment: Low

Verdict: Low risk. Re-evaluated after d0f2613 (remove unused cookbook stub pages). Risk did not increase versus the prior Low assessment. Prior approval stands; not re-approving.

What changed (from the diff)

  • New Cookbooks tab and landing page (docs.json, cookbooks.mdx) with a card grid. Most cards link out to github.com/kernel/cookbooks; two cards link to existing in-repo guides (/browsers/playwright-computer-use-fallback, /browsers/enable-payments-in-browser-agent).
  • Those two existing guide pages move from the Guides tree into Cookbooks → Common Patterns. Remaining sidebar entries are thin cookbooks/*.mdx stubs (title + external url frontmatter) under Harnesses & Models.
  • Card images under images/cookbooks/.
  • Tip/link updates on existing integration pages and a changelog URL rewrite to kernel/cookbooks.
  • Client-side search snippet (snippets/cookbook-search.jsx) that filters matching GitHub-linked cards by textContent and toggles style.display. Query text is used only for includes matching; no HTML injection or network calls.
  • Scoped CSS: hide pagination links whose href starts with /cookbooks/, plus .cookbook-tag styling.

This update vs the last assessed head (adce39e) only deletes six unused 4-line stub files (cookbooks/ad-blocker.mdx, chrome-policies.mdx, file-io.mdx, profiles.mdx, proxies.mdx, replays.mdx). They were not in docs.json navigation. No new logic, nav, or CSS.

Why Low (not Very Low)

This is more than a typo or copy-only edit: it adds a new nav tab, a new interactive snippet, and CSS that hides pagination for cookbook routes. Those are easy to reason about but they are a real user-facing surface on the docs site.

Why not Medium+

  • No auth, billing, permissions, APIs, or infrastructure.
  • No production application logic; this repo is a Mintlify docs site.
  • Search uses the query only for string matching and does not inject user input as HTML.
  • CSS and navigation changes are limited to the Cookbooks surface and two relocated guide pages.
  • No CODEOWNERS file. Branch ruleset require_code_owner_review is false.

Approval is not revoked. If later commits expand beyond docs/nav/UI (for example CI, secrets, or site-wide behavior), this approval must be re-evaluated.

Open in Web View Automation 

Sent by Cursor Automation: Assign PR reviewers

@juecd
juecd merged commit 0ed2577 into main Sep 9, 2026
4 checks passed
@juecd
juecd deleted the feature/kernel-docs-cookbooks-page-94e601 branch September 9, 2026 17:15
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