feat(v2): add help page (#1835)

This commit is contained in:
Yangshun Tay 2019-10-12 01:03:51 -07:00 committed by GitHub
parent 82946df0f5
commit a059e17c6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 124 additions and 0 deletions

116
website/src/pages/help.js Normal file
View file

@ -0,0 +1,116 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, {useEffect} from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import withBaseUrl from '@docusaurus/withBaseUrl';
function Help() {
return (
<Layout permalink="/help" description="Docusaurus 2 Help page">
<div className="container margin-vert--xl">
<div className="text--center margin-bottom--xl">
<h1>Need Help?</h1>
<p>
If you need help with Docusaurus 2, you can try one of the
mechanisms below.
</p>
</div>
<div className="row">
<div className="col">
<h2>Browse the docs</h2>
<p>
Learn more about Docusaurus using the{' '}
<Link to={withBaseUrl('docs/introduction')}>
official documentation
</Link>
</p>
</div>
<div className="col">
<h2>Discord</h2>
<p>
You can join the conversation on{' '}
<a
target="_blank"
rel="noreferrer noopener"
href="https://discord.gg/docusaurus">
Discord
</a>{' '}
on one of our two text channels:{' '}
<a
target="_blank"
rel="noreferrer noopener"
href="https://discord.gg/7wjJ9yH">
#docusaurus-2-dogfooding
</a>{' '}
for user help and{' '}
<a
target="_blank"
rel="noreferrer noopener"
href="https://discord.gg/6g6ASPA">
#docusaurus-2-dev
</a>{' '}
for contributing help.
</p>
</div>
<div className="col">
<h2>Twitter</h2>
<p>
You can follow and contact us on{' '}
<a
target="_blank"
rel="noreferrer noopener"
href="https://twitter.com/docusaurus">
Twitter
</a>
.
</p>
</div>
<div className="col">
<h2>GitHub</h2>
<p>
At our{' '}
<a
target="_blank"
rel="noreferrer noopener"
href="https://github.com/facebook/docusaurus">
GitHub repo
</a>{' '}
Browse and submit{' '}
<a
target="_blank"
rel="noreferrer noopener"
href="https://github.com/facebook/docusaurus/issues">
issues
</a>{' '}
or{' '}
<a
target="_blank"
rel="noreferrer noopener"
href="https://github.com/facebook/docusaurus/pulls">
pull requests
</a>{' '}
for bugs you find or any new features you may want implemented. Be
sure to also check out our{' '}
<a
target="_blank"
rel="noreferrer noopener"
href="https://github.com/facebook/docusaurus/blob/master/CONTRIBUTING.md">
contributing guide
</a>
.
</p>
</div>
</div>
</div>
</Layout>
);
}
export default Help;