Files
unyo-web/website/docusaurus.config.js

86 lines
2.1 KiB
JavaScript

// @ts-check
const {themes} = require('prism-react-renderer');
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Unyo',
tagline: 'Simple anime streaming & manga reading, ad-free.',
url: 'https://unyo.dev',
baseUrl: '/',
onBrokenLinks: 'throw',
markdown: {
format: 'mdx',
mdx1Compat: {
comments: true,
},
},
favicon: 'img/logo.png',
organizationName: 'K3vinb5',
projectName: 'Unyo',
trailingSlash: false,
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://gitea.k3vinb5.dev/Unyo/unyo-web/src/branch/master/website',
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
respectPrefersColorScheme: false,
},
image: 'img/mascot.png',
navbar: {
title: 'Unyo',
logo: {
alt: 'Unyo Logo',
src: 'img/logo.png',
},
items: [
{
to: '/docs',
label: 'Docs',
position: 'left',
},
{
href: 'https://kuma.k3vinb5.dev/status/unyo',
label: 'Status',
position: 'left',
},
{
href: 'https://github.com/K3vinb5/Unyo',
label: 'GitHub',
position: 'right',
className: 'header-github-link',
},
{
href: 'https://gitea.k3vinb5.dev/Unyo',
label: 'Gitea',
position: 'right',
className: 'header-gitea-link',
},
],
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;