Fork me on GitHub
#clerk
<
2024-04-19
>
Fredrik Meyer08:04:31

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/)

Andrea08:04:59

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

Fredrik Meyer12:04:45

Thanks! That looks like it is working.