Commit graph

23 commits

Author SHA1 Message Date
c5ac450f21 feat: dynamic page regeneration (#24)
the asset system is reworked to support "dynamic" entries, where each
entry is a separate file on disk containing the latest generation's
headers+raw+gzip+zstd. when calling view.regenerate, it will look for
pages that had "export const regenerate" during generation, and render
those pages using the view system, but then store the results as assets
instead of sending as a response.

pages configured as regenerable are also bundled as views, using the
non-aliasing key "page:${page.id}". this cannot alias because file
paths may not contain a colon.
2025-08-11 22:43:27 -07:00
11ce8149f9 fix: async.once was incorrectly written
closes #18
2025-08-02 22:30:53 -04:00
a8d7efe9ec chore: rework Clover Engine API, remove "SSR" term
"server side rendering" is a misleading term since it implies there is a
server. that isn't neccecarily the case here, since it supports running
in the browser. I think "clover engine" is cute, short for "clover html
rendering engine". Instead of "server side rendering", it's just rendering.

This commit makes things a lot more concise, such as `ssr.ssrAsync`
being renamed to `render.async` to play nicely with namespaced imports.
`getCurrentRender` and `setCurrentRender` are just `current` and
`setCurrent`, and the addon interface has been redesigned to force
symbols with a wrapping helper.
2025-08-02 22:22:07 -04:00
66da129036 rewrite incremental.ts (#21)
the problems with the original implementation was mostly around error
handling. sources had to be tracked manually and provided to each
incremental output. the `hasArtifact` check was frequently forgotten.
this has been re-abstracted through `incr.work()`, which is given an
`io` object. all fs reads and module loads go through this interface,
which allows the sources to be properly tracked, even if it throws.

closes #12
2025-08-02 20:56:36 -04:00
d9bf3c4161 setup source of truth server 2025-08-02 20:56:36 -04:00
f985a22b33 add "source of truth" server to replace the old cache url 2025-08-02 20:56:36 -04:00
756dbc7805 finish scan3 2025-08-02 20:56:36 -04:00
68b891a022 start the markdown parser 2025-08-02 20:56:36 -04:00
9f8c9fd3b6 format 2025-08-02 20:56:36 -04:00
60ee895d8d actually run ffmpeg fr fr 2025-08-02 20:56:36 -04:00
87253a4a27 stuff for file view 2025-08-02 20:56:36 -04:00
bb4e57000b get clo file viewer running 2025-08-02 20:56:36 -04:00
acefb22c6a finish q+a 2025-08-02 20:56:36 -04:00
da3d2ec6bb work on porting paperclover.net and also some tests 2025-08-02 20:56:36 -04:00
a41569983f incremental sitegen dev server! 2025-06-13 00:13:22 -07:00
d5ef829f01 fine grained incremental rebuilding 2025-06-11 00:17:58 -07:00
15a4600c48 clean up watching 2025-06-10 22:29:12 -07:00
925366e79e add a file watcher, live rebuild.
this is only verified functional on windows 7
2025-06-10 20:06:32 -07:00
c8b5e91251 almost implement views 2025-06-10 01:13:59 -07:00
a1d17a5d61 stuff 2025-06-09 21:13:51 -07:00
399ccec226 incremental generator 2025-06-09 00:12:41 -07:00
92ddecc37e more organize 2025-06-08 17:31:03 -07:00
0c5db556f1 primative backend support 2025-06-08 15:12:04 -07:00