diff --git a/src/theme/head.hbs b/src/front-end/templates/head.hbs similarity index 100% rename from src/theme/head.hbs rename to src/front-end/templates/head.hbs diff --git a/src/theme/header.hbs b/src/front-end/templates/header.hbs similarity index 100% rename from src/theme/header.hbs rename to src/front-end/templates/header.hbs diff --git a/src/theme/index.hbs b/src/front-end/templates/index.hbs similarity index 100% rename from src/theme/index.hbs rename to src/front-end/templates/index.hbs diff --git a/src/theme/redirect.hbs b/src/front-end/templates/redirect.hbs similarity index 100% rename from src/theme/redirect.hbs rename to src/front-end/templates/redirect.hbs diff --git a/src/theme/toc.html.hbs b/src/front-end/templates/toc.html.hbs similarity index 100% rename from src/theme/toc.html.hbs rename to src/front-end/templates/toc.html.hbs diff --git a/src/theme/toc.js.hbs b/src/front-end/templates/toc.js.hbs similarity index 100% rename from src/theme/toc.js.hbs rename to src/front-end/templates/toc.js.hbs diff --git a/src/theme/mod.rs b/src/theme/mod.rs index b173bd4a..f18d3de4 100644 --- a/src/theme/mod.rs +++ b/src/theme/mod.rs @@ -13,12 +13,12 @@ use std::path::{Path, PathBuf}; use crate::errors::*; use log::warn; -pub static INDEX: &[u8] = include_bytes!("index.hbs"); -pub static HEAD: &[u8] = include_bytes!("head.hbs"); -pub static REDIRECT: &[u8] = include_bytes!("redirect.hbs"); -pub static HEADER: &[u8] = include_bytes!("header.hbs"); -pub static TOC_JS: &[u8] = include_bytes!("toc.js.hbs"); -pub static TOC_HTML: &[u8] = include_bytes!("toc.html.hbs"); +pub static INDEX: &[u8] = include_bytes!("../front-end/templates/index.hbs"); +pub static HEAD: &[u8] = include_bytes!("../front-end/templates/head.hbs"); +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");