Some checks failed
Pre-commit / run (ubuntu-latest) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_en (ubuntu-latest, 3.10) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_zh (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.12) (push) Has been cancelled
16 lines
452 B
JavaScript
16 lines
452 B
JavaScript
function switchV1Language() {
|
|
if (window.location.href.includes("zh_CN")) {
|
|
window.location.href = "https://doc.agentscope.io";
|
|
} else {
|
|
window.location.href = "https://doc.agentscope.io/zh_CN";
|
|
}
|
|
}
|
|
|
|
|
|
function navigateToV0(version) {
|
|
if (version === "v0") {
|
|
const suffix = window.location.href.includes("zh_CN") ? "/zh_CN" : "/en";
|
|
window.location.href = "https://doc.agentscope.io/v0" + suffix;
|
|
}
|
|
}
|