Files
bracket/docs/docusaurus.config.js
2023-11-27 18:36:22 +01:00

135 lines
3.8 KiB
JavaScript

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const {themes} = require('prism-react-renderer');
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Bracket',
tagline: 'Free and open source tournament scheduling system',
favicon: 'img/logo.svg',
// Set the production url of your site here
url: 'https://your-docusaurus-test-site.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/bracket/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'evroon', // Usually your GitHub org/user name.
projectName: 'bracket', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internalization, 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'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// 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/',
},
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/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: [require.resolve('docusaurus-lunr-search')],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/logo.svg',
navbar: {
title: 'Bracket',
logo: {
alt: 'Bracket Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Docs',
},
{
href: 'https://github.com/evroon/bracket',
label: 'GitHub',
position: 'right',
},
],
},
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: false,
disableSwitch: true
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Introduction',
to: '/docs/intro',
},
{
label: 'Configuration',
to: '/docs/getting-started/configuration',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/evroon/bracket',
},
{
label: 'Changelog',
href: 'https://github.com/evroon/bracket/releases',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Bracket. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['bash', 'diff', 'json'],
},
}),
};
module.exports = config;