Files
GeyserWebsite/docusaurus.config.ts
T
2024-03-03 12:40:19 -08:00

130 lines
4.2 KiB
TypeScript

import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'GeyserMC',
tagline: 'Revolutionize Your Minecraft Server',
favicon: 'img/favicon.ico',
// TODO: Change to correct domain in production!
url: 'https://chew-geyserwiki.pages.dev',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'GeyserMC', // Usually your GitHub org/user name.
projectName: 'GeyserWiki', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// 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'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/GeyserMC/Geyser/tree/main/',
routeBasePath: '/', // Serve the docs at the site's root
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/site/geyser.png',
navbar: {
title: 'GeyserMC',
logo: {
alt: 'GeyserMC logo',
src: 'img/apple-touch-icon.png',
},
items: [
{
type: 'dropdown',
label: 'Wiki',
className: 'header-wiki-link',
position: 'right',
to: 'geyser/setup',
items: [
{
type: 'doc',
docId: 'geyser/setup',
label: 'Geyser',
},
{
type: 'doc',
docId: 'floodgate/setup',
label: 'Floodgate',
},
{
type: 'doc',
docId: 'other/geyseroptionalpack',
label: 'Other',
},
]
},
{
to: 'download',
label: 'Download',
position: 'right',
className: 'header-download-link'
},
{
href: 'https://github.com/GeyserMC/Geyser',
label: 'GitHub',
position: 'right',
className: 'header-github-link'
},
{
href: 'https://discord.gg/geysermc',
label: 'Discord',
position: 'right',
className: 'header-discord-link'
},
],
},
footer: {
style: 'dark',
copyright: `© ${new Date().getFullYear()} GeyserMC | Built with Docusaurus`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'batch', 'java', 'json'],
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
docs: {
sidebar: {
hideable: true,
}
},
} satisfies Preset.ThemeConfig,
};
export default config;