Closed respatialized closed 9 months ago
Hey, I just tried using this in deps.edn instead:
:deps {io.github.nextjournal/clerk {:mvn/version "0.14.919"}}
It's an older version on maven but it seems to not have this issue you mention. I had the same issue on the current maven version (0.15.957).
Hope that fixes it for you too until someone can find what causes the issue. My Clojure chops aren't enough to fix this at the minute.
This issue no longer reproduces as of current main c741fcd021c333d6d3fb2ba000cc04bb5d3e8251.
Overview
When clicking certain links in a notebook, I get bounced back to a missing index page, which also appears to invalidate the cache for that notebook.
Reproducible example
Data from kaggle, presumed to be in the relevant path.
cache_issue.clj
deps.edn
To reproduce
clerk/serve!
clerk/show!
No :nextjournal/clerk alias found in deps.edn. Learn how to set up your static build.
clerk/show!
this should take several seconds, indicating that the cache isn't being used.I previously also observed this index issue when clicking TOC links, but cannot reproduce that issue with the above commit.
Expected behavior
I would like to stay on the same notebook page. Even if the cache still worked getting bounced to a nonexistent index page is confusing behavior that makes it harder to iterate on a notebook. Previous versions of Clerk did not exhibit this behavior.
Please let me know if you need me to elaborate or contextualize further.