Upgrade to Docusaurus 3.0
This commit is contained in:
parent
bf4bfcdf71
commit
773013102a
@ -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:
|
||||||
@ -171,5 +171,3 @@ const config = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
|
||||||
|
17170
package-lock.json
generated
17170
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
25
package.json
25
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "niklas-birk-blog",
|
"name": "niklas-birk-blog",
|
||||||
"version": "0.1.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.4.1",
|
"@docusaurus/core": "^3.0.0",
|
||||||
"@docusaurus/preset-classic": "^2.4.1",
|
"@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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user