2021-12-11 21:11:32 +01:00
|
|
|
// @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 = {
|
2021-12-11 23:22:01 +01:00
|
|
|
title: 'Advanced Portals',
|
|
|
|
tagline: 'An advanced portals plugin for bukkit',
|
2021-12-12 14:38:11 +01:00
|
|
|
url: 'https://advancedportals.sekwah.com/',
|
|
|
|
baseUrl: '/',
|
2021-12-11 21:11:32 +01:00
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
favicon: 'img/favicon.ico',
|
2021-12-11 23:22:01 +01:00
|
|
|
organizationName: 'sekwah41', // Usually your GitHub org/user name.
|
2021-12-12 03:14:43 +01:00
|
|
|
projectName: 'Advanced-Portals', // Usually your repo name.
|
2021-12-11 21:11:32 +01:00
|
|
|
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'classic',
|
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
|
|
|
docs: {
|
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
|
|
// Please change this to your repo.
|
2021-12-12 03:10:41 +01:00
|
|
|
editUrl: 'https://github.com/sekwah41/Advanced-Portals/edit/website/',
|
2021-12-11 21:11:32 +01:00
|
|
|
},
|
2021-12-12 00:09:59 +01:00
|
|
|
blog: false,
|
2021-12-11 21:11:32 +01:00
|
|
|
theme: {
|
|
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
({
|
|
|
|
navbar: {
|
2021-12-11 23:22:01 +01:00
|
|
|
title: 'Advanced Portals',
|
2021-12-11 21:11:32 +01:00
|
|
|
logo: {
|
2021-12-11 23:22:01 +01:00
|
|
|
alt: 'Advanced Portals Logo',
|
|
|
|
src: 'img/advancedportals.png',
|
2021-12-11 21:11:32 +01:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
2021-12-12 00:09:59 +01:00
|
|
|
to: '/docs/intro',
|
2021-12-11 21:11:32 +01:00
|
|
|
position: 'left',
|
|
|
|
label: 'Tutorial',
|
|
|
|
},
|
2021-12-12 00:09:59 +01:00
|
|
|
//{to: '/blog', label: 'Blog', position: 'left'},
|
|
|
|
{to: '/docs/commands', label: 'Commands', position: 'left'},
|
|
|
|
{to: '/docs/portal-tags', label: 'Portal Tags', position: 'left'},
|
2021-12-11 21:11:32 +01:00
|
|
|
{
|
2021-12-11 23:22:01 +01:00
|
|
|
href: 'https://github.com/sekwah41/Advanced-Portals',
|
2021-12-11 21:11:32 +01:00
|
|
|
label: 'GitHub',
|
|
|
|
position: 'right',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
2021-12-11 23:22:01 +01:00
|
|
|
title: 'Downloads',
|
2021-12-11 21:11:32 +01:00
|
|
|
items: [
|
2021-12-11 23:22:01 +01:00
|
|
|
{
|
|
|
|
label: 'Bukkit.org',
|
|
|
|
href: 'https://dev.bukkit.org/projects/advanced-portals',
|
2021-12-11 21:11:32 +01:00
|
|
|
},
|
2021-12-12 03:10:41 +01:00
|
|
|
{
|
|
|
|
label: 'GitHub',
|
|
|
|
href: 'https://github.com/sekwah41/Advanced-Portals/releases',
|
|
|
|
},
|
2021-12-11 21:11:32 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Discord',
|
2021-12-11 23:22:01 +01:00
|
|
|
href: 'https://discord.sekwah.com/',
|
2021-12-11 21:11:32 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Twitter',
|
2021-12-11 23:22:01 +01:00
|
|
|
href: 'https://twitter.com/sekwah',
|
2021-12-11 21:11:32 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'More',
|
|
|
|
items: [
|
|
|
|
{
|
2021-12-11 23:22:01 +01:00
|
|
|
label: 'Changelog',
|
|
|
|
href: 'https://github.com/sekwah41/Advanced-Portals/blob/spigot-1.13-1.16/CHANGELOG.md',
|
2021-12-11 21:11:32 +01:00
|
|
|
},
|
|
|
|
{
|
2021-12-12 03:10:41 +01:00
|
|
|
label: 'Source Code',
|
2021-12-11 23:22:01 +01:00
|
|
|
href: 'https://github.com/sekwah41/Advanced-Portals',
|
2021-12-11 21:11:32 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2021-12-12 03:10:41 +01:00
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} Sekwah.`,
|
2021-12-11 21:11:32 +01:00
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
darkTheme: darkCodeTheme,
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|