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:
+10
-2
@@ -37,7 +37,7 @@ class PackagingTest(unittest.TestCase):
|
||||
shutil.copytree(ROOT, project, ignore=shutil.ignore_patterns(
|
||||
"build", "*.egg-info", "__pycache__", ".git", "tests", "docs", "examples", "dist", ".engine"))
|
||||
result = subprocess.run([sys.executable, "-m", "pip", "wheel", str(project), "--no-deps", "--no-build-isolation",
|
||||
"-q", "-w", str(Path(tmp) / "out")], capture_output=True, text=True, timeout=180)
|
||||
"-q", "-w", str(Path(tmp) / "out")], check=False, capture_output=True, text=True, timeout=180)
|
||||
wheels = glob.glob(f"{tmp}/out/*.whl")
|
||||
if result.returncode != 0 or not wheels:
|
||||
self.skipTest(f"wheel не собрался в этом окружении: {result.stderr[-200:]}")
|
||||
@@ -50,8 +50,16 @@ class PackagingTest(unittest.TestCase):
|
||||
"site_engine/web/admin/static/editor.js", "site_engine/web/admin/static/preview.js",
|
||||
"site_engine/web/admin/templates/document.html.j2", "site_engine/web/admin/templates/editor_result.html.j2",
|
||||
"site_engine/web/admin/templates/preview_result.html.j2", "site_engine/builtin/base.css",
|
||||
"site_engine/builtin/fragments/hero/template.html.j2"):
|
||||
"site_engine/builtin/fragments/marketing/hero/template.html.j2",
|
||||
"site_engine/builtin/containers.css", "site_engine/builtin/themes/v1/fonts.json",
|
||||
*(f"site_engine/builtin/themes/v1/{name}.json" for name in ("minimal", "dark", "editorial", "bold", "natural", "custom"))):
|
||||
self.assertIn(needed, names)
|
||||
fragment_files = {
|
||||
"site_engine/" + p.relative_to(PKG).as_posix()
|
||||
for p in (PKG / "builtin/fragments").rglob("*")
|
||||
if p.is_file() and p.suffix != ".pyc" and "__pycache__" not in p.parts
|
||||
}
|
||||
self.assertTrue(fragment_files.issubset(names), sorted(fragment_files - set(names)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user