From 945d1a2e9f8f6e305d08972335ffe592502569e4 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Sun, 27 Aug 2023 14:20:22 +0800 Subject: [PATCH] fix(cli): copy theme files --- cli/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cli/src/main.rs b/cli/src/main.rs index aa0bc99..0b4e435 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -152,6 +152,14 @@ Sample page .unwrap() .replace("/contrib/typst/gh-pages.typ", &page_template), )?; + write_file( + dir.join("templates/theme-style.toml"), + include_bytes!("../../contrib/typst/theme-style.toml"), + )?; + write_file( + dir.join("templates/tokyo-night.tmTheme"), + include_bytes!("../../contrib/typst/tokyo-night.tmTheme"), + )?; serve(ServeArgs { compile: args.compile,