Skip to content

Commit

Permalink
chore: update to version 3
Browse files Browse the repository at this point in the history
  • Loading branch information
FritzHoing committed May 6, 2024
1 parent 70d79f6 commit 7e4914c
Show file tree
Hide file tree
Showing 3 changed files with 6,009 additions and 3,778 deletions.
10 changes: 6 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const {themes} = require('prism-react-renderer');
const lightTheme = themes.github;
const darkTheme = themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -111,8 +112,9 @@ i18n: {
copyright: `Copyright © ${(new Date()).getFullYear()} @terrestris. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: lightTheme,
darkTheme: darkTheme,
additionalLanguages: ['bash', 'diff', 'json'],
},
}),
};
Expand Down
Loading

0 comments on commit 7e4914c

Please sign in to comment.