Improved API documentation

This commit is contained in:
2018-04-12 23:05:24 +02:00
parent c60c171a2f
commit ea2e08d88d
3 changed files with 25 additions and 11 deletions

View File

@ -1,4 +1,4 @@
component API(types []string)
component API(types []*autodocs.Type)
.api-docs-page
h1 API
@ -12,13 +12,10 @@ component API(types []string)
span https://notify.moe/graphql
h2 Types
table
//- thead
//- tr
//- th Table
table.api-types
tbody
each typeName in types
each typ in types
tr
td= typeName
td
a(href="/api/" + strings.ToLower(typeName) + "/")= "/api/" + strings.ToLower(typeName) + "/"
a(href=typ.Endpoint())= typ.Name
td= typ.Comment