jormungandr-bite/src/web/docs/layout.pug

38 lines
961 B
Text
Raw Normal View History

2017-12-14 08:23:45 -07:00
doctype html
2017-12-14 14:41:57 -07:00
html(lang= lang)
2017-12-14 08:23:45 -07:00
head
meta(charset="UTF-8")
2017-12-15 12:10:05 -07:00
meta(name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no")
2017-12-14 08:23:45 -07:00
title
2017-12-15 08:19:10 -07:00
| #{title} | Misskey Docs
2017-12-16 09:41:22 -07:00
link(rel="stylesheet" href="/assets/style.css")
2017-12-14 08:23:45 -07:00
block meta
body
2017-12-14 14:41:57 -07:00
nav
ul
each doc in common.docs
2017-12-16 12:05:33 -07:00
li: a(href=`/${lang}/${doc.name}`)= doc.title[lang] || doc.title['ja']
2017-12-14 14:41:57 -07:00
section
h2 API
ul
li Entities
ul
each entity in common.entities
2017-12-16 12:05:33 -07:00
li: a(href=`/${lang}/api/entities/${common.kebab(entity)}`)= entity
2017-12-14 14:41:57 -07:00
li Endpoints
ul
each endpoint in common.endpoints
2017-12-16 12:05:33 -07:00
li: a(href=`/${lang}/api/endpoints/${common.kebab(endpoint)}`)= endpoint
2017-12-14 08:23:45 -07:00
main
2017-12-16 12:02:30 -07:00
article
block main
if content
| !{content}
footer
p
= common.i18n[lang]['docs']['edit-this-page-on-github']
a(href=src target="_blank")= common.i18n[lang]['docs']['edit-this-page-on-github-link']