Skip to content

Docs SEO Update: Phase 2 - #1148

Merged
brandonleekramer merged 4 commits into
mainfrom
docs-seo-phase-2
Dec 4, 2026
Merged

brandonleekramer merged 4 commits into
mainfrom
docs-seo-phase-2

Conversation

@brandonleekramer

Copy link
Copy Markdown
Member

Summary

Gives every docs page its own meta description and the homepage a keyword-led title, following the December 2026 SEO audit (graph-gtm-kit/internal/seo-audit/december-2026-audit/thegraph-seo-audit.md). Also fixes two content errors found while writing the descriptions.

Meta descriptions (audit finding 6)

  • 104 of 113 MDX pages had no description and fell back to the site default ("Browse the latest developer documentation including API reference, articles, and sample code"). Search results showed the same snippet for the quick start, the manifest reference, the glossary and nearly every other page. Each now has a description written from its own content: 110–160 characters, unique across the site, using the docs' product names. Front matter only.
  • Homepage: its front matter is built in [locale]/index.mdx from translations, so it now reads a new index.description string.
  • Network pages: the ~96 /supported-networks/<network>/ pages also used the default. [id].mdx now builds a description per network from its actual Subgraphs and Substreams support. The longest name in the registry ("Ethereum Sepolia Consensus Layer") yields 154 characters.
  • Two long descriptions shortened: testing-and-staging (175 → 155) and providers/overview (194 → 156), so search results don't cut them off.

Homepage title (audit finding 8)

  • New title: the tab title was "Home | Docs | The Graph", built from the nav label. It's now "The Graph Docs: Blockchain Data Indexing & Provider Tools", for both <title> and og:title, via a new index.seoTitle string and a front-matter seo override. The nav label stays "Home".

Content fixes

  • Agent0: the intro said the Subgraphs run on "five major networks" while the table lists nine deployments. It now names the five mainnets (Ethereum, Base, BSC, Polygon, Monad) and says four testnets.
  • Subgraph MCP for Cursor: the intro said the guide covers conversations "with Cline" (copied from the Cline page). It now says Cursor.

Notes for review

  • The descriptions are the main thing to review. The diff shows each one next to its page's title. They were drafted from each page's content. A few were written from component code (Supported Networks, Contracts), and gateways/subgraphs/ecosystem/chain-integrations describes a page that calls itself a work in progress.
  • Companion PR. The canonicals, structured data, sitemap and H1 fixes are in docs-seo-phase-1. On supported-networks.mdx, this PR's description sits after hideContentHeader so it doesn't collide with that PR's seo: override. The two merge cleanly in either order.

Testing

  • Descriptions: every MDX front matter parses (PyYAML). All 113 pages have a description of 160 characters or fewer, with no duplicates.
  • Rendered pages: in a dev server, with this branch merged onto docs-seo-phase-1:
    • Homepage: the new title, og:title and description.
    • Ethereum Mainnet: its generated description.
    • Supported Networks: its description together with the retitle from the other PR.
  • Code checks: prettier passes on all changed files.
  • Not run: a full production build/export. CI is the first one.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HpT75vHTnTdhKizaBwz8Yq

brandonleekramer and others added 4 commits December 3, 2026 19:37
104 of 113 docs pages had no `description` in their front matter, so
they all fell back to the site default ("Browse the latest developer
documentation including API reference, articles, and sample code").
Search results showed the same snippet for the quick start, the
manifest reference, the glossary and every other page, and link
previews said nothing about the page.

Each of those pages now has a description written from its own content:
110-160 characters, unique across the site, using the page's main search
terms and the docs' product names. Front matter only; no body changes.

Addresses finding 6 (shared, non-specific meta descriptions) of the
December 2026 SEO audit, applied to the docs:
graph-gtm-kit/internal/seo-audit/december-2026-audit/thegraph-seo-audit.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HpT75vHTnTdhKizaBwz8Yq
- Agent0: the intro said the Subgraphs run on "five major networks" while
  the table lists nine deployments. Name the five mainnets and the four
  testnets so the sentence matches the table.
- Subgraph MCP for Cursor: the intro said the guide is for conversations
  "with Cline", copied from the Cline page. It now says Cursor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HpT75vHTnTdhKizaBwz8Yq
…o long ones

Follow-up to the per-page descriptions, covering the pages front matter
can't reach and two that ran past what search results show:

- Homepage: its front matter is built in [locale]/index.mdx from the
  translations, so it fell back to the site default. It now reads a new
  index.description string.
- Supported network pages (/supported-networks/<network>/, one per
  network) also used the default. [id].mdx now builds a description per
  network from its real Subgraphs and Substreams support. The longest
  network name in the registry gives 154 characters.
- testing-and-staging and providers/overview: shortened from 175 and 194
  characters to 155 and 156 so search results don't cut them off.

Addresses finding 6 of the December 2026 SEO audit:
graph-gtm-kit/internal/seo-audit/december-2026-audit/thegraph-seo-audit.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HpT75vHTnTdhKizaBwz8Yq
The homepage's tab title was "Home | Docs | The Graph", built from the
nav title "Home", with no keywords and little to go on in search
results. It is now "The Graph Docs: Blockchain Data Indexing & Provider Tools",
set for both <title> and og:title through a new
index.seoTitle string and a front-matter `seo` override. The nav label
stays "Home".

Addresses finding 8 (brand-only homepage title) of the December 2026 SEO
audit, applied to the docs:
graph-gtm-kit/internal/seo-audit/december-2026-audit/thegraph-seo-audit.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HpT75vHTnTdhKizaBwz8Yq
@brandonleekramer
brandonleekramer merged commit 28519d2 into main Dec 4, 2026
4 checks passed
@brandonleekramer
brandonleekramer deleted the docs-seo-phase-2 branch December 4, 2026 14:43
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