Add section title to AI Cookbook page titles - #5091
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📖 Docs PR preview linksThis PR does not change any pages in /docs. If you make updates, links to the modified pages will appear here. |
Duncanma
marked this pull request as ready for review
August 11, 2026 22:32
lennessyy
approved these changes
Aug 11, 2026
lennessyy
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<head><title>, so cookbook pages read e.g. "Tool calling agent | AI Cookbook | Temporal Platform Documentation" instead of the bare page title.ThemeProvider/TitleFormatter(src/theme/ThemeProvider/TitleFormatter/index.tsx), keyed by content-docs plugin id — currently justai-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.<Head><title>{title}</title></Head>inCookbookDocItem.tsxthat was rendered afterDocItemMetadataand silently clobbering the formatted title — this is why cookbook pages previously showed a bare title with no site suffix at all.Test plan
yarn build+yarn serve) that ai-cookbook leaf pages, the ai-cookbook landing page, and unrelated doc pages all render the correct<title>🤖 Generated with Claude Code
┆Attachments: EDU-6937 Add section title to AI Cookbook page titles