From e0bfd8bd4991c898d008b433977a922e843ab354 Mon Sep 17 00:00:00 2001 From: Doan Luu Duc Tai Date: Sat, 31 Oct 2026 08:16:47 -0500 Subject: Version site CSS and hide tooltip text before styles load --- src/render.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/render.rs b/src/render.rs index 5171753..dea7e28 100644 --- a/src/render.rs +++ b/src/render.rs @@ -98,6 +98,8 @@ mod tests { assert!(!caddy.contains("do-not-publish")); let homepage = fs::read_to_string(output.join("web/index.html"))?; assert!(homepage.contains("https://git.example.net:8443")); + let stylesheet = files::hash_file(&root.path().join("web/styles.css"))?; + assert!(homepage.contains(&format!("/styles.css?v={stylesheet}"))); assert!(homepage.contains("https://chat.doan.luuduct.ai:8443/LIMITATIONS.txt")); settings.mode = Mode::Local; settings.port = 8180; -- cgit v1.2.3