* initial docusaurus set-up * Delete why-prettier.md * Update README.md * Update Docusaurus structure * Update package.json * Update siteConfig.js * Remove ~ files * chore(website): update build script * Add redirect script * Get eslint working on website * Fix to allow for baseUrl of '/' * Update docusaurus version * Update README.md * Change redirect script to use baseUrl of '/' * Fix index.js formatting * Load redirect script * General cleanup * Add projects using prettier * Update service worker to just scope to playground * Reduce link repeatition * Link "Try it out" button to /playground/ * Make header of playground approximately same as main site * Remove .html from URLs (e.g. users.html -> users/) * Link Gitter Chat * Add circleci.yml * Only run builds on master * Do deployment using Travis
52 lines
1.3 KiB
JavaScript
Executable File
52 lines
1.3 KiB
JavaScript
Executable File
"use strict";
|
|
|
|
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");
|
|
|
|
class Help extends React.Component {
|
|
render() {
|
|
const supportLinks = [
|
|
{
|
|
content:
|
|
"Learn more using the [documentation on this site.](/docs/en/why-prettier.html)\n",
|
|
title: "Browse Docs"
|
|
},
|
|
{
|
|
content: "Ask questions about the documentation and project\n",
|
|
title: "Join the community"
|
|
},
|
|
{
|
|
content: "Find out what's new with this project\n",
|
|
title: "Stay up to date"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<div>
|
|
<div className="docMainWrapper wrapper">
|
|
<Container className="mainContainer documentContainer postContainer">
|
|
<div className="post">
|
|
<header className="postHeader">
|
|
<h2>Need help?</h2>
|
|
</header>
|
|
<p>This project is maintained by a dedicated group of people;</p>
|
|
<GridBlock contents={supportLinks} layout="threeColumn" />
|
|
</div>
|
|
</Container>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
Help.defaultProps = {
|
|
language: "en"
|
|
};
|
|
|
|
module.exports = Help;
|