Skip to content

Commit

Permalink
修复ChangeLog报错
Browse files Browse the repository at this point in the history
  • Loading branch information
buyfakett committed Feb 21, 2025
1 parent c8835b4 commit 25ad939
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
14 changes: 8 additions & 6 deletions rsbuild.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { pluginMdx } from "@rsbuild/plugin-mdx";

export default defineConfig({
plugins: [
pluginReact(),
pluginMdx(),
],
plugins: [pluginReact()],
html: {
template: './index.html',
},
Expand All @@ -17,6 +13,12 @@ export default defineConfig({
// 编译所有 JS 文件并排除 core-js
// include: [{ not: /[\\/]core-js[\\/]/ }],
tsconfigPath: './jsconfig.json',
include: [/\.md$/],
},
tools: {
bundlerChain: (chain) => {
chain.module.rule('markdown').test(/\.md$/).type('asset/source');
},
},
output: {
distPath: {
Expand All @@ -29,4 +31,4 @@ export default defineConfig({
strategy: 'split-by-experience',
},
},
});
});
2 changes: 1 addition & 1 deletion src/util/ChangeLog.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import Markdown from 'react-markdown';
import changelog from '@/../CHANGELOG.md';
import { pageVariants } from '@/config.js';
import { pageVariants } from '@/config';
import { Button } from '@douyinfe/semi-ui';
import { motion } from 'framer-motion';
import { useNavigate } from 'react-router';
Expand Down
12 changes: 6 additions & 6 deletions src/view/AboutMe/Links.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const Links = () => {
</span>
</Paragraph>
<span className="mx-2">|</span>
{/*<Link*/}
{/* to="/changelog"*/}
{/* className="text-sm font-bold text-white dark:hover:text-blue-400 transition-colors duration-200">*/}
{/* Change Logs*/}
{/*</Link>*/}
{/*<span className="mx-2">|</span>*/}
<Link
to="/changelog"
className="text-sm font-bold text-white dark:hover:text-blue-400 transition-colors duration-200">
Change Logs
</Link>
<span className="mx-2">|</span>
<Link
to="/coffee"
className="text-sm font-bold text-white dark:hover:text-blue-400 transition-colors duration-200 flex items-center">
Expand Down

0 comments on commit 25ad939

Please sign in to comment.