Skip to content

Commit

Permalink
various: clean up build
Browse files Browse the repository at this point in the history
1. Don't copy large math files to the output directory since they're not
   used; we create an empty file to "shadow" the ones in the theme. See
   getzola/zola#2677 for more.
2. Move the .gitignore for public/ to the root since the directory is
   recreated by the 'zola serve' command.

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
  • Loading branch information
andrew-d committed Oct 27, 2024
1 parent 698ef62 commit 492d03f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Output folder
/public
7 changes: 7 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ taxonomies = [

theme = "serene"

# TODO: when the following issue is fixed, use this:
# https://github.com/getzola/zola/issues/2677
ignored_static = [
#"*/typst-auto-render.js",
#"*/c2bda2230c7262de9e2a.wasm",
]

[markdown]
# Code highlighting
highlight_code = true
Expand Down
2 changes: 0 additions & 2 deletions public/.gitignore

This file was deleted.

Empty file.
Empty file added static/js/typst-auto-render.js
Empty file.

0 comments on commit 492d03f

Please sign in to comment.