Skip to content

SEO: JSON-LD structured data and improved title/description frontmatter#3157

Merged
samironsoctopus merged 5 commits into
mainfrom
seo/json-ld-structured-data
May 18, 2026
Merged

SEO: JSON-LD structured data and improved title/description frontmatter#3157
samironsoctopus merged 5 commits into
mainfrom
seo/json-ld-structured-data

Conversation

@samironsoctopus
Copy link
Copy Markdown
Contributor

Summary

  • Adds <script type="application/ld+json"> TechArticle structured data to all pages under /docs/installation/* and /docs/getting-started/*, scoped by URL pathname so child pages are correctly included
  • Updates .gitignore to exclude local Claude Code context files, writing guides, and audit working files from the repo
  • Rewrites title and description frontmatter for all 54 pages in those two sections: titles trimmed to ≤46 chars with a clear subject, descriptions expanded to 150–160 chars with active voice and a next-step CTA

Details

JSON-LD (JsonLd.astro) — new component added to HtmlHead.astro. Emits a TechArticle block with headline, description, datePublished, dateModified, inLanguage, publisher, and isPartOf. Scoping is by URL pathname (not navSection) so it works on child pages like /getting-started/first-deployment that don't inherit their parent's nav section.

Frontmatter — previous titles were generic ("SQL Database", "File Storage", "Samples") and descriptions ranged from 34–234 chars, most too short to render in a search snippet. All 54 pages now have specific, benefit-oriented titles and full-length descriptions following the Octopus writing style guide.

Test plan

  • Build the site locally and verify JSON-LD appears in <head> for /docs/installation, /docs/installation/requirements, and /docs/getting-started/first-deployment (a child page)
  • Confirm JSON-LD is absent on pages outside those sections (e.g. /docs/deployments)
  • Spot-check 3–5 pages in each section to confirm updated titles and descriptions render correctly in the browser tab and social/OG tags
  • Validate one JSON-LD block using Google's Rich Results Test

🤖 Generated with Claude Code

Sam Irons and others added 3 commits May 18, 2026 10:34
…started sections

Generates a Schema.org TechArticle JSON-LD block in <head> for all pages
under /docs/installation/* and /docs/getting-started/*. Scoped by URL path
so child pages are covered without requiring frontmatter changes. Maps
existing frontmatter fields (title, description, pubDate, modDate) to
standard Schema.org properties.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds gitignore patterns for CLAUDE.local.md, .claude/, /audit/,
*.audit.csv, and octopus-writing-guide.md so local working files
used with Claude Code are never accidentally committed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tting-started sections

Updated title and description fields across all 54 pages in /installation/* and
/getting-started/* to meet SEO targets: titles under 46 chars, descriptions
150-160 chars with active voice and a clear CTA. Previous titles were vague
(e.g. "SQL Database", "File Storage") and descriptions were too short to render
in search snippets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 18, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ KMajkrzakOctopus
❌ Sam Irons


Sam Irons seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@team-marketing-branch-protections
Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3157.z22.web.core.windows.net.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@steve-fenton-octopus steve-fenton-octopus requested review from KMajkrzakOctopus and tonykelly-octopus and removed request for BobJWalker May 18, 2026 06:11
Copy link
Copy Markdown
Contributor

@tonykelly-octopus tonykelly-octopus left a comment

Choose a reason for hiding this comment

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

LGTM

@team-marketing-branch-protections
Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3157.z22.web.core.windows.net.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@samironsoctopus samironsoctopus merged commit 284051a into main May 18, 2026
4 of 6 checks passed
@samironsoctopus samironsoctopus deleted the seo/json-ld-structured-data branch May 18, 2026 23:30
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.

5 participants