blob: 0986760c259f64cb78b1daab9d29f4a580fb0de7 [file]
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(module.exports = {
title: 'DevLake',
tagline: 'Welcome to DevLake',
url: 'https://devlake.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.ico',
organizationName: 'merico-dev', // Usually your GitHub org/user name.
projectName: 'devlake', // Usually your repo name.
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/merico-dev/lake-website/edit/main/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/merico-dev/lake-website/edit/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarsCommunity.js'),
},
],
],
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh'],
localeConfigs: {
en: {
htmlLang: 'en-GB',
},
// You can omit a locale (e.g. fr) if you don't need to override the defaults
fa: {
direction: 'rtl',
},
},
},
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'DevLake',
logo: {
alt: 'DevLake',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: 'Overview/WhatIsDevLake',
position: 'left',
label: 'Docs',
},
{
type: 'doc',
docId: 'index',
position: 'left',
label: 'Community',
docsPluginId: 'community'
},
{
href: 'https://github.com/merico-dev/lake',
label: 'GitHub',
position: 'right',
},
{
href: 'https://github.com/merico-dev/lake/graphs/contributors',
label: 'Team',
position: 'left',
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Docs',
to: '/docs/Overview/WhatIsDevLake',
},
],
},
{
title: 'Community',
items: [
{
label: 'Slack',
href: 'https://join.slack.com/t/devlake-io/shared_invite/zt-17b6vuvps-x98pqseoUagM7EAmKC82xQ',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/merico-dev/lake',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} DevLake@Merico Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
});