2024-01-25 22:38:57 -08:00
import { themes as prismThemes } from 'prism-react-renderer' ;
import type { Config } from '@docusaurus/types' ;
2023-11-07 19:40:55 -06:00
import type * as Preset from '@docusaurus/preset-classic' ;
const config : Config = {
2024-01-29 00:04:58 -08:00
title : 'GeyserMC' ,
2024-02-25 00:53:46 -08:00
tagline : 'Revolutionize Your Minecraft Server' ,
2024-01-25 22:38:57 -08:00
favicon : 'img/favicon.ico' ,
2023-11-07 19:40:55 -06:00
2024-03-03 12:40:19 -08:00
// TODO: Change to correct domain in production!
2024-03-10 22:04:11 -07:00
url : 'https://dev.geysermc.org' ,
2024-01-25 22:38:57 -08:00
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl : '/' ,
2023-11-07 19:40:55 -06:00
2024-01-25 22:38:57 -08:00
// 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.
2023-11-07 19:40:55 -06:00
2024-01-25 22:38:57 -08:00
onBrokenLinks : 'throw' ,
onBrokenMarkdownLinks : 'warn' ,
2023-11-07 19:40:55 -06:00
2024-01-25 22:38:57 -08:00
// 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' ,
2024-03-03 14:46:48 -08:00
locales : [ 'en' , 'de' ],
2024-01-25 22:38:57 -08:00
},
2023-11-07 19:40:55 -06:00
2024-01-25 22:38:57 -08:00
presets : [
[
'classic' ,
{
docs : {
sidebarPath : './sidebars.ts' ,
editUrl :
'https://github.com/GeyserMC/Geyser/tree/main/' ,
2023-11-07 19:55:30 -06:00
2024-01-25 22:38:57 -08:00
routeBasePath : '/' , // Serve the docs at the site's root
},
2024-03-11 23:00:24 -07:00
blog : {},
2024-01-25 22:38:57 -08:00
theme : {
customCss : './src/css/custom.css' ,
},
} satisfies Preset . Options ,
],
2023-11-07 19:40:55 -06:00
],
2024-01-25 22:38:57 -08:00
themeConfig : {
2024-03-03 12:07:43 -08:00
image : 'img/site/geyser.png' ,
2024-01-25 22:38:57 -08:00
navbar : {
2024-01-29 00:04:58 -08:00
title : 'GeyserMC' ,
2024-01-25 22:38:57 -08:00
logo : {
alt : 'GeyserMC logo' ,
src : 'img/apple-touch-icon.png' ,
2023-11-07 19:40:55 -06:00
},
2024-01-25 22:38:57 -08:00
items : [
{
2024-01-29 00:04:58 -08:00
type : 'dropdown' ,
label : 'Wiki' ,
2024-03-02 23:32:57 -08:00
className : 'header-wiki-link' ,
2024-03-11 23:00:24 -07:00
position : 'left' ,
2024-01-29 00:04:58 -08:00
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' ,
},
]
2024-01-25 22:38:57 -08:00
},
2024-03-11 23:00:24 -07:00
{
to : 'blog' ,
label : 'Blog' ,
position : 'left' ,
className : 'header-blog-link'
},
2024-01-25 22:38:57 -08:00
{
2024-01-29 00:04:58 -08:00
to : 'download' ,
2024-03-02 23:32:57 -08:00
label : 'Download' ,
2024-03-11 23:00:24 -07:00
position : 'left' ,
2024-01-29 00:04:58 -08:00
className : 'header-download-link'
2024-01-25 22:38:57 -08:00
},
{
2024-01-29 00:04:58 -08:00
href : 'https://github.com/GeyserMC/Geyser' ,
position : 'right' ,
className : 'header-github-link'
2024-01-25 22:38:57 -08:00
},
{
2024-01-29 00:04:58 -08:00
href : 'https://discord.gg/geysermc' ,
2024-01-25 22:38:57 -08:00
position : 'right' ,
2024-01-29 00:04:58 -08:00
className : 'header-discord-link'
2024-01-25 22:38:57 -08:00
},
2024-03-03 14:46:48 -08:00
{
type : 'localeDropdown' ,
position : 'right' ,
},
2024-01-25 22:38:57 -08:00
],
2023-11-07 19:40:55 -06:00
},
2024-01-25 22:38:57 -08:00
footer : {
style : 'dark' ,
2024-03-02 23:32:57 -08:00
copyright : `© ${ new Date (). getFullYear () } GeyserMC | Built with Docusaurus` ,
2023-11-07 19:40:55 -06:00
},
2024-01-25 22:38:57 -08:00
prism : {
theme : prismThemes.github ,
darkTheme : prismThemes.dracula ,
2024-03-02 23:32:57 -08:00
additionalLanguages : [ 'bash' , 'batch' , 'java' , 'json' ],
2024-01-25 22:38:57 -08:00
},
2024-01-27 23:08:56 -08:00
colorMode : {
defaultMode : 'dark' ,
disableSwitch : false ,
2024-01-28 15:40:31 -08:00
respectPrefersColorScheme : false ,
2024-01-27 23:08:56 -08:00
},
2024-03-02 23:32:57 -08:00
docs : {
sidebar : {
hideable : true ,
}
},
2024-03-11 15:54:38 +00:00
algolia : {
appId : '0DTHI9QFCH' ,
apiKey : '3cc0567f76d2ed3ffdb4cc94f0ac9815' ,
indexName : 'geysermc' ,
contextualSearch : true ,
searchPagePath : 'search' ,
},
2024-03-11 18:16:02 +00:00
// Remove in production
announcementBar : {
id : 'support_us' ,
content : '<b>This is the in-development version of the site and may not be fully updated. Vist the <a target="_blank" rel="noopener noreferrer" href="#">main site</a> or <a target="_blank" rel="noopener noreferrer" href="#">current wiki</a> for the most updated info.</b>' ,
backgroundColor : '#ff333d' ,
textColor : '#e3e3e3' ,
isCloseable : true ,
},
2024-01-25 22:38:57 -08:00
} satisfies Preset . ThemeConfig ,
2023-11-07 19:40:55 -06:00
};
export default config ;