glean/website/docusaurus.config.js (114 lines of code) (raw):

/** * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * @format */ const {fbContent} = require('internaldocs-fb-helpers'); module.exports = { title: 'Glean', tagline: 'System for collecting, deriving and querying facts about source code', url: 'https://glean.software', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', organizationName: 'facebookincubator', // Usually your GitHub org/user name. projectName: 'glean', // Usually your repo name. trailingSlash: true, themeConfig: { announcementBar: { id: 'support_ukraine', content: 'Support Ukraine πŸ‡ΊπŸ‡¦ <a target="_blank" rel="noopener noreferrer" href="https://opensource.fb.com/support-ukraine"> Help Provide Humanitarian Aid to Ukraine</a>.', backgroundColor: '#20232a', textColor: '#fff', isCloseable: false, }, navbar: { title: 'Glean', items: [ { to: 'docs/introduction', activeBasePath: 'docs', label: 'Documentation', position: 'left', }, // Please keep GitHub link to the right for consistency. { href: 'https://github.com/facebookincubator/glean', label: 'GitHub', position: 'right', }, ], }, footer: { style: 'dark', links: [ { title: 'Learn', items: [ { label: 'Getting Started', to: 'docs/introduction', }, ], }, { title: 'Community', items: [ { label: 'Twitter', href: 'https://twitter.com/MetaOpenSource', }, ], }, { title: 'More', items: [ { label: 'GitHub', href: 'https://github.com/facebookincubator/glean', }, ], }, { title: 'Legal', // Please do not remove the privacy and terms, it's a legal requirement. items: [ { label: 'Privacy', href: 'https://opensource.facebook.com/legal/privacy/', }, { label: 'Terms', href: 'https://opensource.facebook.com/legal/terms/', }, ], }, ], logo: { alt: 'Facebook Open Source Logo', src: 'img/oss_logo.png', href: 'https://opensource.facebook.com', }, // Please do not remove the credits, help to publicize Docusaurus :) copyright: `Copyright © ${new Date().getFullYear()} Meta Platforms, Inc. Built with Docusaurus.`, }, }, presets: [ [ require.resolve('docusaurus-plugin-internaldocs-fb/docusaurus-preset'), { docs: { path: './docs', sidebarPath: require.resolve('./sidebars.js'), editUrl: fbContent({ internal: 'https://www.internalfb.com/intern/diffusion/FBS/browse/master/fbcode/glean/website/', external: 'https://github.com/facebookincubator/Glean/tree/main/glean/website/' }), }, blog: { showReadingTime: true, }, theme: { customCss: require.resolve('./src/css/custom.css'), }, enableEditor: true }, ], ], };