mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
6bc6378f96
* Docs: Introduce new Docusaurus-based website This commit is the result of running npx docusaurus-init, and nothing more. Further changes will happen on top of this, to make it easier to review changes and update to newer versions of Docusaurus in the future. * WIP: Add Bitcoin-S website Change the default Docusaurus template to a custom website. Goes off of existing documentation, and moves it into the new docs and website directories. Deletes some unused files, such as BUILD_README.md * Initial mdoc support * Add Scaladoc to website * Add SVG assets * Change colors, flesh out pages, correct Scaladoc links * Rename doc project to scripts, move security doc to website * Add copy buttons to website code snippets * Add doc and tasks for publishing website * Refactor how paths get copied after generating Scaladocs * Add Get Started button * Replace bitcoin-s logo with white text * Add Montserrat font for headers * flesh out user showcase and landing page * Change Scaladoc URL to bitcoins package
68 lines
2.0 KiB
JavaScript
68 lines
2.0 KiB
JavaScript
/**
|
|
* 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 Image = require(process.cwd() + "/core/Image.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: `Read the [guides and docs on this site.](${docUrl(
|
|
"core/core-intro"
|
|
)})`,
|
|
title: "Browse Docs"
|
|
},
|
|
{
|
|
content: `Explore the [Scaladocs](${
|
|
siteConfig.scaladocUrl
|
|
}) for the complete guide to how Bitcoin-S work`,
|
|
title: "Browse API reference"
|
|
},
|
|
{
|
|
content: [
|
|
"If you have any questions about either the documentation or",
|
|
"Bitcoin-S itself, the easiest way to get in touch with the",
|
|
`developers is the \`#bitcoin-s\` channel in the [Suredbits Slack](${
|
|
siteConfig.suredbitsSlack
|
|
}).`,
|
|
`There's also a [Gitter room](${
|
|
siteConfig.gitterUrl
|
|
}) you can join, although there's less`,
|
|
"activity there."
|
|
].join(" "),
|
|
title: "Join the community"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<div className="docMainWrapper wrapper">
|
|
<Container className="mainContainer documentContainer postContainer">
|
|
<div className="post">
|
|
<header className="postHeader">
|
|
<h1>Need help?</h1>
|
|
</header>
|
|
<Image src={baseUrl + "img/undraw_questions_75e0.svg"} />
|
|
<GridBlock contents={supportLinks} layout="threeColumn" />
|
|
</div>
|
|
</Container>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
module.exports = Help;
|