Website/docusaurus.config.ts

142 lines
4.3 KiB
TypeScript
Raw Normal View History

2024-11-30 19:31:24 +00:00
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: 'Plex',
tagline: 'Welcome to the website and documentation for Plex!',
favicon: 'img/favicon.ico',
2024-11-30 19:31:24 +00:00
url: 'https://docs.plex.us.org',
baseUrl: '/',
2024-11-30 19:31:24 +00:00
organizationName: 'plexusorg', // Usually your GitHub org/user name.
projectName: 'Website', // Usually your repo name.
2024-11-30 19:31:24 +00:00
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
2024-11-30 19:31:24 +00:00
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
2024-11-30 19:31:24 +00:00
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl:
2024-12-02 04:54:54 +00:00
'https://github.com/plexusorg/Website/tree/new',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
2024-11-30 19:31:24 +00:00
],
themeConfig: {
navbar: {
title: 'Plex',
logo: {
alt: 'Plex Logo',
src: 'img/plexlogo.png',
2024-11-30 19:31:24 +00:00
},
items: [
{
to: '/docs/intro',
label: 'Introduction',
position: 'left'
},
{
to: '/docs/compiling',
label: 'Compiling',
position: 'left'
},
{
to: '/docs/permissions',
label: 'Permissions',
position: 'left'
},
{
position: 'left',
label: 'Javadocs',
to: 'pathname:///javadoc',
},
{
position: 'left',
label: 'Downloads',
to: 'https://ci.plex.us.org',
},
{
position: 'right',
label: 'GitHub',
href: 'https://github.com/plexusorg',
},
],
2024-11-30 19:31:24 +00:00
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Introduction',
to: '/docs/intro',
},
{
label: 'Compiling',
to: '/docs/compiling',
},
{
label: 'Permissions',
to: '/docs/permissions',
},
{
label: 'Javadocs',
to: 'pathname:///javadoc',
},
{
label: 'Downloads',
to: 'https://ci.plex.us.org',
},
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.gg/MzjRjFAcrZ',
},
],
},
{
title: 'GitHub',
items: [
{
label: 'Plex',
href: 'https://github.com/plexusorg/Plex',
},
{
label: 'Docs',
href: 'https://github.com/plexusorg/Website',
}
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Plexus Development. Symbols from <a href="https://fontawesome.com/license">FontAwesome</a>. Built with Docusaurus.`,
2024-11-30 19:31:24 +00:00
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['java', 'bash', 'kotlin'],
2024-11-30 19:31:24 +00:00
},
} satisfies Preset.ThemeConfig,
2024-11-30 19:31:24 +00:00
};
export default config;