oni.git

oni

~ A static Git browser written in Rust.
git clone https://github.com/debuman/oni.git
commit ff740bf262231db55ab6482f638b93f3197bd764
parent 3fa4a9c590903ccbd50088ffacdb017dfa67dec5
Author: debuman <110329244+debuman@users.noreply.github.com>
Date: Thu, 12 Nov 2026 17:11:22 +0900

Remove unused transparent image assets

Diffstat:
MREADME.md | 6+++---
Mgenerator/src/html.rs | 3+--
Mscripts/build.py | 2+-
Mscripts/test_generator.py | 2+-
Dtheme/favicon.png | 0binary
Dtheme/logo.png | 0binary
6 files changed, 6 insertion(+), 7 deletion(-)

diff --git a/README.md b/README.md
@@ -193,9 +193,9 @@ use a pre-sanitization binary as a byte-equivalence baseline.
 
 ## Attribution and licenses
 
-Project code is licensed under MIT; see `LICENSE`. Notices for upstream stagit,
-the functional reference and source of the original default icons, are retained
-in `third-party/stagit-LICENSE`. MD4C's notice is retained in
+Project code is licensed under MIT; see `LICENSE`. Upstream stagit is a functional
+reference, and its notice is retained in `third-party/stagit-LICENSE`.
+MD4C's notice is retained in
 `third-party/md4c-LICENSE`. License files are copied into the generated site;
 no generator credit is displayed in the page footer.
 Cargo dependency license texts are retained in `third-party/cargo-LICENSES.txt`;
diff --git a/generator/src/html.rs b/generator/src/html.rs
@@ -104,8 +104,7 @@ fn document(title: &str, prefix: &str, feed: bool) -> String {
          <meta http-equiv=\"Content-Security-Policy\" content=\"{}\">\n\
          <meta name=\"referrer\" content=\"no-referrer\">\n\
          <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\
-         <title>{}</title>\n<link rel=\"stylesheet\" href=\"{prefix}style.css\">\n\
-         <link rel=\"icon\" type=\"image/png\" href=\"{prefix}favicon.png\">\n",
+         <title>{}</title>\n<link rel=\"stylesheet\" href=\"{prefix}style.css\">\n",
         escape(CSP.trim()),
         escape(title)
     );
diff --git a/scripts/build.py b/scripts/build.py
@@ -20,7 +20,7 @@ OWNER = "debuman"
 VERSION = "sqzer-stagit 0.1.0"
 SOURCE = ROOT / "generator"
 BINARY = CACHE / "cargo" / "release" / "sqzer-stagit"
-ASSETS = ("style.css", "logo.png", "favicon.png")
+ASSETS = ("style.css",)
 
 
 def run(*args, **kwargs):
diff --git a/scripts/test_generator.py b/scripts/test_generator.py
@@ -33,7 +33,7 @@ def assert_local_links(out):
             url = urlsplit(href)
             if url.scheme or url.netloc or not url.path:
                 continue
-            if url.path.endswith(("style.css", "favicon.png", "archive.tar.gz")):
+            if url.path.endswith(("style.css", "archive.tar.gz")):
                 continue
             assert (page.parent / unquote(url.path)).is_file(), (page, href)
 
diff --git a/theme/favicon.png b/theme/favicon.png
Binary files differ.
diff --git a/theme/logo.png b/theme/logo.png
Binary files differ.