add style.css to init

when calling `snekdown init`, you should get a default (empty) style.css file now
pull/22/head
silentbat 4 years ago committed by GitHub
parent 8181119f4a
commit 995a3b0582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save