This commit is contained in:
Erik 2024-01-17 13:14:00 +02:00
parent 9e7e0a5cee
commit 17b283ab58
1 changed files with 105 additions and 105 deletions

View File

@ -1,135 +1,135 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
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 = {
title: 'Galactic Bot',
tagline: 'Advanced moderation bot for your Discord server',
favicon: 'img/favicon.ico',
title: 'Galactic Bot',
tagline: 'Advanced moderation bot for your Discord server',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://galactic.corgi.wtf',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/docs',
// Set the production url of your site here
url: 'https://galactic.corgi.wtf',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/docs',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
// organizationName: 'Galactic', // Usually your GitHub org/user name.
// projectName: 'docusaurus', // Usually your repo name.
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
// organizationName: 'Galactic', // Usually your GitHub org/user name.
// projectName: 'docusaurus', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: [ 'en' ],
},
presets: [
[
'classic',
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://git.corgi.wtf/Galactic/docs.git',
routeBasePath: '/pages'
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
routeBasePath: '/changelog'
},
theme: {
customCss: './src/css/custom.css',
},
routeBasePath: '/pages'
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
routeBasePath: '/changelog'
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
],
themeConfig: {
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Galactic Bot',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'docs',
position: 'left',
label: 'Docs',
},
{to: '/changelog', label: 'Changelog', position: 'left'},
{
label: 'Dashboard',
href: 'https://galactic.corgi.wtf/dashboard',
target: '_self'
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Initial setup',
to: 'pages/tutorials/InitialSetup',
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Galactic Bot',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
{
label: 'Moderation intro',
to: 'pages/tutorials/Moderation'
}
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discordapp.com/invite/WDCTKGp',
type: 'docSidebar',
sidebarId: 'docs',
position: 'left',
label: 'Docs',
},
{ to: '/changelog', label: 'Changelog', position: 'left' },
{
label: 'Dashboard',
href: 'https://galactic.corgi.wtf/dashboard',
target: '_self'
},
],
},
{
title: 'More',
items: [
footer: {
style: 'dark',
links: [
{
label: 'Change Log',
to: '/changes',
title: 'Docs',
items: [
{
label: 'Initial setup',
to: 'pages/tutorials/InitialSetup',
},
{
label: 'Moderation intro',
to: 'pages/tutorials/Moderation'
}
],
},
{
label: 'Invite',
href: 'https://discordapp.com/oauth2/authorize?&client_id=179805777492574208&scope=bot&permissions=8',
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discordapp.com/invite/WDCTKGp',
},
],
},
{
label: 'Repository',
href: 'https://git.corgi.wtf/galactic/docs'
}
title: 'More',
items: [
{
label: 'Change Log',
to: '/changelog',
},
{
label: 'Invite',
href: 'https://discordapp.com/oauth2/authorize?&client_id=179805777492574208&scope=bot&permissions=8',
},
{
label: 'Repository',
href: 'https://git.corgi.wtf/galactic/docs'
}
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Galactic Bot. Built with Docusaurus.`,
},
],
copyright: `Copyright © ${new Date().getFullYear()} Galactic Bot. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;