From 1e0d39d0e98602d5711c4ba87ed8cd68d53fade7 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 18 Dec 2022 15:36:09 +0100 Subject: [PATCH] chore: switch to public GitLab URL and add footer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • switch git URLs to public GitLab • add footer with links Signed-off-by: Matej Focko --- docusaurus.config.js | 68 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 62 insertions(+), 6 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 7ff5eee..af11806 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -23,7 +23,7 @@ class Subject { path: this.subject, routeBasePath: this.subject, sidebarPath: require.resolve("./sidebars.js"), - editUrl: "https://gitlab.fi.muni.cz/xfocko/kb/tree/main", + editUrl: "https://gitlab.com/mfocko/kb/tree/main", remarkPlugins: [math], rehypePlugins: [katex], }, @@ -39,6 +39,13 @@ class Subject { label: `${this.subject.toUpperCase()}: ${this.description}`, }; } + + footer() { + return { + label: `${this.subject.toUpperCase()}: ${this.description}`, + to: this.subject, + } + } } const subjects = [ @@ -91,6 +98,7 @@ const config = { type: 'all', copyright: `Copyright © ${new Date().getFullYear()} Matej Focko.`, }, + editUrl: "https://gitlab.com/mfocko/kb/tree/main", remarkPlugins: [math], rehypePlugins: [katex], }, @@ -119,16 +127,64 @@ const config = { position: "right", label: "Blog", }, - { - href: "https://gitlab.com/mfocko/kb", - label: "GitLab", - position: "right", - }, ], }, footer: { style: "dark", copyright: `Copyright © ${new Date().getFullYear()} Matej Focko.`, + links: [ + { + title: "Additional materials for φ courses", + items: subjects.map(s => s.footer()), + }, + { + title: "Social #1", + items: [ + { + label: "LinkedIn", + href: "https://www.linkedin.com/in/mfocko/", + }, + { + label: "GitHub", + href: "https://github.com/mfocko", + }, + { + label: "GitLab", + href: "https://gitlab.com/mfocko", + }, + ], + }, + { + title: "Social #2", + items: [ + { + label: "Twitter", + href: "https://twitter.com/m4tt_314", + }, + { + label: "Twitch", + href: "https://twitch.tv/m4tt_314", + }, + { + label: "Ko-fi", + href: "https://ko-fi.com/m4tt_314", + } + ] + }, + { + title: "Source of this web", + items: [ + { + label: "GitLab", + href: "https://gitlab.com/mfocko/kb", + }, + { + label: "GitLab FI", + href: "https://gitlab.fi.muni.cz/xfocko/kb", + }, + ] + } + ], }, prism: { theme: lightCodeTheme,