Advanced-Portals/docusaurus.config.js

119 lines
3.2 KiB
JavaScript
Raw Normal View History

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 = {
title: 'Advanced Portals',
tagline: 'An advanced portals plugin for bukkit',
url: 'https://www.sekwah.com/advanced-portals/',
2021-12-11 21:11:32 +01:00
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'sekwah41', // Usually your GitHub org/user name.
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.
editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/edit/main/website/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Advanced Portals',
2021-12-11 21:11:32 +01:00
logo: {
alt: 'Advanced Portals Logo',
src: 'img/advancedportals.png',
2021-12-11 21:11:32 +01:00
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Tutorial',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/sekwah41/Advanced-Portals',
2021-12-11 21:11:32 +01:00
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Downloads',
2021-12-11 21:11:32 +01:00
items: [
/*{
2021-12-11 21:11:32 +01:00
label: 'Tutorial',
to: '/docs/intro',
},*/
{
label: 'Bukkit.org',
href: 'https://dev.bukkit.org/projects/advanced-portals',
2021-12-11 21:11:32 +01:00
},
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.sekwah.com/',
2021-12-11 21:11:32 +01:00
},
{
label: 'Twitter',
href: 'https://twitter.com/sekwah',
2021-12-11 21:11:32 +01:00
},
],
},
{
title: 'More',
items: [
{
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
},
{
label: 'GitHub',
href: 'https://github.com/sekwah41/Advanced-Portals',
2021-12-11 21:11:32 +01:00
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;