Skip to content

Commit

Permalink
fix(cli): copy theme files
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Aug 27, 2023
1 parent 149446a commit 945d1a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 945d1a2

Please sign in to comment.