mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 08:06:38 +02:00
✨ Improve doc endpoint
Add changes, added and deprecation notices
This commit is contained in:
parent
2e077e3ea9
commit
07eab923f0
9 changed files with 139 additions and 81 deletions
|
@ -35,10 +35,14 @@
|
|||
:name (d/name name)
|
||||
:module (-> (:ns mdata) (str/split ".") last)
|
||||
:auth (:auth mdata true)
|
||||
:docs (::sv/docs mdata)
|
||||
:docs (::sv/docstring mdata)
|
||||
:deprecated (::deprecated mdata)
|
||||
:added (::added mdata)
|
||||
:changes (some->> (::changes mdata) (partition-all 2) (map vec))
|
||||
:spec (get-spec-str (::sv/spec mdata))}))]
|
||||
|
||||
{:command-methods
|
||||
{:version (:main cf/version)
|
||||
:command-methods
|
||||
(->> (:commands methods)
|
||||
(map (partial gen-doc :command))
|
||||
(sort-by (juxt :module :name)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue