Files
CPLv4.0/docusaurus/docusaurus.config.ts
2025-05-04 16:06:46 +02:00

73 lines
1.5 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: "CPLv4.0 Anwenderhilfe",
tagline: "Dokumentation für Anwender der CPLv4.0 Weboberfläche",
favicon: "img/favicon.ico",
url: "http://localhost",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
i18n: {
defaultLocale: "de",
locales: ["de"],
},
presets: [
[
"classic",
{
docs: {
sidebarPath: "./sidebars.ts",
routeBasePath: "/docs/",
},
blog: false,
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],
themeConfig: {
image: "img/docusaurus-social-card.jpg",
navbar: {
title: "CPLv4.0 Wiki",
logo: {
alt: "CPLv4.0 Logo",
src: "img/logo.svg",
},
},
footer: {
style: "dark",
links: [
{
title: "Dokumentation",
items: [
{
label: "Startseite",
to: "/",
},
{
label: "Kabelüberwachung",
to: "/docs/kabelueberwachung",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Littwin Systemtechnik`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;