Skip to content

Commit

Permalink
[DOCFIX] Update checkstyle pr build check
Browse files Browse the repository at this point in the history
update the check-docs as well
			pr-link: #17995
			change-id: cid-5bcfa56a7696a65e93b0de460585a7807c9f5f82
  • Loading branch information
Zijian-Zhu authored Aug 15, 2023
1 parent cf30418 commit 459a6e9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions dev/scripts/src/alluxio.org/check-docs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,14 @@ func checkAndSaveUrl(files []File, menuMap map[string]struct{}, errMsgs []string
errMsgs = append(errMsgs, fmt.Sprintf("error msg: docs %v with url %v is ended with %v, please replace %v with %v", subfile.Title, subfile.URL, mdType, mdType, htmlType))
}
// ignore the folder path
if subfile.URL != "" {
// replace the url ending to .md in order to compare with actually list of docs in directory of docs
subfilePath := strings.Replace(subfile.URL, htmlType, mdType, 1)
menuMap[subfilePath] = struct{}{}
if subfile.URL == "" {
//recall the function until subfile.subFiles is empty
checkAndSaveUrl(subfile.Subfiles, menuMap, errMsgs)
continue
}
//recall the function until file.subFiles is empty
checkAndSaveUrl(file.Subfiles, menuMap, errMsgs)
// replace the url ending to .md in order to compare with actually list of docs in directory of docs
subfilePath := strings.Replace(subfile.URL, htmlType, mdType, 1)
menuMap[subfilePath] = struct{}{}
}
}
}
Expand Down

0 comments on commit 459a6e9

Please sign in to comment.