Add Site Studio themes and Theme Manager

Support categorized fragments, theme presets, block widths, and server-backed theme editing with onboarding and preview.

Include Site Studio, design sources, specification and verification reports; remove the legacy studio-site example.
This commit is contained in:
2026-11-13 14:04:49 +03:00
parent 231490bb7c
commit 0d171915d7
408 changed files with 11812 additions and 550 deletions
+2 -2
View File
@@ -58,10 +58,10 @@ class SecurityTest(SiteTestCase):
from site_engine.build.pipeline import build_site
from site_engine.errors import EngineError
self.edit("site.yaml", "color.dark: '#14213d'", "color.dark: 'red; } body { display:none'")
self.edit("theme.yaml", "hero_dark: '#14213d'", "hero_dark: 'red; } body { display:none'")
with self.assertRaises(EngineError) as ctx:
build_site(self.site, self.out, now=NOW)
self.assertIn("E_THEME_TOKEN", ctx.exception.report.codes())
self.assertIn("E_THEME_COLOR", ctx.exception.report.codes())
def test_duplicate_fragment_id_cannot_shadow_builtin(self):
self.write("fragments/mine/hero/fragment.yaml", "id: hero\nname: Мой hero\nfields: []\n")