diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-12-17 04:02:30 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-12-17 04:02:30 +0900 |
| commit | da279f9e50839da68746ad6460045d0f358818ae (patch) | |
| tree | b8442b8de433a53d9ba0105eaaec2426206b2aaa /src/web/docs/api/endpoints | |
| parent | Merge pull request #1002 from syuilo/greenkeeper/style-loader-0.19.1 (diff) | |
| download | sharkey-da279f9e50839da68746ad6460045d0f358818ae.tar.gz sharkey-da279f9e50839da68746ad6460045d0f358818ae.tar.bz2 sharkey-da279f9e50839da68746ad6460045d0f358818ae.zip | |
:v:
Diffstat (limited to 'src/web/docs/api/endpoints')
| -rw-r--r-- | src/web/docs/api/endpoints/style.styl | 15 | ||||
| -rw-r--r-- | src/web/docs/api/endpoints/view.pug | 11 |
2 files changed, 22 insertions, 4 deletions
diff --git a/src/web/docs/api/endpoints/style.styl b/src/web/docs/api/endpoints/style.styl index 07fb7ec2a3..2af9fe9a77 100644 --- a/src/web/docs/api/endpoints/style.styl +++ b/src/web/docs/api/endpoints/style.styl @@ -1,8 +1,21 @@ @import "../style" #url - padding 8px 12px + padding 8px 12px 8px 8px font-family Consolas, 'Courier New', Courier, Monaco, monospace color #fff background #222e40 border-radius 4px + + > .method + display inline-block + margin 0 8px 0 0 + padding 0 6px + color #f4fcff + background #17afc7 + border-radius 4px + user-select none + pointer-events none + + > .host + opacity 0.7 diff --git a/src/web/docs/api/endpoints/view.pug b/src/web/docs/api/endpoints/view.pug index 9ba1c4e852..90084ab276 100644 --- a/src/web/docs/api/endpoints/view.pug +++ b/src/web/docs/api/endpoints/view.pug @@ -7,12 +7,17 @@ block meta block main h1= endpoint - p#url= url + p#url + span.method POST + span.host + = url.host + | / + span.path= url.path p#desc= desc[lang] || desc['ja'] section - h2 Params + h2= common.i18n[lang]['docs']['api']['endpoints']['params'] +propTable(params) if paramDefs @@ -23,5 +28,5 @@ block main if res section - h2 Response + h2= common.i18n[lang]['docs']['api']['endpoints']['res'] +propTable(res) |