| 1 |
Description: Remove code embedding Files-Excluded |
| 2 |
Forwarded: not-needed |
| 3 |
Author: Blair Noctis <[email protected]> |
| 4 |
Last-Update: 2025-07-23 |
| 5 |
--- |
| 6 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 7 |
--- a/crates/mdbook-html/src/theme/mod.rs |
| 8 |
+++ b/crates/mdbook-html/src/theme/mod.rs |
| 9 |
@@ -9 +9 @@ |
| 10 |
-pub(crate) mod fonts; |
| 11 |
+//pub(crate) mod fonts; |
| 12 |
@@ -185,2 +185,2 @@ |
| 13 |
- fs::write(themedir.join("fonts").join("fonts.css"), fonts::CSS)?; |
| 14 |
- for (file_name, contents) in fonts::LICENSES { |
| 15 |
+ //fs::write(themedir.join("fonts").join("fonts.css"), fonts::CSS)?; |
| 16 |
+ #[cfg(any())] for (file_name, contents) in fonts::LICENSES { |
| 17 |
@@ -189 +189 @@ |
| 18 |
- for (file_name, contents) in fonts::OPEN_SANS.iter() { |
| 19 |
+ #[cfg(any())] for (file_name, contents) in fonts::OPEN_SANS.iter() { |
| 20 |
@@ -192 +192 @@ |
| 21 |
- fs::write( |
| 22 |
+ #[cfg(any())] fs::write( |
| 23 |
--- a/crates/mdbook-html/src/html_handlebars/static_files.rs |
| 24 |
+++ b/crates/mdbook-html/src/html_handlebars/static_files.rs |
| 25 |
@@ -64 +64 @@ |
| 26 |
- if theme.fonts_css.is_none() { |
| 27 |
+ #[cfg(any())] if theme.fonts_css.is_none() { |