2023-06-22 13:46:57 -07:00
/ * *
* 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
const lightCodeTheme = require ( 'prism-react-renderer/themes/github' ) ;
const darkCodeTheme = require ( 'prism-react-renderer/themes/dracula' ) ;
/** @type {import('@docusaurus/types').Config} */
const config = {
2023-06-23 17:56:41 -07:00
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' ,
2023-06-22 13:46:57 -07:00
2023-06-23 17:56:41 -07:00
url : 'https:/yogalayout.com' ,
2023-06-22 13:46:57 -07:00
baseUrl : '/' ,
2023-06-23 17:56:41 -07:00
organizationName : 'facebook' ,
projectName : 'yoga' ,
2023-06-22 13:46:57 -07:00
onBrokenLinks : 'throw' ,
onBrokenMarkdownLinks : 'warn' ,
i18n : {
defaultLocale : 'en' ,
locales : [ 'en' ] ,
} ,
presets : [
[
'classic' ,
/** @type {import('@docusaurus/preset-classic').Options} */
( {
docs : {
sidebarPath : require . resolve ( './sidebars.js' ) ,
editUrl :
2023-06-23 17:56:41 -07:00
'https://github.com/facebook/yoga/tree/main/website' ,
2023-06-22 13:46:57 -07:00
} ,
blog : {
showReadingTime : true ,
editUrl :
2023-06-23 17:56:41 -07:00
'https://github.com/facebook/yoga/tree/main/website' ,
2023-06-22 13:46:57 -07:00
} ,
theme : {
customCss : require . resolve ( './src/css/custom.css' ) ,
} ,
} ) ,
] ,
] ,
themeConfig :
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
( {
navbar : {
2023-06-23 17:56:41 -07:00
title : 'Yoga' ,
2023-06-22 13:46:57 -07:00
logo : {
2023-06-23 17:56:41 -07:00
alt : 'Yoga Logo' ,
2023-06-22 13:46:57 -07:00
src : 'img/logo.svg' ,
} ,
items : [
{
type : 'docSidebar' ,
sidebarId : 'tutorialSidebar' ,
position : 'left' ,
label : 'Tutorial' ,
} ,
{ to : '/blog' , label : 'Blog' , position : 'left' } ,
{
href : 'https://github.com/facebook/docusaurus' ,
label : 'GitHub' ,
position : 'right' ,
} ,
] ,
} ,
footer : {
style : 'dark' ,
links : [
{
title : 'Docs' ,
items : [
{
label : 'Tutorial' ,
to : '/docs/intro' ,
} ,
] ,
} ,
{
title : 'Community' ,
items : [
{
label : 'Stack Overflow' ,
2023-06-23 17:56:41 -07:00
href : 'https://stackoverflow.com/questions/tagged/yoga' ,
2023-06-22 13:46:57 -07:00
} ,
{
label : 'Twitter' ,
2023-06-23 17:56:41 -07:00
href : 'https://twitter.com/yogalayout' ,
2023-06-22 13:46:57 -07:00
} ,
] ,
} ,
{
title : 'More' ,
items : [
{
label : 'Blog' ,
to : '/blog' ,
} ,
{
label : 'GitHub' ,
2023-06-23 17:56:41 -07:00
href : 'https://github.com/facebook/yoga' ,
2023-06-22 13:46:57 -07:00
} ,
] ,
} ,
] ,
2023-06-23 17:56:41 -07:00
copyright : ` Copyright © ${ new Date ( ) . getFullYear ( ) } Meta Platforms, Inc. ` ,
2023-06-22 13:46:57 -07:00
} ,
prism : {
theme : lightCodeTheme ,
darkTheme : darkCodeTheme ,
} ,
} ) ,
} ;
module . exports = config ;