Skip to content

feat(docs): add code comparison page with create a route example - #450

Open
dreyfus92 wants to merge 1 commit into
e18e:mainfrom
dreyfus92:feat/code-comparison
Open

feat(docs): add code comparison page with create a route example#450
dreyfus92 wants to merge 1 commit into
e18e:mainfrom
dreyfus92:feat/code-comparison

Conversation

@dreyfus92

@dreyfus92 dreyfus92 commented Sep 6, 2026

Copy link
Copy Markdown
Member

adds a code comparison page with the first example, create a route, for the 8 starters. one markdown file per framework under content/code-comparison/<example>/<framework>.md, every fenced block is the full file at its title= path so you can drop them into a fresh starter and it just works.

file-cc851ef47f60389205dee75a4ef57b98

tabs use the framework logos instead of names. the logo map moved to lib/framework-logos.ts and the home cards use it too, so the light-mode css hacks are gone.

things I hit while toying with this:

  • starlight's TabItem only takes a text label, so the tab strip is a tiny custom element.
  • a misnamed snippet file fails astro check, so a typo won't slip through ci. a missing one just shows a placeholder tab.
  • nuxt's starter has no pages/, so its snippet swaps app.vue for <NuxtPage />.

every snippet was verified by writing it into a fresh starter, running pnpm dev and hitting /about and /posts/1.

the rest of the examples from the issue can be their own issues 😄

related: #111

@43081j 43081j left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

seems good to me!

i don't know enough without digging deeper to review the individual code snippets, but the overall change seems good.

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