blob: 47d51f59ef53322d7971967c4dedba10b1e7124f [file] [log] [blame]
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: 'DevLake is an open-source development data platform that converges operational data sources to distill development insights throughout the software development life cycle (SDLC).',
url: 'https://devlake.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/logo.svg',
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'),
// set to undefined to remove Edit this Page
editUrl: undefined,
},
blog: {
showReadingTime: true,
readingTime: ({content, frontMatter, defaultReadingTime}) =>
defaultReadingTime({content, options: {wordsPerMinute: 300}}),
// Please change this to your repo.
editUrl:
undefined,
blogSidebarTitle: 'All posts',
blogSidebarCount: 'ALL',
},
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: 'right',
label: 'Docs',
},
{
type: 'doc',
docId: 'index',
position: 'right',
label: 'Community',
docsPluginId: 'community'
},
{to: '/blog', label: 'Blog', position: 'right'},
{
href: 'https://github.com/merico-dev/lake/graphs/contributors',
label: 'Team',
position: 'right',
},
{
href: 'https://github.com/merico-dev/lake',
label: 'GitHub',
position: 'right',
},
{
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.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
});