Files
GeyserWebsite/docusaurus.config.ts
T
2024-01-25 22:38:57 -08:00

129 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 Wiki',
tagline: 'Meowing strictly prohibited',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://wiki.geysermc.org',
// 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/docusaurus-social-card.jpg',
navbar: {
title: 'GeyserWiki',
logo: {
alt: 'GeyserMC logo',
src: 'img/apple-touch-icon.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'geyserSidebar',
position: 'left',
label: 'Geyser',
},
{
type: 'docSidebar',
sidebarId: 'floodgateSidebar',
position: 'left',
label: 'Floodgate',
},
{
type: 'docSidebar',
sidebarId: 'otherSidebar',
position: 'left',
label: 'Other',
},
{
href: 'https://github.com/GeyserMC/Geyser',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/GeyserMC/Geyser',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'batch', 'java'],
},
} satisfies Preset.ThemeConfig,
};
export default config;