Liking cljdoc? Tell your friends :D
Clojure only.

hydrox.doc.link.namespaces


(link-namespaces {:keys [namespaces articles] :as folio} name)

link elements with :ns forms to code

(link-namespaces {:articles {"example" {:elements [{:type :ns :ns "clojure.core"}]}} :namespaces {"clojure.core" {:code "(ns clojure.core)"}}} "example") => {:articles {"example" {:elements [{:type :code :ns "clojure.core" :origin :ns :indentation 0 :code "(ns clojure.core)"}]}} :namespaces {"clojure.core" {:code "(ns clojure.core)"}}}

link elements with `:ns` forms to code

(link-namespaces
 {:articles {"example" {:elements [{:type :ns :ns "clojure.core"}]}}
  :namespaces {"clojure.core" {:code "(ns clojure.core)"}}}
 "example")
=> {:articles {"example" {:elements [{:type :code
                                      :ns "clojure.core"
                                     :origin :ns
                                      :indentation 0
                                      :code "(ns clojure.core)"}]}}
    :namespaces {"clojure.core" {:code "(ns clojure.core)"}}}
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close