From 995a3b058246c5a4f380d4423c133c7f61ded715 Mon Sep 17 00:00:00 2001 From: silentbat <34458627+silentbat@users.noreply.github.com> Date: Tue, 13 Apr 2021 14:31:55 +0200 Subject: [PATCH] add style.css to init when calling `snekdown init`, you should get a default (empty) style.css file now --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 14e26f5..6ed09c3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -128,6 +128,7 @@ fn init() { let manifest_path = PathBuf::from("Manifest.toml"); let bibliography_path = PathBuf::from("Bibliography.toml"); let glossary_path = PathBuf::from("Glossary.toml"); + let css_path = PathBuf::from("style.css"); if !manifest_path.exists() { let mut file = OpenOptions::new() @@ -145,6 +146,9 @@ fn init() { if !glossary_path.exists() { File::create("Glossary.toml".to_string()).unwrap(); } + if !css_path.exists() { + File::create("style.css".to_string()).unwrap(); + } } /// Watches a file with all of its imports and renders on change