2024-03-31 15:25:02 +02:00
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 = {
2024-03-31 22:23:14 +02:00
title : 'nick-slowinski.de' ,
tagline : 'Pinguine sind cool.' ,
2024-03-31 15:25:02 +02:00
favicon : 'img/favicon.ico' ,
// Set the production url of your site here
2024-03-31 22:23:14 +02:00
url : 'https://www.nick-slowinski.de' ,
2024-03-31 15:25:02 +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.
2024-03-31 22:23:14 +02:00
organizationName : 'nick-slowinski.de' , // Usually your GitHub org/user name.
projectName : 'www' , // Usually your repo name.
2024-03-31 15:25:02 +02:00
onBrokenLinks : 'throw' ,
onBrokenMarkdownLinks : 'warn' ,
// 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 : {
2024-03-31 22:23:14 +02:00
defaultLocale : 'de' ,
locales : [ 'de' ] ,
2024-03-31 15:25:02 +02:00
} ,
presets : [
[
'classic' ,
{
docs : {
2024-05-09 14:08:48 +02:00
path : 'services' ,
routeBasePath : 'services' ,
sidebarPath : './sidebarsServices.ts' ,
2024-03-31 15:25:02 +02:00
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
2024-03-31 22:23:14 +02:00
//editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
2024-03-31 15:25:02 +02:00
} ,
blog : {
showReadingTime : true ,
2024-03-31 22:23:14 +02:00
routeBasePath : '/' ,
2024-05-09 14:08:48 +02:00
blogSidebarTitle : 'Beiträge' ,
blogSidebarCount : 'ALL' ,
2024-03-31 15:25:02 +02:00
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
2024-03-31 22:23:14 +02:00
//editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
2024-03-31 15:25:02 +02:00
} ,
theme : {
customCss : './src/css/custom.css' ,
} ,
} satisfies Preset . Options ,
] ,
] ,
2024-05-09 14:08:48 +02:00
plugins : [
2024-05-11 10:15:46 +02:00
[ require . resolve ( "@easyops-cn/docusaurus-search-local" ) ,
( {
hashed : true ,
language : [ "de" ] ,
docsDir : [ "services" , "info" ] ,
indexPages : true ,
} ) ,
2024-05-11 09:57:07 +02:00
] ,
2024-05-09 14:08:48 +02:00
[
'@docusaurus/plugin-content-docs' ,
{
id : 'info' ,
path : 'info' ,
routeBasePath : 'info' ,
sidebarPath : './sidebarsInfo.ts' ,
// ... other options
} ,
] ,
] ,
2024-03-31 15:25:02 +02:00
themeConfig : {
// Replace with your project's social card
image : 'img/docusaurus-social-card.jpg' ,
navbar : {
2024-03-31 22:23:14 +02:00
title : 'nick-slowinski.de' ,
2024-03-31 15:25:02 +02:00
items : [
2024-08-16 16:59:47 +02:00
{ to : '/' , label : 'Blog' , position : 'left' , activeBaseRegex : '^(\/$)|^(?=\s*$)' } ,
2024-03-31 15:25:02 +02:00
{
type : 'docSidebar' ,
2024-05-09 14:08:48 +02:00
sidebarId : 'servicesSidebar' ,
position : 'left' ,
label : 'Dienste' ,
} ,
{
type : 'docSidebar' ,
docsPluginId : 'info' ,
sidebarId : 'infoSidebar' ,
2024-03-31 15:25:02 +02:00
position : 'left' ,
2024-05-09 14:08:48 +02:00
label : 'Informationen' ,
2024-03-31 15:25:02 +02:00
} ,
] ,
} ,
footer : {
style : 'dark' ,
links : [
{
2024-03-31 22:23:14 +02:00
title : 'Dienste' ,
2024-03-31 15:25:02 +02:00
items : [
{
2024-03-31 22:23:14 +02:00
label : 'Community Forum' ,
to : 'https://community.nick-slowinski.de' ,
} ,
{
label : 'Forge' ,
to : 'https://forge.nick-slowinski.de' ,
} ,
{
label : 'Passwort-Manager' ,
to : 'https://vault.nick-slowinski.de' ,
} ,
{
2024-05-09 16:00:59 +02:00
label : 'nsAccounts (Kontoverwaltung)' ,
2024-05-09 16:04:25 +02:00
to : 'https://accounts.nick-slowinski.de/realms/nick-slowinski_de/account' ,
2024-03-31 22:23:14 +02:00
} ,
{
label : 'TeamSpeak' ,
to : 'ts3server://nick-slowinski.de' ,
} ,
{
2024-05-09 16:00:59 +02:00
label : 'Alle Dienste entdecken' ,
to : '/services/daten' ,
}
2024-03-31 15:25:02 +02:00
] ,
} ,
{
2024-03-31 22:23:14 +02:00
title : 'Support' ,
items : [
{
label : 'Statusseite' ,
to : 'https://status.nick-slowinski.de' ,
} ,
{
label : 'E-Mail' ,
to : 'mailto:support@nick-slowinski.de' ,
} ,
{
label : 'Community Forum' ,
to : 'https://community.nick-slowinski.de/c/support/5' ,
} ,
] ,
} ,
{
title : 'Rechtliches' ,
2024-03-31 15:25:02 +02:00
items : [
{
2024-03-31 22:23:14 +02:00
label : 'Impressum' ,
to : '/impressum' ,
2024-03-31 15:25:02 +02:00
} ,
{
2024-03-31 22:23:14 +02:00
label : 'Datenschutzerklärung' ,
2024-08-11 20:50:13 +02:00
to : '/datenschutzerklaerung' ,
2024-03-31 15:25:02 +02:00
} ,
] ,
} ,
] ,
2024-08-11 20:57:35 +02:00
copyright : ` Dieses Werk ist unter der <a href="https://creativecommons.org/licenses/by/4.0/deed.de" target="_blank">Creative Commons Namensnennung 4.0 International (CC BY 4.0)</a> lizenziert, sofern nicht anders angegeben.<br>Wir danken allen <a href="https://forge.nick-slowinski.de/nick-slowinski.de/www/activity/contributors">Mitwirkenden</a>. ` ,
2024-03-31 15:25:02 +02:00
} ,
prism : {
theme : prismThemes.github ,
darkTheme : prismThemes.dracula ,
} ,
2024-08-05 22:06:03 +02:00
colorMode : {
respectPrefersColorScheme : true ,
} ,
2024-03-31 15:25:02 +02:00
} satisfies Preset . ThemeConfig ,
} ;
2024-05-11 09:57:07 +02:00
export default config ;