#24 renames the clj-kondo hooks to have extension .clj_kondo, for the same
reason as #23.
#23 renames .clj and .cljs files in the templates to .tmpl, to prevent
cljdoc and other tooling from trying to process them as Clojure files.
#17 adds mentat.clerk-utils.viewers/q, similar to quote or ', for
writing viewers with alias resolution and splicing. The clj-kondo config has
an accompanying hook that handles linting of this form.
#21:
Adds bb test, GitHub Action for tests and the deps.edn entry required to
make it work.
Fixes a j/ alias left over in mentat.clerk-utils.show/loading-viewer;
these aliases aren't available in the latest Clerk SCI environment, and need
to be fully expanded.
#19:
Upgrades to Clerk version fad499407d979916d21b33cc7e46e73f7a485e37
Modifies the clerk-utils/custom template and project to use fully
qualified vars inside of viewers.
Removes mentat.clerk-utils.sci, as register-js! was superceded by the
new :js-libs option provided by SCI.
#18 adds a provided dependency on clerk to the published jar, so that
cljdoc's analysis will succeed.
#16:
Fix broken deps reference in clerk-utils/custom template instructions
(closes #15)
In mentat.clerk-utils.build/serve!, call clerk/show! before
clerk/serve! to prevent flashing loading screen, if an index is supplied.
Fix incorrect docstrings in project template bb.edn
Add config.edn to clerk-utils/custom template, so that future
clj-kondo commands (like --copy-config calls etc) work.
#13:
Adds a shutdown hook to mentat.clerk-utils.build that calls halt! when
the JVM shuts down
Switches from npm http-server to babashka's http-server, slimming down the
required entries in package.json just a touch more
adds the clerk-utils/custom deps-new template in the resources
directory, along with an entry in the docs notebook on how to run it. The
resources/clerk_utils/custom directory has a detailed README, as does the
generated project.
#11:
Adds mentat.clerk-utils.sci/register-js! for adding custom JS libraries to
Clerk's SCI environment.
Adds documentation on how to generate custom ClojureScript builds for Clerk.
#10:
Adds mentat.clerk-utils.css with add-css!, set-css! and reset-css!
functions for customizing the CSS served in Clerk's header
Adds mentat.clerk-utils.docs with git-sha and git-dependency for
injecting git dependency instructions into a notebook
Adds mentat.clerk-utils.build with serve!, build! and halt!
variations that support custom CLJS compilation
#8:
fleshes out show.cljc notebook
adds a guide for how to use Clerk with custom ClojureScript.
#6:
Moves the cljs macro to mentat.clerk-utils.show/show-sci, to make it
clearer what it's doing.
show-sci now works in cljc files by emitting nothing on the
Clojurescript side, and maintaining its old behavior on the clj side.
Adds a new mentat.clerk-utils.show/show-cljs, ported with permission from
@mhuebert's
clerk-cljs
library.
Adds a new documentation notebook at
https://clerk-utils.mentat.org/dev/clerk_utils/show.html showing off how to
use show-cljs to compile Clojurescript code and render it in Clerk in a
single file.
To support the above change, https://clerk-utils.mentat.org now builds its own custom JS bundle.
Add missing clj-kondo config to the shipped jar.
#3:
Adds ->clerk-only macro, and better documentation for the
mentat.clerk-utils namespace.
Upgrades the documentation notebook and adds a solid README.
First real release!
Added ->clerk and cljs macros.
Published fleshed-out documentation notebook at https://clerk-utils.mentat.org
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |