blob: 6e3356430c6aca4b17a809fbc9265e9fb12a3f6e [file] [log] [blame]
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
const React = require("react")
const CompLibrary = require("../../core/CompLibrary.js")
const Container = CompLibrary.Container
const GridBlock = CompLibrary.GridBlock
function Help(props) {
const { config: siteConfig, language = "" } = props
const { baseUrl, docsUrl } = siteConfig
const docsPart = `${docsUrl ? `${docsUrl}/` : ""}`
const langPart = `${language ? `${language}/` : ""}`
const docUrl = doc => `${baseUrl}${docsPart}${langPart}${doc}`
const supportLinks = [
{
content: `Learn more using the [documentation on this site.](${docUrl(
"doc1.html"
)})`,
title: "Browse Docs",
},
{
content: "Ask questions about the documentation and project",
title: "Join the community",
},
{
content: "Find out what's new with this project",
title: "Stay up to date",
},
]
return (
<div className="docMainWrapper wrapper">
<Container className="mainContainer documentContainer postContainer">
<div className="post">
<header className="postHeader">
<h1>Need help?</h1>
</header>
<p>This project is maintained by a dedicated group of people.</p>
<GridBlock contents={supportLinks} layout="threeColumn" />
</div>
</Container>
</div>
)
}
module.exports = Help