mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-01 03:12:49 +08:00
Summary: Set up landing page, docs page, and html versions of the ipython notebook tutorials. Pull Request resolved: https://github.com/fairinternal/pytorch3d/pull/11 Reviewed By: gkioxari Differential Revision: D19730380 Pulled By: nikhilaravi fbshipit-source-id: 5df8d3f2ac2f8dce4d51f5d14fc336508c2fd0ea
52 lines
1.4 KiB
JavaScript
52 lines
1.4 KiB
JavaScript
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
**/
|
|
|
|
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;
|