Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1623 I copied these over from the default Docusaurus template but they don't add much value, and it is too heavy/irrelevant right now. Before: {F1468497789} After: {F1468497977} Reviewed By: joevilches Differential Revision: D54886187 fbshipit-source-id: c9ad11c59c7809d14c7a110e0ee2dd735505e28a
100 lines
2.5 KiB
JavaScript
100 lines
2.5 KiB
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
// @ts-check
|
|
|
|
import {themes as prismThemes} from 'prism-react-renderer';
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
export default {
|
|
title: 'Yoga',
|
|
tagline:
|
|
'Build flexible layouts on any platform with a highly optimized open source layout engine designed with speed, size, and ease of use in mind.',
|
|
favicon: 'img/favicon.png',
|
|
|
|
url: 'https:/yogalayout.dev',
|
|
baseUrl: '/',
|
|
|
|
organizationName: 'facebook',
|
|
projectName: 'yoga',
|
|
|
|
onBrokenLinks: 'throw',
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
i18n: {
|
|
defaultLocale: 'en',
|
|
locales: ['en'],
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
sidebarPath: require.resolve('./sidebars.cjs'),
|
|
editUrl: 'https://github.com/facebook/yoga/tree/main/website',
|
|
},
|
|
blog: {
|
|
showReadingTime: true,
|
|
editUrl: 'https://github.com/facebook/yoga/tree/main/website',
|
|
},
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
navbar: {
|
|
title: 'Yoga',
|
|
logo: {
|
|
alt: 'Yoga Logo',
|
|
src: 'img/logo.svg',
|
|
},
|
|
items: [
|
|
{
|
|
type: 'docSidebar',
|
|
sidebarId: 'docsSidebar',
|
|
position: 'left',
|
|
label: 'Documentation',
|
|
},
|
|
{to: '/playground', label: 'Playground', position: 'left'},
|
|
{to: '/blog', label: 'Blog', position: 'left'},
|
|
{
|
|
href: 'https://github.com/facebook/yoga',
|
|
label: 'GitHub',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
logo: {
|
|
alt: 'Meta Open Source',
|
|
src: 'img/meta_oss.svg',
|
|
href: 'https://opensource.fb.com',
|
|
width: 300,
|
|
height: 64,
|
|
},
|
|
copyright: `Copyright © ${new Date().getFullYear()} Meta Platforms, Inc.`,
|
|
},
|
|
prism: {
|
|
theme: prismThemes.github,
|
|
darkTheme: prismThemes.oneDark,
|
|
additionalLanguages: ['gradle', 'java', 'json', 'json5', 'ruby'],
|
|
},
|
|
colorMode: {
|
|
defaultMode: 'dark',
|
|
respectPrefersColorScheme: true,
|
|
},
|
|
}),
|
|
};
|