From c42569b8d6b9ba1c7c2dfa772a0498cf44a53773 Mon Sep 17 00:00:00 2001 From: hayesall Date: Sun, 22 Oct 2023 13:23:10 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Drop=20references=20to=20extra?= =?UTF-8?q?=20css=20file,=20fix=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/book/init.rs | 3 --- src/renderer/html_handlebars/hbs_renderer.rs | 1 - src/theme/mod.rs | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/book/init.rs b/src/book/init.rs index 34dea2b7..faca1d09 100644 --- a/src/book/init.rs +++ b/src/book/init.rs @@ -144,9 +144,6 @@ impl BookBuilder { let mut variables_css = File::create(cssdir.join("variables.css"))?; variables_css.write_all(theme::VARIABLES_CSS)?; - let mut excludes_css = File::create(cssdir.join("exclude.css"))?; - excludes_css.write_all(theme::EXCLUDES_CSS)?; - let mut favicon = File::create(themedir.join("favicon.png"))?; favicon.write_all(theme::FAVICON_PNG)?; diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index f14abea6..8ea2f49e 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -244,7 +244,6 @@ impl HtmlHandlebars { write_file(destination, "css/print.css", &theme.print_css)?; } write_file(destination, "css/variables.css", &theme.variables_css)?; - write_file(destination, "css/exclude.css", &theme.excludes_css)?; if let Some(contents) = &theme.favicon_png { write_file(destination, "favicon.png", contents)?; } diff --git a/src/theme/mod.rs b/src/theme/mod.rs index fb3905ed..6e6b509d 100644 --- a/src/theme/mod.rs +++ b/src/theme/mod.rs @@ -21,7 +21,6 @@ pub static CHROME_CSS: &[u8] = include_bytes!("css/chrome.css"); pub static GENERAL_CSS: &[u8] = include_bytes!("css/general.css"); pub static PRINT_CSS: &[u8] = include_bytes!("css/print.css"); pub static VARIABLES_CSS: &[u8] = include_bytes!("css/variables.css"); -pub static EXCLUDES_CSS: &[u8] = include_bytes!("css/exclude.css"); pub static FAVICON_PNG: &[u8] = include_bytes!("favicon.png"); pub static FAVICON_SVG: &[u8] = include_bytes!("favicon.svg"); pub static JS: &[u8] = include_bytes!("book.js"); @@ -94,7 +93,6 @@ impl Theme { theme_dir.join("css/variables.css"), &mut theme.variables_css, ), - (theme_dir.join("css/exclude.css"), &mut theme.excludes_css), (theme_dir.join("highlight.js"), &mut theme.highlight_js), (theme_dir.join("clipboard.min.js"), &mut theme.clipboard_js), (theme_dir.join("highlight.css"), &mut theme.highlight_css),