Website/docusaurus.config.js

141 lines
2.9 KiB
JavaScript
Raw Normal View History

2022-02-01 05:49:02 +00:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
2024-01-10 22:31:39 +00:00
import {themes as prismThemes} from 'prism-react-renderer';
2022-02-01 05:49:02 +00:00
/** @type {import('@docusaurus/types').Config} */
const config = {
2022-02-28 04:04:20 +00:00
title: 'Plex',
tagline: 'Welcome to the website and documentation for Plex!',
2022-05-25 23:53:00 +00:00
url: 'https://docs.plex.us.org',
2022-02-01 05:49:02 +00:00
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
2022-03-29 02:45:41 +00:00
organizationName: 'plexusorg',
2022-02-28 06:16:23 +00:00
projectName: 'Website',
2022-02-01 05:49:02 +00:00
presets: [
2022-02-06 01:12:22 +00:00
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
2022-05-05 19:29:29 +00:00
editUrl: 'https://github.com/plexusorg/Website/tree/master',
2022-02-01 05:49:02 +00:00
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
2022-02-06 01:12:22 +00:00
],
2022-02-01 05:49:02 +00:00
],
themeConfig:
2022-02-06 01:12:22 +00:00
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Plex',
logo: {
alt: 'Plex Logo',
2022-02-28 04:04:20 +00:00
src: 'img/plexlogo.png',
2022-02-06 01:12:22 +00:00
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Introduction',
},
{
type: 'doc',
docId: 'compiling',
position: 'left',
label: 'Compiling',
2022-04-09 05:16:24 +00:00
},
{
type: 'doc',
docId: 'permissions',
position: 'left',
label: 'Permissions',
2022-02-06 01:12:22 +00:00
},
{
position: 'left',
2022-08-26 01:44:58 +00:00
label: 'Javadocs',
to: 'pathname:///javadoc',
2022-02-06 01:12:22 +00:00
},
2022-02-28 04:04:20 +00:00
{
position: 'left',
label: 'Downloads',
to: 'https://ci.plex.us.org',
},
2022-02-06 01:12:22 +00:00
{
position: 'right',
label: 'GitHub',
2022-03-29 02:45:41 +00:00
href: 'https://github.com/plexusorg',
2022-02-06 01:12:22 +00:00
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Introduction',
to: '/docs/intro',
},
{
label: 'Compiling',
to: '/docs/compiling',
},
2022-04-09 05:16:24 +00:00
{
label: 'Permissions',
to: '/docs/permissions',
},
2022-02-06 01:12:22 +00:00
{
2022-08-26 01:44:58 +00:00
label: 'Javadocs',
to: 'pathname:///javadoc',
2022-02-01 05:49:02 +00:00
},
2022-02-28 04:04:20 +00:00
{
label: 'Downloads',
to: 'https://ci.plex.us.org',
},
2022-02-06 01:12:22 +00:00
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
2022-08-03 05:57:13 +00:00
href: 'https://discord.gg/MzjRjFAcrZ',
2022-02-01 05:49:02 +00:00
},
2022-02-06 01:12:22 +00:00
],
},
{
title: 'GitHub',
items: [
{
label: 'Plex',
2022-03-29 02:45:41 +00:00
href: 'https://github.com/plexusorg/Plex',
2022-02-06 01:12:22 +00:00
},
{
label: 'Docs',
2022-03-29 02:45:41 +00:00
href: 'https://github.com/plexusorg/Website',
2022-02-06 01:12:22 +00:00
}
],
},
],
2022-08-03 05:57:13 +00:00
copyright: `Copyright © ${new Date().getFullYear()} Plexus Development. Symbols from <a href="https://fontawesome.com/license">FontAwesome</a>. Built with Docusaurus.`,
2022-02-06 01:12:22 +00:00
},
prism: {
2024-01-10 22:31:39 +00:00
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
2024-01-10 23:01:30 +00:00
additionalLanguages: ['bash'],
2022-02-06 01:12:22 +00:00
},
}),
2022-02-01 05:49:02 +00:00
};
module.exports = config;