Skip to content

Commit

Permalink
🐛 fix(Prism): Update usage of prism-react-renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
jslvtr committed Apr 4, 2024
1 parent c837700 commit 69a5e36
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require("prism-react-renderer/themes/okaidia");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
import { Highlight, themes } from "prism-react-renderer";

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -145,11 +144,11 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} Teclado Ltd. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: themes.okaidia,
darkTheme: themes.dracula,
additionalLanguages: ["docker"],
},
}),
};

module.exports = config;
export default config;

0 comments on commit 69a5e36

Please sign in to comment.