Bereite Docusaurus-Deploy mit Docker und eigener Docs-Site vor

This commit is contained in:
2026-04-21 19:45:16 +02:00
parent 8114a8c645
commit 1637d4bd91
12 changed files with 282 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
import type { Config } from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
const config: Config = {
title: 'FEDEO Docs',
tagline: 'Versionierte Funktionsdokumentation für FEDEO',
url: 'https://docs.example.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'de',
locales: ['de'],
},
presets: [
[
'classic',
{
docs: {
path: '../docs',
routeBasePath: 'docs',
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/DEIN-ORG/DEIN-REPO/tree/main/',
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
},
],
],
themeConfig: {
navbar: {
title: 'FEDEO Docs',
items: [
{
type: 'docSidebar',
sidebarId: 'docsSidebar',
position: 'left',
label: 'Dokumentation',
},
{
href: 'https://github.com/DEIN-ORG/DEIN-REPO',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Dokumentation',
items: [
{
label: 'Funktionsübersicht',
to: '/docs/funktionen/uebersicht',
},
],
},
{
title: 'Projekt',
items: [
{
label: 'Repository',
href: 'https://github.com/DEIN-ORG/DEIN-REPO',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} FEDEO`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
},
};
export default config;