/** * 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'); const translate = require('../../server/translate.js').translate; class Button extends React.Component { render() { return (
{this.props.children}
); } } Button.defaultProps = { target: '_self', }; class HomeSplash extends React.Component { render() { return (
Docusaurus with Keytar

{siteConfig.title} {siteConfig.tagline}

); } } class Index extends React.Component { render() { const language = this.props.language || 'en'; const showcase = siteConfig.users.filter(user => user.pinned).map(user => ( {user.caption} )); return (
Powered by Markdown, }, { content: `[Extend or customize](${siteConfig.baseUrl}docs/${ this.props.language }/api-pages) your project's layout by reusing React. Docusaurus can be extended while reusing the same header and footer.`, image: `${siteConfig.baseUrl}img/react.svg`, imageAlign: 'top', imageAlt: 'React', title: Built Using React, }, { content: `[Localization](${siteConfig.baseUrl}docs/${ this.props.language }/translation) comes pre-configured. Use [Crowdin](https://crowdin.com/) to translate your docs into over 70 languages.`, image: `${siteConfig.baseUrl}img/translation.svg`, imageAlign: 'top', imageAlt: 'Translation', title: Ready for Translations, }, ]} layout="threeColumn" />

Document Versioning, }, { content: `Make it easy for your community to [find](${ siteConfig.baseUrl }docs/${ this.props.language }/search) what they need in your documentation. We proudly support [Algolia documentation search](https://www.algolia.com/).`, image: `${siteConfig.baseUrl}img/search.svg`, imageAlign: 'top', imageAlt: 'Document Search', title: Document Search, }, ]} layout="twoColumn" />
Quick Setup, }, ]} layout="twoColumn" /> Develop and Deploy, }, ]} layout="twoColumn" /> Website Features, }, ]} layout="twoColumn" />

Who is Using Docusaurus?

Docusaurus is building websites for these projects...

{showcase}
All Docusaurus Users
Lead Prettier Developer', }, { content: '*Open source contributions to the React Native docs have skyrocketed after our move to Docusaurus. The docs are now hosted on a small repo in plain markdown, with none of the clutter that a typical static site generator would require. Thanks Slash!*', image: `${siteConfig.baseUrl}img/hector-ramos.png`, imageAlign: 'top', imageAlt: 'Hector Ramos', title: 'Hector Ramos
Lead React Native Advocate', }, { content: '*Docusaurus has been a great choice for the ReasonML family of projects. It makes our documentation consistent, i18n-friendly, easy to maintain, and friendly for new contributors.*', image: `${siteConfig.baseUrl}img/ricky-vetter.jpg`, imageAlign: 'top', imageAlt: 'Ricky Vetter', title: 'Ricky Vetter
ReasonReact Developer', }, ]} layout="threeColumn" />
); } } module.exports = Index;