From 069d7e7090b82ef0216eafa0a8e5cd32ebdbe289 Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 8 Mar 2026 00:24:24 +0000 Subject: [PATCH] Consolidate CSSX docs: add delivery page, remove old CSS docs and plan Moved on-demand CSS delivery protocol from docs/css into /cssx/delivery, framed as one strategy among several. Removed the CSSX Components plan (now redundant with the top-level /cssx/ section). Co-Authored-By: Claude Opus 4.6 --- sx/sx/cssx.sx | 67 +++++++++++++++++++++++ sx/sx/docs-content.sx | 22 -------- sx/sx/nav-data.sx | 4 +- sx/sx/plans.sx | 124 ------------------------------------------ sx/sxc/pages/docs.sx | 3 +- 5 files changed, 69 insertions(+), 151 deletions(-) diff --git a/sx/sx/cssx.sx b/sx/sx/cssx.sx index 20e2d1b..19d2b0a 100644 --- a/sx/sx/cssx.sx +++ b/sx/sx/cssx.sx @@ -352,3 +352,70 @@ (li (strong "Live Streaming: ") "SSE and WebSocket transports push data to components. " "Style components react to that data like any other component — no separate style " "streaming protocol."))))) + + +;; --------------------------------------------------------------------------- +;; CSS Delivery +;; --------------------------------------------------------------------------- + +(defcomp ~cssx-delivery-content () + (~doc-page :title "CSS Delivery" + + (~doc-section :title "Multiple Strategies" :id "strategies" + (p "A CSSX component chooses its own styling strategy — and each strategy has its " + "own delivery path:") + (ul :class "list-disc pl-5 space-y-1 text-stone-700" + (li (strong "Tailwind classes: ") "Delivered via the on-demand protocol below. " + "The server ships only the rules the page actually uses.") + (li (strong "Inline styles: ") "No delivery needed — " (code ":style") " attributes " + "are part of the markup.") + (li (strong "Emitted " (code "