2018-11-20 20:34:42 +01:00
/ * *
* 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 .
* /
const React = require ( 'react' ) ;
const CompLibrary = require ( '../../core/CompLibrary.js' ) ;
const Container = CompLibrary . Container ;
const GridBlock = CompLibrary . GridBlock ;
const siteConfig = require ( ` ${ process . cwd ( ) } /siteConfig.js ` ) ;
function docUrl ( doc , language ) {
return ` ${ siteConfig . baseUrl } docs/ ${ language ? ` ${ language } / ` : '' } ${ doc } ` ;
}
class Help extends React . Component {
render ( ) {
const language = this . props . language || '' ;
const supportLinks = [
{
content : ` Learn more using the [documentation on this site.]( ${ docUrl (
2019-08-24 13:08:59 +02:00
'getting_started' ,
2018-11-20 20:34:42 +01:00
language ,
) } ) ` ,
title : 'Browse Docs' ,
} ,
{
2019-08-24 13:08:59 +02:00
content : 'Ask questions about the documentation and project in our [Slack community](https://join.slack.com/t/unleash-community/shared_invite/enQtNjUxMjU2MDc0MTAxLTM5Yzk2YWE2ZTk1OTZhOTJiNTEzMzA5YmEwMDE3MDJiNDQ3ZWExZGZjMmUyY2UyMWQ0NTI3NGRjNDhlMjExZjM)' ,
2018-11-20 20:34:42 +01:00
title : 'Join the community' ,
} ,
{
2019-08-24 13:08:59 +02:00
content : "Don't have time or resources to host Unleash yourself? Don't worry [Unleash-hosted.com](https://www.unleash-hosted.com) allows you to start using Unleash today!" ,
title : 'Unleash as a Service' ,
2018-11-20 20:34:42 +01:00
} ,
] ;
return (
< div className = "docMainWrapper wrapper" >
< Container className = "mainContainer documentContainer postContainer" >
< div className = "post" >
< header className = "postHeader" >
< h1 > Need help ? < / h 1 >
< / h e a d e r >
< p > This project is maintained by a dedicated group of people . < / p >
< GridBlock contents = { supportLinks } layout = "threeColumn" / >
< / d i v >
< / C o n t a i n e r >
< / d i v >
) ;
}
}
module . exports = Help ;