Repository navigation
feat(docs): move the model pages into the docs and redirect /models there - #10757
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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
force-pushed
the
improvement/model-docs
branch
from
December 4, 2026 01:32
5333a0d to
ff554f0
Compare
waleedlatif1
marked this pull request as ready for review
December 5, 2026 00:47
This branch was successfully deployed
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
The website's
/modelspages move into the docs as a generated reference, at the same paths, and every oldsim.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/pricingand/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.<title>stays within 60 with the docs'| Sim Docssuffix.Generator
scripts/generate-model-docs.tswrites the reference fromapps/sim/providers/models.tsthrough the model catalog.bun run generate:model-docsregenerates the pages.check:model-docsfails when they are stale, andcheck:auditsruns it.app/(landing)/models/*.tstolib/model-catalog/, so it survives the landing extraction.Platform
(landing)/modelsroutes, components and OG images, and dropsmodelsfromLANDING_ROUTES.next.config.tspermanently redirects/modelsand/models/:path*tohttps://docs.sim.ai/models/.... Specific rules come ahead of the wildcard:/models/pricing-calculator→/models/pricing/models/token-counter→/models/tokensgpt-5-vs-claude-sonnet-4-5comparison → theclaude-sonnet-4-6onetest-landing-seo-e2e.tsnow asserts the redirects instead of the removed pages.Verification
/modelsURLs 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 todocs.sim.ai.bun run check:audits, includingcheck:model-docs,check:docs-manifest,check:unused-exports,check:source-conventionsandcheck:guidance-refsapps/simtype-checktype-check:scripts:esmcontent:generate,content:verify-compatibility,test,tscandnext buildapps/simvitest suiteslib/core/network/environment-proxy.server.test.ts. It needs a newer Node (tls.setDefaultCACertificates) and is unrelated to this change.Rollout
Merge and deploy docs before the platform image ships the redirects, or both together. Otherwise
/modelswould redirect to docs pages that are not deployed yet.🤖 Generated with Claude Code