summaryrefslogtreecommitdiff
path: root/src/docs/api/mixins.pug
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-02-23 11:20:58 +0900
committerGitHub <noreply@github.com>2019-02-23 11:20:58 +0900
commit52774bbe6402aee076b2e0648bd1f4764924da8a (patch)
treea0e3f34ce6d000dd880a6a6c152e98e139076a14 /src/docs/api/mixins.pug
parent投稿を削除したときにお気に入りからも削除するように (diff)
downloadsharkey-52774bbe6402aee076b2e0648bd1f4764924da8a.tar.gz
sharkey-52774bbe6402aee076b2e0648bd1f4764924da8a.tar.bz2
sharkey-52774bbe6402aee076b2e0648bd1f4764924da8a.zip
Introduce OpenAPI specs (#4351)
* wip * wip * wip * Update index.ts * Update gen-openapi-spec.ts * Update api.ja-JP.md * Fix * Improve doc * Update gen-openapi-spec.ts * Update redoc.html * Improve doc * Update gen-openapi-spec.ts * Improve doc * Update CHANGELOG.md
Diffstat (limited to 'src/docs/api/mixins.pug')
-rw-r--r--src/docs/api/mixins.pug34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/docs/api/mixins.pug b/src/docs/api/mixins.pug
deleted file mode 100644
index 563739d52b..0000000000
--- a/src/docs/api/mixins.pug
+++ /dev/null
@@ -1,34 +0,0 @@
-mixin type(prop)
- i= prop.type
- if prop.kind == 'id'
- if prop.entity
- | (
- a(href=`/docs/${lang}/api/entities/${kebab(prop.entity)}`)= prop.entity
- | ID)
- else
- | (ID)
- else if prop.kind == 'entity'
- | (
- a(href=`/docs/${lang}/api/entities/${kebab(prop.entity)}`)= prop.entity
- | )
- else if prop.kind == 'object'
- if prop.hasDef
- | (
- a(href=`#${prop.name}`)= prop.name
- | )
- else if prop.kind == 'date'
- | (Date)
-
-mixin propTable(props)
- table.props
- thead: tr
- th= i18n('docs.api.props.name')
- th= i18n('docs.api.props.type')
- th= i18n('docs.api.props.description')
- tbody
- each prop in props
- tr
- td.name= prop.name
- td.type
- +type(prop)
- td.desc!= prop.desc ? prop.desc[lang] || prop.desc['ja-JP'] : null