Skip to content

Commit

Permalink
Update docusaurus.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
appenmaier authored Sep 15, 2023
1 parent d2e848e commit 43bb8e4
Showing 1 changed file with 74 additions and 67 deletions.
141 changes: 74 additions & 67 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,89 +1,96 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");

const config = {
title: 'Programmieren mit Java',
tagline: '',
url: 'https://jappuccini.github.io',
baseUrl: '/java-docs/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.ico',
organizationName: 'jappuccini',
projectName: 'java-docs',
title: "Programmieren mit Java",
tagline: "",
url: "https://jappuccini.github.io",
baseUrl: "/java-docs/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
favicon: "img/favicon.ico",
organizationName: "jappuccini",
projectName: "java-docs",
markdown: {
mermaid: true,
},
themes: ["@docusaurus/theme-mermaid"],

i18n: {
defaultLocale: 'de',
locales: ['de'],
defaultLocale: "de",
locales: ["de"],
},

presets: [
[
'@docusaurus/preset-classic',
({
"@docusaurus/preset-classic",
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/jappuccini/java-docs/tree/main/',
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/jappuccini/java-docs/tree/main/",
},
blog: false,
theme: {
customCss: [
require.resolve('./node_modules/reveal.js/dist/reveal.css'),
require.resolve('./node_modules/reveal.js/dist/theme/black.css'),
require.resolve('./node_modules/reveal.js/plugin/highlight/monokai.css'),
require.resolve('./src/css/custom.css'),
require.resolve("./node_modules/reveal.js/dist/reveal.css"),
require.resolve("./node_modules/reveal.js/dist/theme/black.css"),
require.resolve(
"./node_modules/reveal.js/plugin/highlight/monokai.css"
),
require.resolve("./src/css/custom.css"),
],
},
}),
},
],
],

themeConfig:
({
navbar: {
title: 'Startseite',
logo: {
alt: 'My Site Logo',
src: 'img/logo.png',
},
items: [
{
type: 'doc',
docId: 'documentation/introduction',
position: 'left',
label: 'Dokumentation',
},
{
type: 'doc',
docId: 'exercises/programming/programming',
position: 'left',
label: 'Übungsaufgaben',
},
{
type: 'doc',
docId: 'additional-material/instructions/cmd',
position: 'left',
label: 'Zusatzmaterial',
},
{
href: 'https://github.com/jappuccini/java-docs',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} Daniel Appenmaier & Steffen Merk Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['java'],
themeConfig: {
mermaid: {
theme: { light: "default", dark: "dark" },
},
navbar: {
title: "Startseite",
logo: {
alt: "My Site Logo",
src: "img/logo.png",
},
}),
items: [
{
type: "doc",
docId: "documentation/introduction",
position: "left",
label: "Dokumentation",
},
{
type: "doc",
docId: "exercises/programming/programming",
position: "left",
label: "Übungsaufgaben",
},
{
type: "doc",
docId: "additional-material/instructions/cmd",
position: "left",
label: "Zusatzmaterial",
},
{
href: "https://github.com/jappuccini/java-docs",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} Daniel Appenmaier & Steffen Merk Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ["java"],
},
},
};

module.exports = config;

0 comments on commit 43bb8e4

Please sign in to comment.