feat(articles): publish marketing drafts at /articles - #100
Merged
Merged
Conversation
Adds landing-astro/scripts/sync-articles.mjs, which converts marketing/articles/karte drafts into Article-layout pages plus a generated content-pages/articles.mjs runtime module (metadata + bodies). The articles section plugs into existing contracts: /articles is a static public route, /articles/<slug> is a new 'article' parse kind so `.md` alternates and Accept: text/markdown negotiation flow through handlePublicRouteMarkdown -> /api/ai/markdown like every other public route, the edge serves Astro HTML from assets for /articles/*, and the sitemap enumerates the generated module. 'articles' joins both reserved first-segment sets so no profile can claim it. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
sarthakagrawal927
force-pushed
the
publish/articles
branch
from
September 20, 2026 07:44
67a57b0 to
9435aa1
Compare
2 tasks
sarthakagrawal927
added a commit
that referenced
this pull request
Sep 20, 2026
JSON.stringify output is never biome-clean, so every sync left the lint lane red until a manual format pass. Run `biome format --write` on the emitted module inside the sync script. Also regenerates articles.mjs — picks up the missing metadata entry for the accessibility-requirements article published via #100. Generated with [Devin](https://devin.ai) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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
landing-astro/scripts/sync-articles.mjsconvertsmarketing/articles/karte/drafts intolanding-astro/src/pages/articles/pages andcontent-pages/articles.mjs(metadata + bodies); strips working sections.layouts/Article.astro+/articlesindex + nav links (header/footer); article styling matches the changelog idiom./articlesjoinsSTATIC_PUBLIC_ROUTES;parsePublicHtmlPathgains anarticlekind so.mdalternates and markdown negotiation serve throughhandlePublicRouteMarkdown→/api/ai/markdown→renderPublicRouteMarkdown.worker.mjsserves/articles*from the ASSETS binding (catch-all no longer treats them as profile slugs);wrangler.jsoncrun_worker_firstcovers/articles+/articles/*;articlesis reserved in both segment sets.Test plan
pnpm --filter ./landing-astro exec astro build—/articles, article page emitted;@astrojs/sitemappicks them uppnpm test— 256 pass (contract tests extended for the article kind + asset routing)pnpm typecheck,biome check .,pnpm docs:check— cleanpnpm cf:buildoverlay verified in CIGenerated with Devin