summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 11:19:04 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 11:19:04 +0100
commit574655e57a3790c08659adc87d3a9c5a45da4f0d (patch)
tree0f654b8a34d002ca0088ce70d9a114678fbcac5b /crates
parent2ac8e530b8fb9ca4fa073e1e25a4230a83d99c5d (diff)
web: canonical trunk layout (index.html at crate root)
trunk resolves the crate manifest next to the entry HTML; with the entry in www/ it looked for www/Cargo.toml and failed. Move the entry to the crate root (standard trunk layout), keep style.css in www/.
Diffstat (limited to 'crates')
-rw-r--r--crates/gipfel-web/README.md3
-rw-r--r--crates/gipfel-web/Trunk.toml2
-rw-r--r--crates/gipfel-web/index.html (renamed from crates/gipfel-web/www/index.html)2
3 files changed, 3 insertions, 4 deletions
diff --git a/crates/gipfel-web/README.md b/crates/gipfel-web/README.md
index 2442e67..74e93c5 100644
--- a/crates/gipfel-web/README.md
+++ b/crates/gipfel-web/README.md
@@ -36,7 +36,8 @@ trunk build --release
| `src/app.rs` | root component: sidebar, file loading, state |
| `src/canvas_view.rs` | viewport canvas: bitmap blit, pan/zoom |
| `src/bridge.rs` | JS glue: image decode, blob read, canvas ctx |
-| `www/` | index.html, style.css (trunk assets) |
+| `index.html` | trunk entry point (canonical trunk layout) |
+| `www/style.css` | stylesheet (trunk asset) |
## Notes
diff --git a/crates/gipfel-web/Trunk.toml b/crates/gipfel-web/Trunk.toml
deleted file mode 100644
index 1772684..0000000
--- a/crates/gipfel-web/Trunk.toml
+++ /dev/null
@@ -1,2 +0,0 @@
-[build]
-target = "www/index.html"
diff --git a/crates/gipfel-web/www/index.html b/crates/gipfel-web/index.html
index c601fee..32ec87f 100644
--- a/crates/gipfel-web/www/index.html
+++ b/crates/gipfel-web/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>gipfel web</title>
- <link data-trunk rel="css" href="style.css" />
+ <link data-trunk rel="css" href="www/style.css" />
<link data-trunk rel="rust" />
</head>
<body></body>