mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-22 02:37:42 +00:00
fix theme import
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
// Note: type annotations allow type checking and IDEs autocompletion
|
// Note: type annotations allow type checking and IDEs autocompletion
|
||||||
|
|
||||||
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
import {themes as prismThemes} from 'prism-react-renderer';
|
||||||
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
||||||
|
const lightCodeTheme = prismThemes.github;
|
||||||
|
const darkCodeTheme = prismThemes.dracula;
|
||||||
|
|
||||||
// order usage directory by type first
|
// order usage directory by type first
|
||||||
function sortItemsByCategory(items) {
|
function sortItemsByCategory(items) {
|
||||||
|
|||||||
Reference in New Issue
Block a user