Skip to content

Commit b5606b9

Browse files
authored
Website workbench polish (#40)
* chore(website): prune gallery presets * fix(website): improve workbench import handling * docs(website): refresh metadata and demos --------- Co-authored-by: agustin-littlehat <minotopo@gmail.com>
1 parent a0c74fa commit b5606b9

32 files changed

Lines changed: 353 additions & 91 deletions

bench/notes/BENCH.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ node bench/lossy-optimizer-bench.mjs --json bench/results/lossy-optimizer.json
4141
node bench/lossy-optimizer-bench.mjs --models ducky,shark,bicycle
4242
node bench/lossy-corpus-bench.mjs --root /tmp/polycss-model-corpus --json /tmp/polycss-temp-corpus.json
4343
node bench/lossy-corpus-bench.mjs --from-json bench/results/lossy-corpus.json --opportunities
44-
node .agents/skills/chrome-trace/scripts/trace.mjs motion --mesh garden --runs 3 --dom-samples --report --markdown-out bench/results/garden-trace.md
4544
node bench/perf-visual.mjs --mesh chicken --tolerance 0.005
4645
node bench/nonvoxel-rotation-bench.mjs --models teapot,bicycle --variants baseline,order-tile4 --run-order round-robin
4746
node .agents/skills/chrome-trace/scripts/trace.mjs drag --mesh teapot --degrees 360 --drag-ms 1500 --label teapot-drag --frame-details --no-print-json

bench/notes/PERF_INVESTIGATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ node bench/nonvoxel-visual-compare.mjs
7272
| Standard perf | `chicken`, `rock1`, `saucer` | Cross-renderer and dynamic-light smoke. |
7373
| Non-voxel rotation | `chicken`, `rock1`, `saucer`, `teapot`, `ducky`, `elephant`, `policecar`, `bicycle` | Broad baked camera-rotation triage. |
7474
| Voxel GPU-hard | `AncientCrashSite`, `skyscraper`, long-window `army` | Current target class for voxel renderer work. |
75-
| Voxel counterexamples | `obj_house3`, `scene_mechanic2`, `Treasure`, `desert2`, `Garden` | Catch order, wrapper, and backend-specific false positives. |
75+
| Voxel counterexamples | `obj_house3`, `scene_mechanic2`, `Treasure`, `desert2` | Catch order, wrapper, and backend-specific false positives. |
7676

7777
## Current Baselines
7878

bench/perf-shared.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ export const PRESETS = {
7373
options: { targetSize: 60, gridShift: 0 },
7474
zoom: 0.4, rotX: 65, rotY: 45,
7575
},
76-
"garden": {
77-
url: "/gallery/vox/Garden.vox",
78-
options: { targetSize: 60, gridShift: 0 },
79-
zoom: 0.4, rotX: 65, rotY: 45,
80-
},
8176
"mecha-golem": {
8277
url: "/gallery/vox/MechaGolem.vox",
8378
options: { targetSize: 60, gridShift: 0 },

website/astro.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ export default defineConfig({
4444
starlight({
4545
title: 'PolyCSS',
4646
description: 'A CSS polygon mesh engine. DOM-native 3D rendering.',
47+
favicon: '/favicon.ico',
48+
head: [
49+
{ tag: 'meta', attrs: { property: 'og:image', content: 'https://polycss.com/polycss-github.png' } },
50+
{ tag: 'meta', attrs: { property: 'og:image:width', content: '1280' } },
51+
{ tag: 'meta', attrs: { property: 'og:image:height', content: '640' } },
52+
{ tag: 'meta', attrs: { property: 'og:image:alt', content: 'PolyCSS logo, a rendered polygon duck, and DOM markup.' } },
53+
{ tag: 'meta', attrs: { name: 'twitter:image', content: 'https://polycss.com/polycss-github.png' } },
54+
{ tag: 'meta', attrs: { name: 'twitter:image:alt', content: 'PolyCSS logo, a rendered polygon duck, and DOM markup.' } },
55+
],
4756
disable404Route: true,
4857
components: {
4958
Header: './src/components/DocsHeader.astro',
-1.99 MB
Binary file not shown.
-645 KB
Binary file not shown.
-850 KB
Binary file not shown.
-1.85 MB
Binary file not shown.

website/public/gallery/vox-manifest.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"vox/chr_zombie4.vox",
5757
"vox/christmas_tree.vox",
5858
"vox/couch.vox",
59-
"vox/desert.vox",
6059
"vox/desert2.vox",
6160
"vox/dog.vox",
6261
"vox/door.vox",
@@ -68,7 +67,6 @@
6867
"vox/floooh/kc85-computer.vox",
6968
"vox/floooh/kc85-keyboard.vox",
7069
"vox/floooh/lcr-c.vox",
71-
"vox/Garden.vox",
7270
"vox/gifts.vox",
7371
"vox/horse.vox",
7472
"vox/house.vox",
-159 KB
Binary file not shown.

0 commit comments

Comments
 (0)