feat(pages-template): add SEO + JSON-LD per Google AI Search guide#482
Merged
Conversation
Applies the same actionable items from Google's AI optimization guide (https://developers.google.com/search/docs/fundamentals/ai-optimization-guide) that we just shipped for arckit.org to the per-project documentation sites generated by /arckit:pages. Currently the template's <head> is generic — title "Project Documentation - ArcKit", description "Project documentation generated by ArcKit", no OG/Twitter cards, no structured data. Google's AI indexer therefore can't tell one ArcKit-generated docsite from another. Template changes (pages-template.html, in lock-step in arckit-claude/ and .arckit/): - Project-specific title + meta description using {{REPO}}. - author meta using new {{REPO_OWNER}} placeholder. - OpenGraph + Twitter (summary) cards — no og:url / og:image since the docsite URL isn't known at template-fill time (custom domains exist and we'd rather omit than guess wrong). - JSON-LD @graph with three nodes wired by @id: - Organization for the repo owner. - SoftwareSourceCode pointing at codeRepository. - WebSite naming "{REPO} Architecture Documentation" with publisher → Organization and about → SoftwareSourceCode. Hook change (arckit-claude/hooks/sync-guides.mjs): - New {{REPO_OWNER}} substitution mirroring the existing {{REPO}}/{{REPO_URL}}/{{CONTENT_BASE_URL}}/{{VERSION}} block. Backed by repoInfo.owner which parseRepoInfo() already extracts from .git/config. Converter propagated to arckit-codex, arckit-copilot, arckit-opencode, arckit-paperclip (arckit-gemini/templates is gitignored). Verified the substituted output parses as valid JSON-LD with three @graph nodes and leaves no unresolved {{...}} placeholders. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Companion to #481 — applies the same Google AI Search optimization items to the per-project docsites generated by
/arckit:pages. Until now every generated site shared the same generic<head>(<title>Project Documentation - ArcKit</title>, description "Project documentation generated by ArcKit", no OG/Twitter, no structured data), so Google's AI indexer couldn't distinguish one ArcKit-generated site from another.Template (
pages-template.html, in lock-step inarckit-claude/and.arckit/)<title>and meta description using{{REPO}}.authormeta using new{{REPO_OWNER}}placeholder.summarycards. Noog:url/og:image— the site URL isn't known at template-fill time (custom domains exist) and Google would rather we omit than guess wrong.@graphwith three nodes wired by@id:Organizationfor the repo owner.SoftwareSourceCodewithcodeRepository: {{REPO_URL}}.WebSitewithpublisher→ Organization andabout→ SoftwareSourceCode.Hook (
arckit-claude/hooks/sync-guides.mjs){{REPO_OWNER}}substitution mirroring the existing{{REPO}}/{{REPO_URL}}/{{CONTENT_BASE_URL}}/{{VERSION}}block. Backed byrepoInfo.ownerwhichparseRepoInfo()already extracts from.git/config.Converter propagated to
arckit-codex,arckit-copilot,arckit-opencode,arckit-paperclip(arckit-gemini/templates/is gitignored).Verification
owner=tractorjuice,repo=arckit-test-project-v9): JSON-LD parses with three@graphnodes; no unresolved{{...}}placeholders remain.markdownlint-cli2 'docs/*.md'clean (no markdown changed in this PR).Test plan
/arckit:pagesand confirm the generateddocs/index.html<head>shows project-specific title, meta description, and JSON-LD withOrganization/SoftwareSourceCode/WebSite.🤖 Generated with Claude Code