Functions for filtering/displaying docs in REPL and generating wiki pages.
Functions for filtering/displaying docs in REPL and generating wiki pages.
(all-category-map fn-metas)
Build map idx -> (sub)category. Basically it is merge of category map and all subcategories maps.
Build map idx -> (sub)category. Basically it is merge of category map and all subcategories maps.
(fields-as-sorted-set fn-metas field)
Make sorted set of all possible values for given field from metas. Example: metas [{:name 1} {:name 2} {:name nil} {:name 2} {:name 3}], field :name will return #{1 2 3}.
Make sorted set of all possible values for given field from metas. Example: metas [{:name 1} {:name 2} {:name nil} {:name 2} {:name 3}], field :name will return #{1 2 3}.
(link-to-p5js-reference fn-meta)
Returns a link to the p5js page of the function based on :p5js-name
in the fn-meta
metadata. If :p5-name
is nil, returns nil.
Returns a link to the p5js page of the function based on `:p5js-name` in the `fn-meta` metadata. If `:p5-name` is nil, returns nil.
(link-to-processing-reference fn-meta)
Returns a link to the Processing page of the function.
If fn-meta
has :processing-link
key, value will be returned,
otherwise method will try to build the link based on :processing-name
.
If :processing-name
is nil, returns nil.
Returns a link to the Processing page of the function. If `fn-meta` has `:processing-link` key, value will be returned, otherwise method will try to build the link based on `:processing-name`. If `:processing-name` is nil, returns nil.
(matching-processing-methods fn-metas orig-name)
Takes a string representing the start of a method name in the original Processing API and returns a map of orig/new-name pairs
Takes a string representing the start of a method name in the original Processing API and returns a map of orig/new-name pairs
(pprint-wrapped-lines words
&
{:keys [fromcolumn width] :or {fromcolumn 0 width 80}})
Pretty print words across several lines by wrapping lines at word boundary.
Pretty print words across several lines by wrapping lines at word boundary.
(sorted-category-map fn-metas)
Builds map idx -> category. Indices are 1, 2, 3, ... Category is a map with keys :name, :fns, :subcategories. See subcategory-map for format of subcategory.
Builds map idx -> category. Indices are 1, 2, 3, ... Category is a map with keys :name, :fns, :subcategories. See subcategory-map for format of subcategory.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close