Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
url = https://github.com/OpenAtom-Linyaps/linyaps.git
[submodule "linyaps/1.10.x"]
path = linyaps/1.10.x
branch = docs/10.x
url = https://github.com/OpenAtom-Linyaps/linyaps.git
14 changes: 13 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,26 @@ const config: UserConfig = {
// TODO 有关于manifests的死链接需要处理
ignoreDeadLinks: [
(url, source) => {
console.log(source);
// 1.10.x开始的版本只跳过README文件的死链接检查
if (source.includes("1.10.x")) {
if (
source.includes("1.10.x/README.md") ||
source.includes("1.10.x/README.zh_CN.md")
) {
return true;
}
return false;
}
if (source.endsWith("README.md")) {
console.log("ignoreDeadLinks", source);
return true;
}
if (source.endsWith("README.zh_CN.md")) {
console.log("ignoreDeadLinks", source);
return true;
}
if (url.endsWith("/manifests")) {
console.log("ignoreDeadLinks", source);
return true;
}
return false;
Expand Down
Loading