2024-02-22 01:17:23 -05:00
|
|
|
// @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',
|
2024-02-22 01:17:23 -05:00
|
|
|
|
|
|
|
// Set the production url of your site here
|
2024-02-22 02:06:15 -05:00
|
|
|
url: 'https://tiktok.github.io',
|
2024-02-22 01:17:23 -05:00
|
|
|
// 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/',
|
2024-02-22 01:17:23 -05:00
|
|
|
|
|
|
|
// 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.
|
2024-02-22 01:17:23 -05:00
|
|
|
|
|
|
|
onBrokenLinks: 'throw',
|
2024-02-22 02:06:15 -05:00
|
|
|
onBrokenMarkdownLinks: 'throw',
|
2024-02-22 01:17:23 -05:00
|
|
|
|
|
|
|
// 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']
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
2024-02-22 01:17:23 -05:00
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'classic',
|
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
|
|
|
docs: {
|
2024-02-22 02:06:15 -05:00
|
|
|
routeBasePath: '/',
|
2024-02-22 01:17:23 -05:00
|
|
|
sidebarPath: './sidebars.js',
|
2024-02-22 02:06:15 -05:00
|
|
|
breadcrumbs: false,
|
2024-02-22 01:17:23 -05:00
|
|
|
// 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 01:17:23 -05:00
|
|
|
},
|
2024-02-22 02:06:15 -05:00
|
|
|
/*
|
2024-02-22 01:17:23 -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
|
|
|
*/
|
2024-02-22 01:17:23 -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',
|
2024-02-22 01:17:23 -05:00
|
|
|
navbar: {
|
2024-02-22 02:06:15 -05:00
|
|
|
title: '',
|
2024-02-22 01:17:23 -05:00
|
|
|
logo: {
|
2024-02-22 02:06:15 -05:00
|
|
|
alt: 'Sparo',
|
|
|
|
src: 'images/site/sparo-title.svg'
|
2024-02-22 01:17:23 -05:00
|
|
|
},
|
|
|
|
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 01:17:23 -05:00
|
|
|
{
|
2024-02-22 02:06:15 -05:00
|
|
|
href: 'https://github.com/tiktok/sparo',
|
2024-02-22 01:17:23 -05:00
|
|
|
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'
|
2024-02-22 01:17:23 -05:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
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.`
|
2024-02-22 01:17:23 -05:00
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: prismThemes.github,
|
|
|
|
darkTheme: prismThemes.dracula
|
|
|
|
}
|
|
|
|
})
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|