From 8d394239d36fa3d8d6f6b6daa1d7d528dac4c20a Mon Sep 17 00:00:00 2001 From: zhujingyang <72259332+zjy365@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:07:04 +0800 Subject: [PATCH] fix:docs reference scripts path problem (#4535) Signed-off-by: jingyang <3161362058@qq.com> --- docs/website/docusaurus.config.js | 8 ++++---- docs/website/src/components/Highlight/index.tsx | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/website/docusaurus.config.js b/docs/website/docusaurus.config.js index 98845f2e3f2..5e38eb1a599 100644 --- a/docs/website/docusaurus.config.js +++ b/docs/website/docusaurus.config.js @@ -228,12 +228,12 @@ const config = { }, scripts: [ { - src: "wow.min.js", - async: false, + src: "/wow.min.js", + async: true }, { - src: "global.js", - async: true, + src: "/global.js", + async: true } ], headTags: [ diff --git a/docs/website/src/components/Highlight/index.tsx b/docs/website/src/components/Highlight/index.tsx index aac0f2ccbd8..072579a9c98 100644 --- a/docs/website/src/components/Highlight/index.tsx +++ b/docs/website/src/components/Highlight/index.tsx @@ -33,8 +33,8 @@ export default function LinkButton({ content, url }) { fill="white" /> @@ -44,4 +44,4 @@ export default function LinkButton({ content, url }) { ); -} \ No newline at end of file +}