website/docusaurus.config.js (64 lines of code) (raw):
/**
* 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.
*/
module.exports = {
title: 'Flux',
tagline: 'Application architecture for building user interfaces',
url: 'https://facebook.github.io',
baseUrl: '/flux/',
favicon: 'img/favicon.ico',
organizationName: 'facebook',
projectName: 'flux',
themeConfig: {
announcementBar: {
id: 'support_ukraine',
content:
'Support Ukraine πΊπ¦ <a target="_blank" rel="noopener noreferrer" href="https://opensource.facebook.com/support-ukraine"> Help Provide Humanitarian Aid to Ukraine</a>.',
backgroundColor: '#20232a',
textColor: '#fff',
isCloseable: false,
},
algolia: {
apiKey: '6dab6b592e7b8e994dc2cff2aadc3cf2',
indexName: 'flux',
},
navbar: {
title: 'Flux',
logo: {
alt: 'Flux Logo',
src: 'img/flux-logo-color.svg',
},
items: [
{ to: 'docs/overview', label: 'Docs', position: 'left' },
{ to: 'support', label: 'Support', position: 'left' },
{
href: 'https://github.com/facebook/flux',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'Facebook Open Source Logo',
src: 'https://docusaurus.io/img/oss_logo.png',
},
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc. Built with Docusaurus.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: '../docs',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/facebook/flux/edit/master/docs/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};