/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import React from 'react'; import Link from 'gatsby-link'; import Page from '../../components/Page'; import Padded from '../../components/Padded'; import {Row, Col} from 'antd'; import './index.css'; const CATEGORY_TITLE = { 'getting-started': 'Getting Started', properties: 'Properties', examples: 'Examples', contributing: 'Contributing', }; export default ({data}) => (

Documentation

Welcome to Yoga's documentation page. Below you will find helpful documentation covering all the features of the library. Each page comes with an interactive playground for you to explore that feature. The examples section showcases some of the most common layouts and how to build them. This is a community projects and contributions within documentation, code, and tests are more than welcome. The contributing section below covers how to get started.

{['getting-started', 'properties', 'examples', 'contributing'].map( category => (

{CATEGORY_TITLE[category]}

{data.allMarkdownRemark.edges .filter( ({node}) => node.fileAbsolutePath.indexOf(`/${category}/`) > -1, ) .map( ({node}) => node.frontmatter.redirect ? ( {node.frontmatter.title} ) : ( {node.frontmatter.title} ), )} ), )}
); export const query = graphql` query IndexQuery { allMarkdownRemark { edges { node { id frontmatter { title path redirect } fileAbsolutePath } } } } `;