This repository was archived by the owner on Aug 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathdefault.tsx
More file actions
56 lines (50 loc) · 2.44 KB
/
default.tsx
File metadata and controls
56 lines (50 loc) · 2.44 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { With, relativeURL, wbr, __partials__, IfCond, IfNotCond, Markdown } from "../../lib";
import React from "react";
export const defaultLayout = (props) => (
<>
<html className="default no-js">
<head>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<title>
<IfCond cond={props.model.name === props.project.name}>{props.project.name}</IfCond>
<IfNotCond cond={props.model.name === props.project.name}>
{props.model.name} | {props.project.name}
</IfNotCond>
</title>
<meta name="description" content={"Documentation for " + props.project.name} />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href={relativeURL(TODO)} />
<script async={true} src={relativeURL(TODO)} id="search-script"></script>
</head>
<body>
{__partials__.header(props)}
<div className="container container-main">
<div className="row">
<div className="col-8 col-content">{props.contents}</div>
<div className="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav className="tsd-navigation primary">
<ul>
{props.navigation.children.map((item, i) => (
<> {__partials__.navigation(item)}</>
))}{" "}
</ul>
</nav>
<nav className="tsd-navigation secondary menu-sticky">
<ul className="before-current">
{props.toc.children.map((item, i) => (
<> {__partials__.tocRoot(item)}</>
))}{" "}
</ul>
</nav>
</div>
</div>
</div>
{__partials__.footer(props)}
<div className="overlay"></div>
<script src={relativeURL(TODO)}></script>
{__partials__.analytics(props)}
</body>
</html>
</>
);