Skip to content

Commit 2fd689b

Browse files
authored
Merge pull request #156 from tecladocode/jose/fix-js-deps
📦️ dep-up(JS): Update JS dependencies for Docusaurus 3.2
2 parents a3b2d2f + 69a5e36 commit 2fd689b

File tree

3 files changed

+8725
-21286
lines changed

3 files changed

+8725
-21286
lines changed

docs/docusaurus.config.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

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

76
/** @type {import('@docusaurus/types').Config} */
87
const config = {
@@ -145,11 +144,11 @@ const config = {
145144
copyright: `Copyright © ${new Date().getFullYear()} Teclado Ltd. Built with Docusaurus.`,
146145
},
147146
prism: {
148-
theme: lightCodeTheme,
149-
darkTheme: darkCodeTheme,
147+
theme: themes.okaidia,
148+
darkTheme: themes.dracula,
150149
additionalLanguages: ["docker"],
151150
},
152151
}),
153152
};
154153

155-
module.exports = config;
154+
export default config;

0 commit comments

Comments
 (0)