(collect-apis {:keys [articles project] :as interim} name)gets all the api tags in the document
(let [project (project/project) project (assoc project :lookup (project/file-lookup project)) elems (parse/parse-file "src-doc/documentation/code_doc.clj" project) bundle {:articles {"code-doc" {:elements elems}} :references {} :project project}] (with-redefs [reference/reference-namespaces (fn [_ _ namespaces] namespaces)] (-> (collect-apis bundle "code-doc") :references))) => '[code.doc code.doc.parse]
gets all the `api` tags in the document
(let [project (project/project)
project (assoc project :lookup (project/file-lookup project))
elems (parse/parse-file "src-doc/documentation/code_doc.clj" project)
bundle {:articles {"code-doc" {:elements elems}}
:references {}
:project project}]
(with-redefs [reference/reference-namespaces (fn [_ _ namespaces] namespaces)]
(-> (collect-apis bundle "code-doc")
:references)))
=> '[code.doc code.doc.parse]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 |