Change title, change path to gitea, add website link, add default dark theme
This commit is contained in:
parent
eaf08db16f
commit
8077d07639
@ -6,13 +6,13 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|||||||
|
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
title: 'Niklas Birk und die Welt der Mathematik und Informatik',
|
title: 'Mathematik, Informatik und Programmierung',
|
||||||
tagline: 'Mathematik und Informatik sind cool',
|
tagline: 'Mathematik und Informatik sind cool',
|
||||||
url: 'https://www.niklas-birk.de',
|
url: 'https://www.niklas-birk.de',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
onBrokenMarkdownLinks: 'warn',
|
onBrokenMarkdownLinks: 'warn',
|
||||||
favicon: 'img/favicon.ico',
|
favicon: 'img/niklas-birk-icon.ico',
|
||||||
|
|
||||||
// GitHub pages deployment config.
|
// GitHub pages deployment config.
|
||||||
// If you aren't using GitHub pages, you don't need these.
|
// If you aren't using GitHub pages, you don't need these.
|
||||||
@ -32,7 +32,7 @@ const config = {
|
|||||||
'classic',
|
'classic',
|
||||||
/** @type {import('@docusaurus/preset-classic').Options} */
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
||||||
({
|
({
|
||||||
// docs: {
|
docs: false, //{
|
||||||
// sidebarPath: require.resolve('./sidebars.js'),
|
// sidebarPath: require.resolve('./sidebars.js'),
|
||||||
// // Please change this to your repo.
|
// // Please change this to your repo.
|
||||||
// // Remove this to remove the "edit this page" links.
|
// // Remove this to remove the "edit this page" links.
|
||||||
@ -56,8 +56,13 @@ const config = {
|
|||||||
themeConfig:
|
themeConfig:
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
({
|
({
|
||||||
|
colorMode: {
|
||||||
|
defaultMode: 'dark',
|
||||||
|
disableSwitch: true,
|
||||||
|
respectPrefersColorScheme: false,
|
||||||
|
},
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'Niklas Birk und die Welt der Mathematik und Informatik',
|
title: 'Mathematik und Informatik',
|
||||||
logo: {
|
logo: {
|
||||||
alt: 'Logo von Niklas Birk',
|
alt: 'Logo von Niklas Birk',
|
||||||
src: 'img/niklas-birk-logo.svg',
|
src: 'img/niklas-birk-logo.svg',
|
||||||
@ -71,8 +76,8 @@ const config = {
|
|||||||
// },
|
// },
|
||||||
{to: '/blog', label: 'Blog', position: 'left'},
|
{to: '/blog', label: 'Blog', position: 'left'},
|
||||||
{
|
{
|
||||||
href: 'https://github.com/facebook/docusaurus',
|
href: 'https://git.niklas-birk.de/niklas/niklas_birk_blog',
|
||||||
label: 'GitHub',
|
label: 'Gitea',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -92,14 +97,6 @@ const config = {
|
|||||||
{
|
{
|
||||||
title: 'Community',
|
title: 'Community',
|
||||||
items: [
|
items: [
|
||||||
// {
|
|
||||||
// label: 'Stack Overflow',
|
|
||||||
// href: 'https://stackoverflow.com/questions/tagged/docusaurus',
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: 'Discord',
|
|
||||||
// href: 'https://discordapp.com/invite/docusaurus',
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
label: 'Twitter',
|
label: 'Twitter',
|
||||||
href: 'https://twitter.com/SirNik_OdTW',
|
href: 'https://twitter.com/SirNik_OdTW',
|
||||||
@ -117,6 +114,10 @@ const config = {
|
|||||||
label: 'Blog',
|
label: 'Blog',
|
||||||
to: '/blog',
|
to: '/blog',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Website',
|
||||||
|
href: 'https://www.niklas-birk.de',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Gitea',
|
label: 'Gitea',
|
||||||
href: 'https://git.niklas-birk.de',
|
href: 'https://git.niklas-birk.de',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user