0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-08 08:09:14 -05:00

Add the ability to skip some rpc methods from api doc

This commit is contained in:
Andrey Antukh 2023-08-03 17:49:34 +02:00
parent 1190cf837b
commit f039b904f2
3 changed files with 3 additions and 1 deletions

View file

@ -156,7 +156,7 @@ h4 {
} }
.rpc-row-info > .module { .rpc-row-info > .module {
width: 120px; width: 150px;
font-weight: bold; font-weight: bold;
border-right: 1px dotted #777; border-right: 1px dotted #777;
text-align: right; text-align: right;

View file

@ -68,6 +68,7 @@
::climit/key-fn ::rpc/profile-id ::climit/key-fn ::rpc/profile-id
::sm/params schema:push-audit-events ::sm/params schema:push-audit-events
::audit/skip true ::audit/skip true
::doc/skip true
::doc/added "1.17"} ::doc/added "1.17"}
[{:keys [::db/pool] :as cfg} params] [{:keys [::db/pool] :as cfg} params]
(if (or (db/read-only? pool) (if (or (db/read-only? pool)

View file

@ -75,6 +75,7 @@
(->> methods (->> methods
(map val) (map val)
(map first) (map first)
(remove ::skip)
(map get-context) (map get-context)
(sort-by (juxt :module :name)))})) (sort-by (juxt :module :name)))}))