Skip to content

Commit

Permalink
Merge pull request #6 from u-fish-bubble/pl
Browse files Browse the repository at this point in the history
修改文档
  • Loading branch information
parlay96 authored Aug 11, 2024
2 parents f337890 + f90fb64 commit 7d5db6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .docs/.dumi/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@
}

// 头部按钮颜色更改
:where(.css-dev-only-do-not-override-e7e9e7).site-tabs .site-tabs-tab-btn:active,
:where(.css-dev-only-do-not-override-e7e9e7) a:hover {
.docs-app .site-tabs .site-tabs-tab-btn:active,
.docs-app a:hover {
color: $docs-theme !important;
}

Expand Down
9 changes: 9 additions & 0 deletions .docs/.dumi/theme/slots/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { baseLink } from "../../../../config";
import { useLocation } from "umi";

let timer: any = null;

// 全局想往页面注入功能的地方

export default () => {
const columns = getColumns();
const location = useLocation();
Expand All @@ -25,6 +28,12 @@ export default () => {
}
}, [location.pathname, isReload.current]);

useEffect(() => {
if (document?.body) {
document.body.classList.add("docs-app");
}
}, []);

const bootom = (
<>
<a href={baseLink}> Open-source Apach2 Licensed | Copyright © 2024 | fishbubble </a>
Expand Down

0 comments on commit 7d5db6b

Please sign in to comment.