Skip to content

AI Cookbook: match site breadcrumbs, relocate GitHub link - #5115

Merged
Duncanma merged 3 commits into
mainfrom
ai-cookbook-breadcrumbs-github-link
Aug 14, 2026
Merged

AI Cookbook: match site breadcrumbs, relocate GitHub link#5115
Duncanma merged 3 commits into
mainfrom
ai-cookbook-breadcrumbs-github-link

Conversation

@Duncanma

@Duncanma Duncanma commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a breadcrumb to /ai-cookbook/* recipe pages matching the rest of the site (Home / AI Cookbook / page title), since these pages use a fully custom docItemComponent that bypassed the default breadcrumb entirely.
  • Removes the now-redundant "Back to Cookbook" link (breadcrumb covers the same navigation).
  • Moves "Open in GitHub" out of the top action row into the recipe body, just below "Last updated," as a single link reading "View this recipe's code on GitHub."
  • The GitHub link no longer renders at all when a recipe has no source frontmatter, instead of showing a disabled, dimmed dead link.

Test plan

  • yarn build passes (ran via pre-commit hook)
  • Verified in dev server: breadcrumb renders and links correctly (Home → /, AI Cookbook → /ai-cookbook, active crumb non-link)
  • Verified relocated GitHub link points to the correct source URL and opens in a new tab
  • Verified the GitHub link section doesn't render when source is absent (tested by temporarily removing it from a recipe's frontmatter)
  • Checked mobile viewport (375px) layout

┆Attachments: EDU-6959 AI Cookbook: match site breadcrumbs, relocate GitHub link

AI Cookbook recipe pages bypass the default DocItem layout, so they
never got the standard Home / section / page breadcrumb the rest of
the site shows. Add a local breadcrumb built from the same global
Infima classes and the theme's reusable Home crumb, and drop the
now-redundant "Back to Cookbook" link.

Move "Open in GitHub" out of the top action row into the recipe body,
just below "Last updated," as a single link reading "View this
recipe's code on GitHub." The link no longer renders at all when a
recipe has no source frontmatter, instead of showing a disabled,
dimmed dead end.
Copilot AI balanced review requested due to automatic review settings August 14, 2026 17:30
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
temporal-documentation Ready Ready Preview Aug 14, 2026 6:13pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

This PR does not change any pages in /docs. If you make updates, links to the modified pages will appear here.

Copilot AI left a comment

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.

Pull request overview

Adds site-consistent breadcrumbs to AI Cookbook recipes and improves source-link placement and behavior.

Changes:

  • Adds Home / AI Cookbook / recipe breadcrumbs.
  • Moves the GitHub source link below update metadata.
  • Hides the source link when no URL exists and updates related styling.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/components/Cookbook/DocItem/CookbookDocItem.tsx Implements breadcrumbs and conditional GitHub linking.
src/components/Cookbook/DocItem/CookbookDocItem.module.css Styles breadcrumbs and the relocated GitHub section.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Duncanma
Duncanma marked this pull request as ready for review August 14, 2026 18:04
@Duncanma
Duncanma requested a review from a team as a code owner August 14, 2026 18:04
@Duncanma

Copy link
Copy Markdown
Contributor Author

@Duncanma
Duncanma enabled auto-merge (squash) August 14, 2026 18:05
@Duncanma
Duncanma merged commit 239b093 into main Aug 14, 2026
11 checks passed
@Duncanma
Duncanma deleted the ai-cookbook-breadcrumbs-github-link branch August 14, 2026 18:20
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