mirror of
https://github.com/plexusorg/Website.git
synced 2024-11-14 08:33:32 +00:00
158 lines
3.3 KiB
JavaScript
158 lines
3.3 KiB
JavaScript
// @ts-check
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
const config = {
|
|
title: 'Plex',
|
|
tagline: 'Welcome to the website and documentation for Plex!',
|
|
url: 'https://docs.plex.us.org',
|
|
baseUrl: '/',
|
|
onBrokenLinks: 'throw',
|
|
onBrokenMarkdownLinks: 'warn',
|
|
favicon: 'img/favicon.ico',
|
|
organizationName: 'plexusorg',
|
|
projectName: 'Website',
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
editUrl: 'https://github.com/plexusorg/Website/tree/master',
|
|
},
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
navbar: {
|
|
title: 'Plex',
|
|
logo: {
|
|
alt: 'Plex Logo',
|
|
src: 'img/plexlogo.png',
|
|
},
|
|
items: [
|
|
{
|
|
type: 'doc',
|
|
docId: 'intro',
|
|
position: 'left',
|
|
label: 'Introduction',
|
|
},
|
|
{
|
|
type: 'doc',
|
|
docId: 'compiling',
|
|
position: 'left',
|
|
label: 'Compiling',
|
|
},
|
|
{
|
|
type: 'doc',
|
|
docId: 'permissions',
|
|
position: 'left',
|
|
label: 'Permissions',
|
|
},
|
|
{
|
|
position: 'left',
|
|
label: 'Javadocs (Server)',
|
|
to: 'pathname:///javadoc/server',
|
|
},
|
|
{
|
|
position: 'left',
|
|
label: 'Javadocs (API)',
|
|
to: 'pathname:///javadoc/api',
|
|
},
|
|
{
|
|
position: 'left',
|
|
label: 'Downloads',
|
|
to: 'https://ci.plex.us.org',
|
|
},
|
|
{
|
|
position: 'right',
|
|
label: 'GitHub',
|
|
href: 'https://github.com/plexusorg',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Docs',
|
|
items: [
|
|
{
|
|
label: 'Introduction',
|
|
to: '/docs/intro',
|
|
},
|
|
{
|
|
label: 'Compiling',
|
|
to: '/docs/compiling',
|
|
},
|
|
{
|
|
label: 'Permissions',
|
|
to: '/docs/permissions',
|
|
},
|
|
{
|
|
label: 'Javadocs (Server)',
|
|
to: 'pathname:///javadoc/server',
|
|
},
|
|
{
|
|
label: 'Javadocs (API)',
|
|
to: 'pathname:///javadoc/api',
|
|
},
|
|
{
|
|
label: 'Downloads',
|
|
to: 'https://ci.plex.us.org',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'Community',
|
|
items: [
|
|
{
|
|
label: 'Forums',
|
|
href: 'https://forum.plex.us.org',
|
|
},
|
|
{
|
|
label: 'Discord',
|
|
href: 'https://discord.gg/HZsdUnsRKc',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'GitHub',
|
|
items: [
|
|
{
|
|
label: 'Plex',
|
|
href: 'https://github.com/plexusorg/Plex',
|
|
},
|
|
{
|
|
label: 'Blackout',
|
|
href: 'https://github.com/plexusorg/Blackout',
|
|
},
|
|
{
|
|
label: 'Docs',
|
|
href: 'https://github.com/plexusorg/Website',
|
|
}
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} Plex. Symbols from <a href="https://fontawesome.com/license">FontAwesome</a>. Built with Docusaurus.`,
|
|
},
|
|
prism: {
|
|
theme: lightCodeTheme,
|
|
darkTheme: darkCodeTheme,
|
|
},
|
|
}),
|
|
};
|
|
|
|
module.exports = config;
|