This is an automated email from the ASF dual-hosted git repository.
liudongkai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git
The following commit(s) were added to refs/heads/master by this push:
new 0980f3b270 When running 'yarn generate' on windows times error "Cannot
find module '/D:\IdeaProjects\ dolphinscheduler.com \config\docs\docs1-2-0.js"
Delete '/' (#951)
0980f3b270 is described below
commit 0980f3b270a1b9fed9d4efe5053c8d1c6c4ad553
Author: BaiJv <[email protected]>
AuthorDate: Fri Mar 1 16:36:18 2024 +0800
When running 'yarn generate' on windows times error "Cannot find module
'/D:\IdeaProjects\ dolphinscheduler.com \config\docs\docs1-2-0.js" Delete '/'
(#951)
---
scripts/generate_docs.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/generate_docs.js b/scripts/generate_docs.js
index 6a11bed929..9accdd7455 100644
--- a/scripts/generate_docs.js
+++ b/scripts/generate_docs.js
@@ -251,7 +251,7 @@ const parseDocsMenu = () => {
const filePath = path.join(sourcePath, doc);
const fileInfo = path.parse(filePath);
formateFile(filePath);
- const fileContent = require(`/${filePath}`);
+ const fileContent = require(`${filePath}`);
const enUs = [];
const zhCn = [];