EllieBot-docs/docusaurus.config.js

108 lines
2.8 KiB
JavaScript
Raw Normal View History

2023-11-07 01:21:05 -08:00
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import {themes as prismThemes} from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Elliebot Docs',
tagline: 'The documentation site for Elliebot',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://docs.elliebot.net',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: '', // Usually your GitHub org/user name.
projectName: '', // Usually your repo name.
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'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: './sidebars.js',
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
navbar: {
title: 'Elliebot docs',
logo: {
alt: 'My Site Logo',
src: 'img/logo.png',
},
items: [
{
href: 'https://toastielab.dev/EllieBotDevs/EllieBot-docs',
label: 'Toastielab',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.com/invite/SVQVzJq',
},
],
},
{
title: 'More',
items: [
{
label: 'Toastielab',
href: 'https://toastielab.dev/EllieBotDevs/EllieBot-docs',
},
{
label: 'Our blog',
href: 'https://blog.elliebot.net'
}
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} EllieBotDevs`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
export default config;