- Docusaurus für Anwenderdokumentation (/docs) - Zweiter Docusaurus-Bereich für Entwickler-Wiki vorbereitet (/docs/entwickler) - README.md als Einstieg für Entwickler - CHANGELOG.md zur Nachverfolgung von Änderungen → Dokumentation und Projektstruktur jetzt vollständig nachvollziehbar versioniert.
73 lines
1.5 KiB
TypeScript
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: "/kabelueberwachung",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} Littwin Systemtechnik`,
|
|
},
|
|
prism: {
|
|
theme: prismThemes.github,
|
|
darkTheme: prismThemes.dracula,
|
|
},
|
|
} satisfies Preset.ThemeConfig,
|
|
};
|
|
|
|
export default config;
|