From 9ce3996569364ba5f622654135b0e2b7f15166b4 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sun, 25 May 2025 18:11:42 -0700 Subject: [PATCH] Clean up --- README.md | 18 +++++++++++++++++- html/.gitignore | 1 + site.moon | 2 -- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7931d97..8341fc9 100644 --- a/README.md +++ b/README.md @@ -74,9 +74,17 @@ Visit `localhost:8080` in web browser $ make lint +### print out pygments styles + + $ pygmentize -S STYLE -f formatter + +example: + + $ pygmentize -S default -f html + ## gotchas -### What is `cosmo failed: [string "..."]:62: cannot resume dead coroutine`? +### What is error `cosmo failed: [string "..."]:62: cannot resume dead coroutine`? If you call `cosmo.yield`, your function **must** return `nil`! If you forget to return `nil`, you will see this cryptic error: @@ -84,6 +92,14 @@ to return `nil`, you will see this cryptic error: Error: index.html -> html/index.html: cosmo failed: [string "..."]:62: cannot resume dead coroutine make: *** [Makefile:6: build] Error 1` +### What is error `calling 'load_cache' on bad self`? + + moon: .../local/openresty/luajit/share/lua/5.1/sitegen/common.lua:41: + /usr/local/openresty/luajit/share/lua/5.1/sitegen/cache.lua:99: calling + 'load_cache' on bad self (table expected, got userdata) stack traceback: + +Delete your `.sitegen_cache` file. + ## todo * draft documents diff --git a/html/.gitignore b/html/.gitignore index 9210aa0..5482e68 100644 --- a/html/.gitignore +++ b/html/.gitignore @@ -1,5 +1,6 @@ app.css index.html +moonscript.css posts/build-a-neovim-qt-appimage-from-source.html posts/build-static-website-generator-part-1.html posts/deploy-elixir-generated-html-with-docker-on-digitalocean.html diff --git a/site.moon b/site.moon index ef55aee..04a8cc8 100644 --- a/site.moon +++ b/site.moon @@ -127,7 +127,5 @@ sitegen.create => moonscript_header = header\gsub "%.%.%.", "}" moonscript_header - copy "moonscript.py" - copy "pygments.lua" copy "app.css" copy "moonscript.css"