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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user