diff --git a/src/theme/ayu-highlight.css b/src/front-end/css/ayu-highlight.css similarity index 100% rename from src/theme/ayu-highlight.css rename to src/front-end/css/ayu-highlight.css diff --git a/src/theme/css/chrome.css b/src/front-end/css/chrome.css similarity index 100% rename from src/theme/css/chrome.css rename to src/front-end/css/chrome.css diff --git a/src/theme/FontAwesome/css/font-awesome.min.css b/src/front-end/css/font-awesome.min.css similarity index 100% rename from src/theme/FontAwesome/css/font-awesome.min.css rename to src/front-end/css/font-awesome.min.css diff --git a/src/theme/css/general.css b/src/front-end/css/general.css similarity index 100% rename from src/theme/css/general.css rename to src/front-end/css/general.css diff --git a/src/theme/highlight.css b/src/front-end/css/highlight.css similarity index 100% rename from src/theme/highlight.css rename to src/front-end/css/highlight.css diff --git a/src/theme/css/print.css b/src/front-end/css/print.css similarity index 100% rename from src/theme/css/print.css rename to src/front-end/css/print.css diff --git a/src/theme/tomorrow-night.css b/src/front-end/css/tomorrow-night.css similarity index 100% rename from src/theme/tomorrow-night.css rename to src/front-end/css/tomorrow-night.css diff --git a/src/theme/css/variables.css b/src/front-end/css/variables.css similarity index 100% rename from src/theme/css/variables.css rename to src/front-end/css/variables.css diff --git a/src/theme/FontAwesome/fonts/FontAwesome.otf b/src/front-end/fonts/FontAwesome.otf similarity index 100% rename from src/theme/FontAwesome/fonts/FontAwesome.otf rename to src/front-end/fonts/FontAwesome.otf diff --git a/src/theme/FontAwesome/fonts/fontawesome-webfont.eot b/src/front-end/fonts/fontawesome-webfont.eot similarity index 100% rename from src/theme/FontAwesome/fonts/fontawesome-webfont.eot rename to src/front-end/fonts/fontawesome-webfont.eot diff --git a/src/theme/FontAwesome/fonts/fontawesome-webfont.svg b/src/front-end/fonts/fontawesome-webfont.svg similarity index 100% rename from src/theme/FontAwesome/fonts/fontawesome-webfont.svg rename to src/front-end/fonts/fontawesome-webfont.svg diff --git a/src/theme/FontAwesome/fonts/fontawesome-webfont.ttf b/src/front-end/fonts/fontawesome-webfont.ttf similarity index 100% rename from src/theme/FontAwesome/fonts/fontawesome-webfont.ttf rename to src/front-end/fonts/fontawesome-webfont.ttf diff --git a/src/theme/FontAwesome/fonts/fontawesome-webfont.woff b/src/front-end/fonts/fontawesome-webfont.woff similarity index 100% rename from src/theme/FontAwesome/fonts/fontawesome-webfont.woff rename to src/front-end/fonts/fontawesome-webfont.woff diff --git a/src/theme/FontAwesome/fonts/fontawesome-webfont.woff2 b/src/front-end/fonts/fontawesome-webfont.woff2 similarity index 100% rename from src/theme/FontAwesome/fonts/fontawesome-webfont.woff2 rename to src/front-end/fonts/fontawesome-webfont.woff2 diff --git a/src/theme/mod.rs b/src/theme/mod.rs index f18d3de4..a61587a4 100644 --- a/src/theme/mod.rs +++ b/src/theme/mod.rs @@ -19,26 +19,26 @@ pub static REDIRECT: &[u8] = include_bytes!("../front-end/templates/redirect.hbs pub static HEADER: &[u8] = include_bytes!("../front-end/templates/header.hbs"); pub static TOC_JS: &[u8] = include_bytes!("../front-end/templates/toc.js.hbs"); pub static TOC_HTML: &[u8] = include_bytes!("../front-end/templates/toc.html.hbs"); -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 CHROME_CSS: &[u8] = include_bytes!("../front-end/css/chrome.css"); +pub static GENERAL_CSS: &[u8] = include_bytes!("../front-end/css/general.css"); +pub static PRINT_CSS: &[u8] = include_bytes!("../front-end/css/print.css"); +pub static VARIABLES_CSS: &[u8] = include_bytes!("../front-end/css/variables.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"); +pub static JS: &[u8] = include_bytes!("../front-end/book.js"); pub static HIGHLIGHT_JS: &[u8] = include_bytes!("highlight.js"); -pub static TOMORROW_NIGHT_CSS: &[u8] = include_bytes!("tomorrow-night.css"); -pub static HIGHLIGHT_CSS: &[u8] = include_bytes!("highlight.css"); -pub static AYU_HIGHLIGHT_CSS: &[u8] = include_bytes!("ayu-highlight.css"); +pub static TOMORROW_NIGHT_CSS: &[u8] = include_bytes!("../front-end/css/tomorrow-night.css"); +pub static HIGHLIGHT_CSS: &[u8] = include_bytes!("../front-end/css/highlight.css"); +pub static AYU_HIGHLIGHT_CSS: &[u8] = include_bytes!("../front-end/css/ayu-highlight.css"); pub static CLIPBOARD_JS: &[u8] = include_bytes!("clipboard.min.js"); -pub static FONT_AWESOME: &[u8] = include_bytes!("FontAwesome/css/font-awesome.min.css"); -pub static FONT_AWESOME_EOT: &[u8] = include_bytes!("FontAwesome/fonts/fontawesome-webfont.eot"); -pub static FONT_AWESOME_SVG: &[u8] = include_bytes!("FontAwesome/fonts/fontawesome-webfont.svg"); -pub static FONT_AWESOME_TTF: &[u8] = include_bytes!("FontAwesome/fonts/fontawesome-webfont.ttf"); -pub static FONT_AWESOME_WOFF: &[u8] = include_bytes!("FontAwesome/fonts/fontawesome-webfont.woff"); +pub static FONT_AWESOME: &[u8] = include_bytes!("../front-end/css/font-awesome.min.css"); +pub static FONT_AWESOME_EOT: &[u8] = include_bytes!("../front-end/fonts/fontawesome-webfont.eot"); +pub static FONT_AWESOME_SVG: &[u8] = include_bytes!("../front-end/fonts/fontawesome-webfont.svg"); +pub static FONT_AWESOME_TTF: &[u8] = include_bytes!("../front-end/fonts/fontawesome-webfont.ttf"); +pub static FONT_AWESOME_WOFF: &[u8] = include_bytes!("../front-end/fonts/fontawesome-webfont.woff"); pub static FONT_AWESOME_WOFF2: &[u8] = - include_bytes!("FontAwesome/fonts/fontawesome-webfont.woff2"); -pub static FONT_AWESOME_OTF: &[u8] = include_bytes!("FontAwesome/fonts/FontAwesome.otf"); + include_bytes!("../front-end/fonts/fontawesome-webfont.woff2"); +pub static FONT_AWESOME_OTF: &[u8] = include_bytes!("../front-end/fonts/FontAwesome.otf"); /// The `Theme` struct should be used instead of the static variables because /// the `new()` method will look if the user has a theme directory in their