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 = {
|
2024-11-30 20:00:25 +00:00
|
|
|
title: 'Plex',
|
|
|
|
tagline: 'Welcome to the website and documentation for Plex!',
|
|
|
|
favicon: 'img/favicon.ico',
|
2024-11-30 19:31:24 +00:00
|
|
|
|
2024-11-30 20:00:25 +00:00
|
|
|
url: 'https://docs.plex.us.org',
|
|
|
|
baseUrl: '/',
|
2024-11-30 19:31:24 +00:00
|
|
|
|
2024-11-30 20:00:25 +00:00
|
|
|
organizationName: 'plexusorg', // Usually your GitHub org/user name.
|
|
|
|
projectName: 'Website', // Usually your repo name.
|
2024-11-30 19:31:24 +00:00
|
|
|
|
2024-11-30 20:00:25 +00:00
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
2024-11-30 19:31:24 +00:00
|
|
|
|
2024-11-30 20:00:25 +00:00
|
|
|
i18n: {
|
|
|
|
defaultLocale: 'en',
|
|
|
|
locales: ['en'],
|
|
|
|
},
|
2024-11-30 19:31:24 +00:00
|
|
|
|
2024-11-30 20:00:25 +00:00
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'classic',
|
|
|
|
{
|
|
|
|
docs: {
|
|
|
|
sidebarPath: './sidebars.ts',
|
|
|
|
editUrl:
|
2024-12-02 04:54:54 +00:00
|
|
|
'https://github.com/plexusorg/Website/tree/new',
|
2024-11-30 20:00:25 +00:00
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: './src/css/custom.css',
|
|
|
|
},
|
|
|
|
} satisfies Preset.Options,
|
|
|
|
],
|
2024-11-30 19:31:24 +00:00
|
|
|
],
|
|
|
|
|
2024-11-30 20:00:25 +00:00
|
|
|
themeConfig: {
|
|
|
|
navbar: {
|
|
|
|
title: 'Plex',
|
|
|
|
logo: {
|
|
|
|
alt: 'Plex Logo',
|
|
|
|
src: 'img/plexlogo.png',
|
2024-11-30 19:31:24 +00:00
|
|
|
},
|
2024-11-30 20:00:25 +00:00
|
|
|
items: [
|
|
|
|
{
|
2024-12-02 04:54:06 +00:00
|
|
|
to: '/docs/intro',
|
2024-11-30 20:00:25 +00:00
|
|
|
label: 'Introduction',
|
2024-12-02 04:54:06 +00:00
|
|
|
position: 'left'
|
2024-11-30 20:00:25 +00:00
|
|
|
},
|
|
|
|
{
|
2024-12-02 04:54:06 +00:00
|
|
|
to: '/docs/compiling',
|
2024-11-30 20:00:25 +00:00
|
|
|
label: 'Compiling',
|
2024-12-02 04:54:06 +00:00
|
|
|
position: 'left'
|
2024-11-30 20:00:25 +00:00
|
|
|
},
|
|
|
|
{
|
2024-12-02 04:54:06 +00:00
|
|
|
to: '/docs/permissions',
|
2024-11-30 20:00:25 +00:00
|
|
|
label: 'Permissions',
|
2024-12-02 04:54:06 +00:00
|
|
|
position: 'left'
|
2024-11-30 20:00:25 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
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
|
|
|
},
|
2024-11-30 20:00:25 +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
|
|
|
},
|
2024-11-30 20:00:25 +00:00
|
|
|
prism: {
|
|
|
|
theme: prismThemes.github,
|
|
|
|
darkTheme: prismThemes.dracula,
|
2024-11-30 19:31:24 +00:00
|
|
|
},
|
2024-11-30 20:00:25 +00:00
|
|
|
} satisfies Preset.ThemeConfig,
|
2024-11-30 19:31:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|