Improve API definitions

This commit is contained in:
syuilo
2018-10-22 05:16:27 +09:00
parent c29f912461
commit 3aece449e4
15 changed files with 136 additions and 34 deletions

View File

@ -21,3 +21,20 @@
> .host
opacity 0.7
#stability
padding 8px 12px
color #fff
border-radius 4px
&.deprecated
background #f42443
&.experimental
background #f2781a
&.stable
background #3dcc90
> b
margin-left 4px

View File

@ -14,6 +14,11 @@ block main
| /
span.path= endpointUrl.path
- var stability = endpoint.stability || 'experimental';
p#stability(class=stability)
| Stability:
b= stability
if endpoint.desc
p#desc= endpoint.desc[lang] || endpoint.desc['ja-JP']