diff --git a/Cargo.toml b/Cargo.toml index 3922fc47..ffcf0a9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ build = "build.rs" include = ["data"] exclude = [ "book-example/*", - "data/html-template/_stylus", + "data/_html-template/_stylus", ] @@ -20,6 +20,7 @@ exclude = [ clap = "2.19.2" handlebars = { version = "0.23.0", features = ["serde_type"] } serde = "0.8" +serde_derive = "0.8" serde_json = "0.8" pulldown-cmark = "0.0.8" regex = "0.1" diff --git a/build.rs b/build.rs index b558bb18..89cc16cf 100644 --- a/build.rs +++ b/build.rs @@ -24,7 +24,7 @@ fn main() { // Compile stylus stylesheet to css let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); - let template_dir = Path::new(&manifest_dir).join("data/html-template/"); + let template_dir = Path::new(&manifest_dir).join("data/_html-template/"); let stylus_dir = template_dir.join("_stylus/book.styl"); if !Command::new("stylus") diff --git a/src/tests/book-minimal-with-assets/assets/html-template/_layouts/page.hbs b/data/_html-template/_layouts/page.hbs similarity index 96% rename from src/tests/book-minimal-with-assets/assets/html-template/_layouts/page.hbs rename to data/_html-template/_layouts/page.hbs index ec5a88ff..d8ec38de 100644 --- a/src/tests/book-minimal-with-assets/assets/html-template/_layouts/page.hbs +++ b/data/_html-template/_layouts/page.hbs @@ -53,6 +53,10 @@ +