Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingfengdev committed Dec 14, 2024
1 parent b3373fb commit 9b29a1d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
30 changes: 15 additions & 15 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ const config = {
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
zoom: {
selector: '.markdown :not(em) > img',
background: {
light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)',
},
},
navbar: {
title: 'Chest-Commands-Wiki-CN',
logo: {
Expand Down Expand Up @@ -129,28 +136,21 @@ const config = {
},
// 深浅主题
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: prismThemes.vsLight,
darkTheme: prismThemes.vsDark,
},
// 颜色随系统切换
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
}),

themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
language: ["en", "zh"],
highlightSearchTermsOnTargetPage: true,
explicitSearchResultPath: true,
indexBlog: false,
docsRouteBasePath: "/"
},
],
],
themes: [
'@docusaurus/theme-mermaid'

],
};

module.exports = config;
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
"@docusaurus/plugin-sitemap": "^3.6.3",
"@docusaurus/preset-classic": "^3.6.3",
"@docusaurus/theme-common": "^3.6.3",
"@easyops-cn/docusaurus-search-local": "^0.35.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
"docusaurus-plugin-image-zoom": "^2.0.0",
"docusaurus-plugin-sass": "^0.2.5",
"pnpm": "^9.13.2",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"prism-react-renderer": "^2.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.6.3"
Expand Down

0 comments on commit 9b29a1d

Please sign in to comment.