Skip to content

Commit

Permalink
documentation: changed code Prism highlighting theme for dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SNMetamorph committed Dec 21, 2024
1 parent 376cdc4 commit ce04b69
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions documentation/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const {themes} = require('prism-react-renderer');
const lightTheme = themes.github;
const darkTheme = themes.dracula;
import { themes as prismThemes } from 'prism-react-renderer';

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -133,8 +131,8 @@ const config = {
respectPrefersColorScheme: true,
},
prism: {
theme: lightTheme,
darkTheme: darkTheme,
theme: prismThemes.github,
darkTheme: prismThemes.oneDark,
},
metadata: [
{ name: 'keywords', content: 'hlsdk, gamedev, programming, open source, half-life, xash3d, fwgs, goldsrc, sdk, opengl, physx, xashxt, modding, snmetamorph' }
Expand Down

0 comments on commit ce04b69

Please sign in to comment.