36a0bd8577
Move sx docs markup from Python to .sx files (Phase 2)
...
Migrate ~2,500 lines of SX markup from Python string concatenation in
essays.py to proper .sx defcomp definitions:
- docs-content.sx: 8 defcomps for docs pages (intro, getting-started,
components, evaluator, primitives, css, server-rendering, home)
- protocols.sx: 6 defcomps for protocol documentation pages
- essays.sx: 9 essay defcomps (pure content, no params)
- examples.sx: template defcomp receiving data values, calls highlight
internally — Python passes raw code strings, never SX
- reference.sx: 6 defcomps for data-driven reference pages
essays.py reduced from 2,699 to 619 lines. Docs/protocol/essay
functions become one-liners returning component names. Example functions
use sx_call to pass data values to the template. Reference functions
pass data-built component trees via SxExpr.
renders.py: removed _code, _example_code, _placeholder,
_clear_components_btn (now handled by .sx templates).
helpers.py: removed inline hero code building, uses ~sx-home-content.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-05 00:22:17 +00:00
7fda7a8027
Replace env free-variable threading with IO-primitive auto-fetch macros
...
Build and Deploy / build-and-deploy (push) Successful in 1m38s
Layout components now self-resolve context (cart-mini, auth-menu, nav-tree,
rights, URLs) via new IO primitives (root-header-ctx, select-colours,
account-nav-ctx, app-rights) and defmacro wrappers (~root-header-auto,
~auth-header-row-auto, ~root-mobile-auto). This eliminates _ctx_to_env(),
HELPER_CSS_CLASSES, and verbose :key threading across all 10 services.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-04 18:20:57 +00:00
5344b382a5
Slim events + sx sxc/pages/__init__.py → registration-only
...
Events: 3861 → 21 lines, split into 8 sub-modules (renders, helpers,
layouts, calendar, entries, slots, tickets, utils). Updated 16 bp routes.
SX Docs: 3224 → 27 lines, split into 5 sub-modules (renders, utils,
essays, helpers, layouts). Updated 37 import sites in bp/pages/routes.py.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-04 17:07:08 +00:00