Skip to content

feat(docs): move the model pages into the docs and redirect /models there - #10757

Merged
waleedlatif1 merged 1 commit into
stagingfrom
improvement/model-docs
Dec 5, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
improvement/model-docs

Conversation

@emir-karabeg

Copy link
Copy Markdown
Collaborator

Summary

The website's /models pages move into the docs as a generated reference, at the same paths, and every old sim.ai/models/* URL permanently redirects to its docs page in one hop. This is the "publish Sim docs first, including generated model references" step the marketing-site cutover depends on: the new static site (simstudioai/site) does not serve /models, so these pages need a home before it goes live.

Docs (apps/docs/content/docs/models, 480 generated files)

  • /models: the directory, with providers, cloud hosts, dynamic-catalog providers and the head-to-head comparisons.
  • /models/{provider} (26) and /models/{provider}/{model} (375): specifications, per-token pricing with long-context tiers, capabilities, lifecycle (current, superseded or retired) with a successor, related models, comparisons, and FAQ.
  • /models/compare/{pair} (47): the computed verdict, a side-by-side table, and FAQ.
  • /models/context-windows, plus /models/pricing and /models/tokens. The interactive pricing calculator and token counter would need client islands the docs architecture does not allow, so they become static reference pages.
  • Titles and descriptions come from the same catalog helpers the website pages used. The title budget is now 49 characters, so <title> stays within 60 with the docs' | Sim Docs suffix.

Generator

  • scripts/generate-model-docs.ts writes the reference from apps/sim/providers/models.ts through the model catalog.
  • bun run generate:model-docs regenerates the pages. check:model-docs fails when they are stale, and check:audits runs it.
  • The catalog moves from app/(landing)/models/*.ts to lib/model-catalog/, so it survives the landing extraction.

Platform

  • Removes the (landing)/models routes, components and OG images, and drops models from LANDING_ROUTES.
  • next.config.ts permanently redirects /models and /models/:path* to https://docs.sim.ai/models/.... Specific rules come ahead of the wildcard:
    • /models/pricing-calculator → /models/pricing
    • /models/token-counter → /models/tokens
    • the retired gpt-5-vs-claude-sonnet-4-5 comparison → the claude-sonnet-4-6 one
  • The sitemap no longer lists model URLs; the docs sitemap does. The footer and llms.txt link the docs pages directly.
  • The changelog link still decorates model links with provider icons, now on both hosts.
  • test-landing-seo-e2e.ts now asserts the redirects instead of the removed pages.
  • Two copy fixes in the catalog: "an Anthropic/OpenAI/xAI model", and the first FAQ answer no longer repeats the summary.

Verification

  • All 452 /models URLs the live site has published, taken from its sitemap, map to a generated docs page. The production docs build serves each with 200 and lists it in the docs sitemap, and each page canonicalizes to docs.sim.ai.
  • Every redirect was checked against Next's route matcher, including the three renamed paths. Each is a 308 to the right docs URL in one hop.
  • These all passed:
    • bun run check:audits, including check:model-docs, check:docs-manifest, check:unused-exports, check:source-conventions and check:guidance-refs
    • apps/sim type-check
    • type-check:scripts:esm
    • Biome on every changed file
    • docs content:generate, content:verify-compatibility, test, tsc and next build
    • related apps/sim vitest suites
  • The only failure in the vitest run is lib/core/network/environment-proxy.server.test.ts. It needs a newer Node (tls.setDefaultCACertificates) and is unrelated to this change.
  • Not run locally: the landing SEO e2e against a production platform build. CI runs it.

Rollout

Merge and deploy docs before the platform image ships the redirects, or both together. Otherwise /models would redirect to docs pages that are not deployed yet.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Dec 4, 2026 1:38am UTC

Request Review

…here

The website's /models pages become a generated reference in the docs, at the
same paths: the directory, 26 provider pages, 375 model pages, 47 head-to-head
comparisons and the context window comparison. The interactive pricing
calculator and token counter become static pricing and tokens pages.

- scripts/generate-model-docs.ts writes apps/docs/content/docs/models from the
  platform catalog; check:model-docs keeps it current through check:audits.
- The catalog moves from app/(landing)/models to lib/model-catalog; the
  platform's model routes, components and OG images are removed.
- next.config permanently redirects /models and /models/* to docs.sim.ai in
  one hop, including the renamed calculator, token counter and retired Sonnet
  comparison.
- The sitemap drops model URLs (the docs publish their own), llms.txt and the
  footer link the docs, and the SEO e2e asserts the redirects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emir-karabeg
emir-karabeg force-pushed the improvement/model-docs branch from 5333a0d to ff554f0 Compare December 4, 2026 01:32
@waleedlatif1
waleedlatif1 marked this pull request as ready for review December 5, 2026 00:47
@waleedlatif1
waleedlatif1 requested a review from a team as a code owner December 5, 2026 00:47
@waleedlatif1
waleedlatif1 merged commit 3bba4d4 into staging Dec 5, 2026
167 of 169 checks passed
@waleedlatif1
waleedlatif1 deleted the improvement/model-docs branch December 5, 2026 00:48

This branch was successfully deployed

1 active deployment
Preview — ff554f06 Deployed Dec 4, 2026 by vercel[bot]
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