Files
Documentation/docs-site/docusaurus.config.ts
T
Shaz fc82d386a7
Build and deploy docusaurus site / build (push) Failing after 1m15s
fix build and first clean
2026-03-05 19:43:49 +01:00

90 lines
2.3 KiB
TypeScript

import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'Home Server Docs',
tagline: 'Homelab documentation',
favicon: 'img/favicon.ico',
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
future: {
v4: true, // Improve compatibility with the upcoming Docusaurus v4
},
// Set the production url of your site here (unused in homelab, but required)
url: 'https://docs.lan',
// Site is served at the root
baseUrl: '/',
// Git hosting metadata (not critical for homelab usage)
organizationName: 'Shaz',
projectName: 'Documentation',
onBrokenLinks: 'throw',
// 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',
{
docs: {
// Use existing Markdown under Doc/ as the docs root
path: '../Doc',
routeBasePath: '/',
sidebarPath: './sidebars.ts',
editUrl: undefined,
},
// No blog for this knowledge base
blog: false,
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
title: 'Home Server Docs',
logo: {
alt: 'Home Server Docs Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Documentation',
},
],
},
footer: {
style: 'dark',
links: [],
copyright: `Documentation built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;