Compare commits

4 Commits

Author SHA1 Message Date
773013102a Upgrade to Docusaurus 3.0 2023-10-31 20:41:33 +01:00
bf4bfcdf71 Minor changes 2023-08-17 22:36:57 +02:00
1ec72c355b Update docusaurus from 2.2.0 to 2.4.0 2023-03-28 13:18:49 +02:00
eb3271b0d9 Change blog version from 0.0.0 to 0.1.0 2023-01-10 23:37:26 +01:00
35 changed files with 6546 additions and 12874 deletions

View File

@ -1,14 +1,14 @@
// @ts-check // @ts-check
// Note: type annotations allow type checking and IDEs autocompletion // Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github'); import remarkMath from 'remark-math';
const darkCodeTheme = require('prism-react-renderer/themes/dracula'); import rehypeKatex from 'rehype-katex';
const math = require('remark-math'); const lightCodeTheme = require('prism-react-renderer').themes.github;
const katex = require('rehype-katex'); const darkCodeTheme = require('prism-react-renderer').themes.dracula;
/** @type {import('@docusaurus/types').Config} */ /** @type {import('@docusaurus/types').Config} */
const config = { export default {
title: 'Mathematik, Informatik und Programmierung', 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',
@ -38,8 +38,8 @@ const config = {
// docs: false, // docs: false,
docs: { docs: {
sidebarPath: require.resolve('./sidebars.js'), sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math], remarkPlugins: [remarkMath],
rehypePlugins: [katex], rehypePlugins: [rehypeKatex],
// // 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.
// // editUrl: // // editUrl:
@ -124,15 +124,15 @@ const config = {
label: 'Mastodon', label: 'Mastodon',
href: 'https://mathstodon.xyz/web/@SirNik', href: 'https://mathstodon.xyz/web/@SirNik',
}, },
{
label: 'Twitch',
href: 'https://www.twitch.tv/sirnikodtw',
},
], ],
}, },
{ {
title: 'More', title: 'Mehr von mir',
items: [ items: [
// {
// label: 'Blog',
// to: '/blog',
// },
{ {
label: 'Website', label: 'Website',
href: 'https://www.niklas-birk.de', href: 'https://www.niklas-birk.de',
@ -143,6 +143,15 @@ const config = {
}, },
], ],
}, },
{
title: 'Legal',
items: [
{
label: 'Impressum',
href: 'https://www.niklas-birk.de/impressum.html',
},
],
},
], ],
copyright: `Copyright © ${new Date().getFullYear()} Niklas Birk. Built with Docusaurus.`, copyright: `Copyright © ${new Date().getFullYear()} Niklas Birk. Built with Docusaurus.`,
}, },
@ -162,5 +171,3 @@ const config = {
}, },
], ],
}; };
module.exports = config;

19056
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "niklas-birk-blog", "name": "niklas-birk-blog",
"version": "0.0.0", "version": "0.1.1",
"private": true, "private": true,
"scripts": { "scripts": {
"docusaurus": "docusaurus", "docusaurus": "docusaurus",
@ -14,19 +14,20 @@
"write-heading-ids": "docusaurus write-heading-ids" "write-heading-ids": "docusaurus write-heading-ids"
}, },
"dependencies": { "dependencies": {
"@docusaurus/core": "^2.2.0", "@docusaurus/core": "^3.0.0",
"@docusaurus/preset-classic": "^2.2.0", "@docusaurus/preset-classic": "^3.0.0",
"@mdx-js/react": "^1.6.22", "@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"hast-util-is-element": "^1.1.0", "hast-util-is-element": "^3.0.0",
"prism-react-renderer": "^1.3.5", "prism-react-renderer": "^2.1.0",
"react": "^17.0.2", "react": "^18.2.0",
"react-dom": "^17.0.2", "react-dom": "^18.2.0",
"rehype-katex": "^5.0.0", "rehype-katex": "^7.0.0",
"remark-math": "^3.0.1" "remark-math": "^6.0.0"
}, },
"devDependencies": { "devDependencies": {
"@docusaurus/module-type-aliases": "^2.1.0" "@docusaurus/module-type-aliases": "^3.0.0",
"@docusaurus/types": "3.0.0"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [
@ -41,6 +42,6 @@
] ]
}, },
"engines": { "engines": {
"node": ">=16.14" "node": ">=18.0"
} }
} }

View File

@ -24,9 +24,9 @@ const FeatureList = [
Verarbeitung befasst.</p> Verarbeitung befasst.</p>
<p> <p>
<q><cite>In der Informatik geht es genau so wenig um Computer, wie in der Astronomie um <q><cite>In der Informatik geht es genau so wenig um Computer, wie in der Astronomie um
Teleskope.</cite></q> Teleskope.</cite></q><br />
</p>
- Edsger Wybe Dijkstra - Edsger Wybe Dijkstra
</p>
</> </>
), ),
}, },