Files
neko-docs/docusaurus.config.ts
2024-01-10 18:32:28 +02:00

86 lines
2.1 KiB
TypeScript

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: 'nekomata',
tagline: 'Nekomata is a free daemonizer, deployer and application manager',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://nekomata.kotikot.com',
// 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: 'nekomatad', // Usually your GitHub org/user name.
projectName: 'neko-docs', // 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', 'uk'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
image: 'img/nekomata.png',
navbar: {
title: 'nekomata',
logo: {
alt: 'nekomata logo',
src: 'img/nekomata.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Read about',
},
{
type: 'localeDropdown',
position: 'right',
},
{
href: 'https://github.com/nekomatad',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
],
copyright: `Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;