sveltejs / sites

Monorepo for the sites in the Svelte ecosystem
https://svelte.dev
MIT License
286 stars 123 forks source link

prerender `/blog` from markdown in this repo #413

Closed Rich-Harris closed 1 year ago

Rich-Harris commented 1 year ago

Currently, content on https://svelte.dev is served via an API that sits in front of a Cloudflare KV store that is populated by a GitHub action that runs when you merge stuff to master on sveltejs/svelte.

This is absolute madness. Among other things, it makes previewing stuff locally impossible (to a first approximation). We're also leaving performance on the table by not prerendering this stuff.

I'd like to move all the content into this repo, but for now I just did blog posts as that's what I'm currently concerned with. The markdown processing logic should eventually be moved to site-kit.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
hn ✅ Ready (Inspect) Visit Preview Dec 14, 2022 at 2:10PM (UTC)
svelte-dev 🔄 Building (Inspect) Dec 14, 2022 at 2:10PM (UTC)
Rich-Harris commented 1 year ago

It's a heavily simplified version of the code that powers the kit.svelte.dev docs (simplified because we don't need shiki-twoslash and all that jazz)