Liking cljdoc? Tell your friends :D

cljdoc.util

Utility functions :)

These are available in the analysis environment and thus should work without any additional dependencies or further assumptions about what's on the classpath.

Utility functions :)

These are available in the analysis environment and thus should work
without any additional dependencies or further assumptions about
what's on the classpath.
raw docstring

analysis-output-prefixclj

The -main of cljdoc.analysis.runner will write files to this directory.

Be careful when changing it since that path is also hardcoded in the cljdoc-builder CircleCI configuration

The -main of `cljdoc.analysis.runner` will write files to this directory.

Be careful when changing it since that path is also hardcoded in the
[cljdoc-builder](https://github.com/martinklepsch/cljdoc-builder)
CircleCI configuration
sourceraw docstring

artifact-idclj

(artifact-id project)
source

assert-firstclj

(assert-first [x & rest :as xs])
source

cljdoc-ednclj

(cljdoc-edn project version)
source

clojars-idclj

(clojars-id {:keys [group-id artifact-id] :as cache-id})
source

codox-ednclj

(codox-edn project version)
source

delete-directory!clj

(delete-directory! dir)
source

find-pom-in-dirclj

(find-pom-in-dir dir project)
source

gh-url?clj

(gh-url? s)
source

git-dirclj

(git-dir project version)
source

github-urlclj

(github-url type)
source

group-idclj

(group-id project)
source

hardcoded-configclj

source

infer-platforms-from-src-dirclj

(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.
sourceraw docstring

meanclj

(mean coll)
source

normalize-git-urlclj

(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
sourceraw docstring

normalize-projectclj

(normalize-project project)
source

pom-pathclj

(pom-path project)
source

read-cljdoc-ednclj

(read-cljdoc-edn file)
source

relativize-pathclj

(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"
```
sourceraw docstring

replant-nsclj

(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.
sourceraw docstring

scm-fallbackclj

source

scm-urlclj

(scm-url pom-map)
source

serialize-cljdoc-ednclj

(serialize-cljdoc-edn analyze-result)
source

system-temp-dirclj

(system-temp-dir prefix)
source

system-temp-fileclj

(system-temp-file prefix suffix)
source

uri-pathclj

(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.
sourceraw docstring

varianceclj

(variance coll)

Returns the variance for a collection of values.

Returns the variance for a collection of values.
sourceraw docstring

version-entityclj

(version-entity project version)
source

version-tag?clj

(version-tag? pom-version tag)
source

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

× close