Skip to content

Commit

Permalink
pod improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Sep 16, 2022
1 parent bf51dc9 commit 77ccf03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Generate API docs. Options:
* `:overrides` - overrides in the form `{namespace {:no-doc true var {:no-doc true :doc ...}}}`.

Returns a map containing the generated markdown string under the key `:markdown`.
<br><sub>[source](https://github.com/borkdude/quickdoc/blob/main/src/quickdoc/api.cljc#L9-L78)</sub>
<br><sub>[source](https://github.com/borkdude/quickdoc/blob/main/src/quickdoc/api.cljc#L18-L87)</sub>
9 changes: 8 additions & 1 deletion src/quickdoc/api.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@
(:require
[clojure.string :as str]
[quickdoc.impl :as impl]
#?(:bb [pod.borkdude.clj-kondo :as clj-kondo]
#?(:bb [babashka.pods :as pods]
:clj [clj-kondo.core :as clj-kondo])))

#?(:bb
(or (requiring-resolve 'pod.borkdude.clj-kondo/run!) ;; pod is loaded via bb.edn
(pods/load-pod 'clj-kondo/clj-kondo "2022.09.08")))

#?(:bb
(require '[pod.borkdude.clj-kondo :as clj-kondo]))

(defn quickdoc
"Generate API docs. Options:
* `:github/repo` - a link like `https://github.com/borkdude/quickdoc`
Expand Down

0 comments on commit 77ccf03

Please sign in to comment.