tiktok-sparo/apps/website/docusaurus.config.js

127 lines
3.4 KiB
JavaScript
Raw Normal View History

// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
2024-02-22 02:06:15 -05:00
title: 'Sparo',
tagline: 'Faster Git for large frontend monorepos',
favicon: 'images/site/sparo-favicon.ico',
// Set the production url of your site here
2024-02-22 02:06:15 -05:00
url: 'https://tiktok.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
2024-02-22 02:06:15 -05:00
baseUrl: '/sparo/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
2024-02-22 02:06:15 -05:00
organizationName: 'tiktok', // Usually your GitHub org/user name.
projectName: 'sparo', // Usually your repo name.
onBrokenLinks: 'throw',
2024-02-22 02:06:15 -05:00
onBrokenMarkdownLinks: 'throw',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en']
},
2024-02-27 00:27:10 -05:00
plugins: [
[
require.resolve('docusaurus-lunr-search'),
{
// language codes
languages: ['en']
}
]
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
2024-02-22 02:06:15 -05:00
routeBasePath: '/',
sidebarPath: './sidebars.js',
2024-02-22 02:06:15 -05:00
breadcrumbs: false,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
2024-02-22 02:06:15 -05:00
editUrl: 'https://github.com/tiktok/sparo/tree/main/apps/website/'
},
2024-02-22 02:06:15 -05:00
/*
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/'
},
2024-02-22 02:06:15 -05:00
*/
theme: {
customCss: './src/css/custom.css'
}
})
]
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
2024-02-22 02:06:15 -05:00
image: 'images/site/sparo-ograph.png',
navbar: {
2024-02-22 02:06:15 -05:00
title: '',
logo: {
2024-02-22 02:06:15 -05:00
alt: 'Sparo',
src: 'images/site/sparo-title.svg'
},
items: [
2024-02-22 02:40:31 -05:00
{
type: 'localeDropdown',
position: 'left'
},
{
to: 'pages/guide/getting_started',
position: 'right',
label: 'Docs'
},
{
2024-02-22 02:06:15 -05:00
href: 'https://github.com/tiktok/sparo',
label: 'GitHub',
position: 'right'
2024-02-22 02:40:31 -05:00
},
{
to: 'pages/support/news',
position: 'right',
label: 'News'
},
{
to: 'pages/support/help',
position: 'right',
label: 'Help'
}
]
},
footer: {
style: 'dark',
2024-02-22 02:48:21 -05:00
links: [],
2024-02-22 02:06:15 -05:00
copyright: `Copyright © ${new Date().getFullYear()} TikTok Pte. Ltd.`
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula
}
})
};
export default config;