From 492d03fa0d1f3ba2919c64453307e390a84d31ec Mon Sep 17 00:00:00 2001 From: Andrew Dunham Date: Sat, 26 Oct 2024 22:26:58 -0400 Subject: [PATCH] various: clean up build 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 --- .gitignore | 2 ++ config.toml | 7 +++++++ public/.gitignore | 2 -- static/js/c2bda2230c7262de9e2a.wasm | 0 static/js/typst-auto-render.js | 0 5 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .gitignore delete mode 100644 public/.gitignore create mode 100644 static/js/c2bda2230c7262de9e2a.wasm create mode 100644 static/js/typst-auto-render.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ccfb68f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Output folder +/public diff --git a/config.toml b/config.toml index f2223ae..851226a 100644 --- a/config.toml +++ b/config.toml @@ -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 diff --git a/public/.gitignore b/public/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/public/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/static/js/c2bda2230c7262de9e2a.wasm b/static/js/c2bda2230c7262de9e2a.wasm new file mode 100644 index 0000000..e69de29 diff --git a/static/js/typst-auto-render.js b/static/js/typst-auto-render.js new file mode 100644 index 0000000..e69de29