Merge branch 'main' into develop

develop
trivernis 3 years ago
commit 659ca55e2c
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -128,6 +128,7 @@ fn init() {
let manifest_path = PathBuf::from("Manifest.toml"); let manifest_path = PathBuf::from("Manifest.toml");
let bibliography_path = PathBuf::from("Bibliography.toml"); let bibliography_path = PathBuf::from("Bibliography.toml");
let glossary_path = PathBuf::from("Glossary.toml"); let glossary_path = PathBuf::from("Glossary.toml");
let css_path = PathBuf::from("style.css");
if !manifest_path.exists() { if !manifest_path.exists() {
let mut file = OpenOptions::new() let mut file = OpenOptions::new()
@ -145,6 +146,9 @@ fn init() {
if !glossary_path.exists() { if !glossary_path.exists() {
File::create("Glossary.toml".to_string()).unwrap(); 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 /// Watches a file with all of its imports and renders on change

Loading…
Cancel
Save