summaryrefslogtreecommitdiff
path: root/src/client/docs/layout.pug
blob: 9dfd0ab7afa12df5d5c1d55cc0c1f5371235d5bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
doctype html

html(lang= lang)
	head
		meta(charset="UTF-8")
		meta(name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no")
		title
			| #{title} | Misskey Docs
		link(rel="stylesheet" href="/assets/style.css")
		block meta

		//- FontAwesome style
		style #{common.facss}

	body
		nav
			ul
				each doc in common.docs
					li: a(href=`/${lang}/${doc.name}`)= doc.title[lang] || doc.title['ja']
			section
				h2 API
				ul
					li Entities
						ul
							each entity in common.entities
								li: a(href=`/${lang}/api/entities/${common.kebab(entity)}`)= entity
					li Endpoints
						ul
							each endpoint in common.endpoints
								li: a(href=`/${lang}/api/endpoints/${common.kebab(endpoint)}`)= endpoint
		main
			article
				block main
				if content
					| !{content}

			footer
				p
					| %i18n:docs.edit-this-page-on-github%
					a(href=src target="_blank") %i18n:docs.edit-this-page-on-github-link%
				small= common.copyright