2023-09-03 19:05:16 +02:00
|
|
|
// @ts-check
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
|
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
const config = {
|
|
|
|
title: 'Nicks Docs',
|
|
|
|
tagline: 'Dinosaurs are cool',
|
|
|
|
favicon: 'img/favicon.ico',
|
|
|
|
|
|
|
|
// Set the production url of your site here
|
2023-09-09 14:57:19 +02:00
|
|
|
url: 'https://docs.nick-slowinski.de',
|
2023-09-03 19:05:16 +02:00
|
|
|
// 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: 'nick-slowinski.de', // Usually your GitHub org/user name.
|
|
|
|
projectName: 'docs', // Usually your repo name.
|
|
|
|
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
|
|
|
|
// Even if you don't use internalization, 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: 'de',
|
2023-09-10 15:07:34 +02:00
|
|
|
locales: ['de'],
|
2023-09-03 19:05:16 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'classic',
|
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
|
|
|
docs: {
|
|
|
|
routeBasePath: '/',
|
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
|
|
},
|
|
|
|
blog: false,
|
|
|
|
theme: {
|
|
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
({
|
|
|
|
colorMode: {
|
|
|
|
defaultMode: 'light',
|
|
|
|
disableSwitch: false,
|
|
|
|
respectPrefersColorScheme: true,
|
|
|
|
},
|
|
|
|
announcementBar: {
|
|
|
|
id: 'announcementBar-1',
|
|
|
|
content: 'Diese Dokumentation befindet sich noch im Aufbau und wird nach für nach vervollständigt.',
|
|
|
|
isCloseable: false,
|
|
|
|
},
|
|
|
|
// Replace with your project's social card
|
|
|
|
image: 'img/docusaurus-social-card.jpg',
|
|
|
|
navbar: {
|
|
|
|
title: 'Nicks Docs',
|
|
|
|
logo: {
|
|
|
|
alt: 'My Site Logo',
|
|
|
|
src: 'img/logo.svg',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'Rechtliches',
|
|
|
|
items: [
|
|
|
|
{
|
2023-09-09 11:33:53 +02:00
|
|
|
label: 'Impressum',
|
|
|
|
to: 'https://www.nick-slowinski.de/impressum/',
|
2023-09-03 19:05:16 +02:00
|
|
|
},
|
|
|
|
{
|
2023-09-09 11:33:53 +02:00
|
|
|
label: 'Datenschutzerklärung',
|
|
|
|
to: 'https://www.nick-slowinski.de/impressum/#datenschutzerkl%C3%A4rung',
|
2023-09-03 19:05:16 +02:00
|
|
|
},
|
|
|
|
{
|
2023-09-09 11:33:53 +02:00
|
|
|
label: 'Haftungsausschluss',
|
|
|
|
to: 'https://www.nick-slowinski.de/impressum/#haftungsausschluss',
|
2023-09-03 19:05:16 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2023-09-09 14:52:06 +02:00
|
|
|
title: 'Diverses',
|
2023-09-03 19:05:16 +02:00
|
|
|
items: [
|
|
|
|
{
|
2023-09-09 14:52:06 +02:00
|
|
|
label: 'Status',
|
|
|
|
to: 'https://status.nick-slowinski.de',
|
2023-09-03 19:05:16 +02:00
|
|
|
},
|
|
|
|
{
|
2023-09-09 14:52:06 +02:00
|
|
|
label: 'Forum',
|
|
|
|
to: 'https://community.nick-slowinski.de',
|
2023-09-03 19:05:16 +02:00
|
|
|
},
|
|
|
|
{
|
2023-09-09 14:52:06 +02:00
|
|
|
label: 'Fehler melden',
|
|
|
|
to: 'https://forge.nick-slowinski.de/nick-slowinski.de/docs/issues',
|
2023-09-03 19:05:16 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2023-09-09 14:23:21 +02:00
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} Nick Slowinski und <a href="/mitwirkende">Mitwirkende</a>`,
|
2023-09-03 19:05:16 +02:00
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
darkTheme: darkCodeTheme,
|
|
|
|
},
|
2023-09-09 14:57:19 +02:00
|
|
|
docs: {
|
|
|
|
sidebar: {
|
|
|
|
hideable: true,
|
|
|
|
autoCollapseCategories: true,
|
|
|
|
},
|
|
|
|
},
|
2023-09-03 19:05:16 +02:00
|
|
|
}),
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|