-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
Copy pathhelp.js
60 lines (55 loc) · 1.46 KB
/
help.js
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
57
58
59
60
import React from "react";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import useBaseUrl from "@docusaurus/useBaseUrl";
import Link from "@docusaurus/Link";
import Layout from "@theme/Layout";
const SupportLink = ({ title, content }) => (
<div>
<h2>{title}</h2>
<div>{content}</div>
</div>
);
export default function Help() {
const { siteConfig } = useDocusaurusContext();
const supportLinks = [
{
title: "Browse Docs",
content: (
<>
Learn more using the{" "}
<Link to={useBaseUrl(siteConfig.customFields.firstDoc)}>
documentation on this site
</Link>
.
</>
),
},
{
title: "Join the community",
content: "Ask questions about the documentation and project",
},
{
title: "Stay up to date",
content: "Find out what's new with this project",
},
];
return (
<Layout title="Help" permalink="/help" description="Help">
<div className="container margin-vert--xl">
<div>
<header>
<h1>Need help?</h1>
</header>
<p>This project is maintained by a dedicated group of people.</p>
</div>
<div className="row">
{supportLinks.map((supportLink, i) => (
<div className="col col--4 margin-top--lg" key={i}>
<SupportLink {...supportLink} />
</div>
))}
</div>
</div>
</Layout>
);
}