clerk

hlship 2024-02-02T20:28:19.151559Z

Has there been a discussion about nextjournal.clerk.home/!notebooks? Essentially, in my project, it's finding files I don't want to be notebooks. Even though I (reset! home/!notebooks (map str (fs/glob "src/datomic_tutorial" "**.{clj,md}"))), that doesn't take; something keeps resetting it to the default set (of too many files).

Andrea 2024-02-05T09:49:29.405759Z

@hlship the atom home/!notebooks is reset at every clerk/show! (to catch new files I guess). What you can do is change how the files are retrieved via an alter-var-root of the home/glob-notebooks function no sorry that doesn’t make sense either.

mkvlr 2024-02-02T20:33:44.462889Z

you can currently only disable the homepage completely by setting :paths. Agree it would be good to support customization of what gets displayed on the homepage. Feel free to open an issue to track this if you don’t mind.

hlship 2024-02-02T20:29:59.364989Z

It would be nice if there was an option on clerk/serve! to control what files are actually notebooks for the home page.

Andrea 2024-02-05T09:41:29.169339Z

Hi @hlship you can actually pass :paths and to clerk/serve!, that will disable the homepage as you know it and will use the list view with the provided files (same as in the static build) or a custom index via the :index option.

Andrea 2024-02-05T09:42:37.328239Z

sorry, didn’t see your conversation with @mkvlr