clerk

Fredrik Meyer 2024-04-19T08:16:31.378289Z

In clerk, is there a way to pass "base path" to the build process? I couldn't find an argument to the build! function that does that. The links doesn't work when I serve it in a subdirectory (like this: https://fredrikmeyer.net/intro-clojure/)

Fredrik Meyer 2024-04-22T12:55:45.730339Z

Thanks! That looks like it is working.

Andrea 2024-04-22T12:56:22.040159Z

nice!

Andrea 2024-04-19T08:49:59.192139Z

if you use nextjournal.clerk/doc-url to link across documents, that should use relative paths (in the static build) see https://github.com/nextjournal/clerk/blob/eaf545898067dcaa9a2d6b5f0d525969ff5daa57/notebooks/document_linking.clj#L11-L16