forked from jestjs/jest
/
help.js
executable file
路88 lines (82 loc) 路 2.77 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '@theme/Layout';
import Translate from '@docusaurus/Translate';
// TODO legacy Docusaurus v1 components
import Container from '@site/src/components/v1/Container';
import GridBlock from '@site/src/components/v1/GridBlock';
class Help extends React.Component {
render() {
const supportLinks = [
{
content: (
<Translate>
{`Find what you're looking for in our detailed documentation and guides.
- Learn how to [get started](/docs/getting-started) with Jest.
- [Troubleshoot](/docs/troubleshooting) problems with Jest.
- Learn how to [configure Jest](/docs/configuration).
- Look at the full [API Reference](/docs/api).`}
</Translate>
),
title: <Translate>Browse the docs</Translate>,
},
{
content: (
<Translate>
{`Ask questions and find answers from other Jest users like you.
- Join the \`#testing\` channel on [Reactiflux](https://www.reactiflux.com/), a Discord community.
- Many members of the community use Stack Overflow. Read through the [existing questions](https://stackoverflow.com/questions/tagged/jestjs) tagged with **jestjs** or [ask your own](https://stackoverflow.com/questions/ask)!`}
</Translate>
),
title: <Translate>Join the community</Translate>,
},
{
content: (
<Translate>
{`Find out what's new with Jest.
- Follow [Jest](https://twitter.com/fbjest) on Twitter.
- Subscribe to the [Jest blog](/blog/).
- Look at the [changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md).`}
</Translate>
),
title: <Translate>Stay up to date</Translate>,
},
];
return (
<div className="wrapperV1">
<Container className="mainContainerV1">
<div className="padding-vert--lg">
<div>
<header>
<h2>
<Translate>Need help?</Translate>
</h2>
</header>
<p>
<Translate>
Jest is worked on by a team of volunteers in their spare time.
You can find out ways to talk to community members below.
</Translate>
</p>
</div>
<div className="padding-top--md">
<GridBlock contents={supportLinks} layout="threeColumn" />
</div>
</div>
</Container>
</div>
);
}
}
export default function HelpPage(props) {
return (
<Layout>
<Help {...props} />
</Layout>
);
}