code.doc.link.data
attach-items
added in 4.1
(attach-items elem entries)attaches selected items to an element, or an :error when empty
curated-items
added in 4.1
(curated-items data namespaces)returns curated :namespaces entries from the data file for a page
documented-coverage
added in 4.1
(documented-coverage {:keys [root], :as project})returns the cached namespace -> pages coverage map for the project
link-data
added in 4.1
(link-data {:keys [project], :as interim} name)attaches shared data entries to :related and :links elements, appending an automatic related section when the page has none
load-data
added in 4.1
(load-data {:keys [project], :as interim})loads the shared code.doc data file (related libraries, links, etc)
(load-data {:project {:root “.” :publish {}}}) => map?
ns-group
added in 4.1
(ns-group ns-sym)groups a namespace for related-page computation
(ns-group ’jvm.monitor) => “jvm” (ns-group ’std.lib.collection) => “std.lib” (ns-group ’std.concurrent.queued) => “std.concurrent”
page-namespaces
added in 4.1
(page-namespaces elements)returns all namespaces referenced by a page’s elements
select-items
added in 4.1
(select-items entries {:keys [group only exclude]})selects data entries for an element, honouring :group, :only and :exclude
(select-items {:name “a” :group :x} {:name “b” :group :y} {:group :x}) => {:name “a” :group :x}