# based on: https://codeberg.org/veqq/janetdocs/src/commit/54a964d1a35920af2655c4932a9b51379e8b9380/seed.janet#L16
(def core-api (all-bindings))
(def alldocs @[])
(loop [b :in core-api]
(when (not= "allbindings" (string b))
(do
(def buf @"")
(with-dyns [:out buf]
(doc* b)
(array/push alldocs {:name (string b) :docstring (string buf)})))))
(pp alldocs)