[mod] Denoise the API docs a bit

- hide API docstrings for the `set-var-root!` and `update-var-root!`
- do not expose `newline` and `chance` in the `taoensso.telemere` ns
- move `chance` top the `taoensso.telemere.utils` ns — the `newline`
  already there
This commit is contained in:
Mark Sto 2025-05-01 17:44:24 +04:00
parent bc69ca6b87
commit b9f74a1113
2 changed files with 3 additions and 6 deletions

View file

@ -5,7 +5,6 @@
<https://www.taoensso.com/telemere>"
{:author "Peter Taoussanis (@ptaoussanis)"}
(:refer-clojure :exclude [newline])
(:require
[taoensso.truss :as truss]
[taoensso.encore :as enc]
@ -69,13 +68,11 @@
(enc/defaliases
;; Encore
#?(:clj enc/set-var-root!)
#?(:clj enc/update-var-root!)
#?(:clj ^:no-doc enc/set-var-root!)
#?(:clj ^:no-doc enc/update-var-root!)
#?(:clj enc/get-env)
#?(:clj enc/call-on-shutdown!)
enc/chance
enc/rate-limiter
enc/newline
sigs/comp-xfn
#?(:clj truss/keep-callsite)

View file

@ -134,7 +134,7 @@
;;;; Misc
(enc/defaliases
enc/newline enc/pr-edn #?(:clj enc/uuid) enc/uuid-str
enc/newline enc/pr-edn #?(:clj enc/uuid) enc/uuid-str enc/chance
#?@(:cljs [enc/pr-json])
#?@(:clj [enc/thread-info enc/thread-id enc/thread-name
enc/host-info enc/host-ip enc/hostname]))