Utility functions :)
These are available in the analysis environment and thus should work without any additional dependencies.
Utility functions :) These are available in the analysis environment and thus should work without any additional dependencies.
(artifact-id project)
(assert-first [x & rest :as xs])
(cljdoc-edn project version)
(clojars-id {:keys [group-id artifact-id] :as cache-id})
(codox-edn project version)
(delete-directory! dir)
(find-pom-in-dir dir project)
(gh-coordinate gh-url)
(gh-owner gh-url)
(gh-repo gh-url)
(gh-url? s)
(git-dir project version)
(github-url type)
(group-id project)
(infer-platforms-from-src-dir src-dir)
Given a directory src-dir
inspect all files and infer which
platforms the source files likely target.
Given a directory `src-dir` inspect all files and infer which platforms the source files likely target.
(normalize-git-url s)
Ensure that the passed string is a git URL and that it's using HTTPS
Ensure that the passed string is a git URL and that it's using HTTPS
(normalize-project project)
(pom-path project)
(relativize-path s1 s2)
Remove the segments at the beginning of a path s2
that are identical
to the beginning segments of s1
. This is useful when wanting to render
relative links instead of absolute ones.
Example:
(relativize-path "doc/common-abc.html" "doc/common-xyz.html")
;; => "common-xyz.html"
Remove the segments at the beginning of a path `s2` that are identical to the beginning segments of `s1`. This is useful when wanting to render relative links instead of absolute ones. Example: ``` (relativize-path "doc/common-abc.html" "doc/common-xyz.html") ;; => "common-xyz.html" ```
(replant-ns base target)
Given a fully-qualified base
and a potentially relative target
namespace,
return the fully qualified version of target
. Assumes that all target
namespaces
with identical first segments to base
are already absolute.
Given a fully-qualified `base` and a potentially relative `target` namespace, return the fully qualified version of `target`. Assumes that all `target` namespaces with identical first segments to `base` are already absolute.
(scm-url pom-map)
(system-temp-dir prefix)
(system-temp-file prefix suffix)
(uri-path uri)
Return path part of a URL, this is probably part of pedestal in some way but I couldn't find it fast enough. TODO replace.
Return path part of a URL, this is probably part of pedestal in some way but I couldn't find it fast enough. TODO replace.
(version-tag? pom-version tag)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close