Skip to content

Commit

Permalink
do a few updates, tweak code accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
kelset committed Sep 27, 2023
1 parent 564f7ca commit 7971204
Show file tree
Hide file tree
Showing 3 changed files with 234 additions and 217 deletions.
5 changes: 3 additions & 2 deletions docsite/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

// Ensure content is generated
require("./generate")();
const { themes } = require('prism-react-renderer');

const darkCodeTheme = require("prism-react-renderer/themes/vsDark");
const darkCodeTheme = themes.vsDark;

/** @type {import("prism-react-renderer").PrismTheme} */
// @ts-expect-error Type definition doesn't match up with actual export
const lightCodeTheme = require("prism-react-renderer/themes/vsLight");
const lightCodeTheme = themes.vsLight;
lightCodeTheme.plain.color = "rgb(28, 30, 33)"; // from CSS --font-color-base-rgb
lightCodeTheme.plain.backgroundColor = "#ffffff";

Expand Down
12 changes: 6 additions & 6 deletions docsite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "^2.2.0",
"@docusaurus/preset-classic": "^2.2.0",
"@tsconfig/docusaurus": "^1.0.6",
"@docusaurus/core": "^2.4.0",
"@docusaurus/preset-classic": "^2.4.0",
"@tsconfig/docusaurus": "^2.0.1",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "17.0.2",
"react-dom": "17.0.2",
"prism-react-renderer": "^2.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "^5.0.0"
},
"engines": {
Expand Down
Loading

0 comments on commit 7971204

Please sign in to comment.