Skip to content

Add section title to AI Cookbook page titles - #5091

Merged
Duncanma merged 2 commits into
mainfrom
ai-cookbook-section-title
Aug 11, 2026
Merged

Add section title to AI Cookbook page titles#5091
Duncanma merged 2 commits into
mainfrom
ai-cookbook-section-title

Conversation

@Duncanma

@Duncanma Duncanma commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Inserts "AI Cookbook" between the page title and site title in <head><title>, so cookbook pages read e.g. "Tool calling agent | AI Cookbook | Temporal Platform Documentation" instead of the bare page title.
  • Implemented via a swizzled ThemeProvider/TitleFormatter (src/theme/ThemeProvider/TitleFormatter/index.tsx), keyed by content-docs plugin id — currently just ai-cookbook. Auto-skips the section segment when a page's own title already matches it, so the AI Cookbook landing page renders as "AI Cookbook | Temporal Platform Documentation" with no duplication.
  • Removes a redundant <Head><title>{title}</title></Head> in CookbookDocItem.tsx that was rendered after DocItemMetadata and silently clobbering the formatted title — this is why cookbook pages previously showed a bare title with no site suffix at all.

Test plan

  • Verified via production build (yarn build + yarn serve) that ai-cookbook leaf pages, the ai-cookbook landing page, and unrelated doc pages all render the correct <title>
  • Manually tested on deployed preview

🤖 Generated with Claude Code

┆Attachments: EDU-6937 Add section title to AI Cookbook page titles

Insert "AI Cookbook" between the page title and site title in <head>
so cookbook pages read e.g. "Tool calling agent | AI Cookbook |
Temporal Platform Documentation" instead of the bare page title. Also
removes a redundant <title> override in CookbookDocItem that was
clobbering the formatted title from DocItemMetadata.
@vercel

vercel Bot commented Aug 11, 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 11, 2026 10:32pm

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.

@Duncanma
Duncanma marked this pull request as ready for review August 11, 2026 22:32
@Duncanma
Duncanma requested a review from a team as a code owner August 11, 2026 22:32
@Duncanma
Duncanma merged commit 21f6ffb into main Aug 11, 2026
13 checks passed
@Duncanma
Duncanma deleted the ai-cookbook-section-title branch August 11, 2026 22:56
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