Skip to content

Commit 92c29f1

Browse files
committed
Fix redirect link issue
1 parent f4ba778 commit 92c29f1

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
lines changed

pyarmor/ask/en/index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Ask Pyarmor</title>
7-
<link href="/pyarmor/assets/bootstrap-5.3.3/bootstrap.min.css" rel="stylesheet">
87
<link href="../../assets/bootstrap-5.3.3/bootstrap.min.css" rel="stylesheet">
98
</head>
109
<body>
@@ -49,11 +48,11 @@ <h5 class="card-title">Ask Pyarmor</h5>
4948
How to fix build Issues?
5049
</div>
5150
<div class="list-group list-group-flush">
52-
<a href="/pyarmor/learn/en/how-to.html#generate-script-issue"
51+
<a href="../../learn/en/how-to.html#generate-script-issue"
5352
class="list-group-item list-group-item-action">
5453
Generating obfuscated scripts
5554
</a>
56-
<a href="/pyarmor/learn/en/how-to.html#pack-script-issue"
55+
<a href="../../learn/en/how-to.html#pack-script-issue"
5756
class="list-group-item list-group-item-action">
5857
Packing obfuscated scripts
5958
</a>
@@ -64,19 +63,19 @@ <h5 class="card-title">Ask Pyarmor</h5>
6463
How to fix runtime issues?
6564
</div>
6665
<div class="list-group list-group-flush">
67-
<a href="/pyarmor/learn/en/how-to.html#run-obfuscated-script-issue"
66+
<a href="../../learn/en/how-to.html#run-obfuscated-script-issue"
6867
class="list-group-item list-group-item-action">
6968
Executing obfuscated script by Python interpreter
7069
</a>
71-
<a href="/pyarmor/learn/en/how-to.html#run-packed-script-issue"
70+
<a href="../../learn/en/how-to.html#run-packed-script-issue"
7271
class="list-group-item list-group-item-action">
7372
Executing the packed bundle directly
7473
</a>
7574
</div>
7675
</div>
7776
</div>
7877

79-
<script src="/pyarmor/assets/bootstrap-5.3.3/bootstrap.bundle.min.js"></script>
78+
<script src="../../assets/bootstrap-5.3.3/bootstrap.bundle.min.js"></script>
8079
<script>
8180
window.addEventListener("DOMContentLoaded", () => {
8281
document.querySelector("button.zh").addEventListener("click", (e) => {

pyarmor/ask/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h3>Ask Pyarmor</h3>
1818
window.addEventListener('DOMContentLoaded', () => {
1919
const lang = navigator.language.startsWith('zh-') ? 'zh' : 'en'
2020
const url = window.location.href.replace('/index.html', `/${lang}/index.html`)
21-
window.location.replace(url.endsWith('/index.html') ? url : `${url}/${lang}/index.html`)
21+
window.location.replace(url.endsWith('/index.html') ? url : `${url}${lang}/index.html`)
2222
})
2323
</script>
2424
</body>

pyarmor/ask/zh/index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Pyarmor 解惑</title>
7-
<link href="/pyarmor/assets/bootstrap-5.3.3/bootstrap.min.css" rel="stylesheet">
87
<link href="../../assets/bootstrap-5.3.3/bootstrap.min.css" rel="stylesheet">
98
</head>
109
<body>
@@ -48,11 +47,11 @@ <h5 class="card-title">Pyarmor 解惑</h5>
4847
如何解决在构建设备上遇到的问题?
4948
</div>
5049
<div class="list-group list-group-flush">
51-
<a href="/pyarmor/learn/zh/how-to.html#generate-script-issue"
50+
<a href="../../learn/zh/how-to.html#generate-script-issue"
5251
class="list-group-item list-group-item-action">
5352
生成加密脚本
5453
</a>
55-
<a href="/pyarmor/learn/zh/how-to.html#pack-script-issue"
54+
<a href="../../learn/zh/how-to.html#pack-script-issue"
5655
class="list-group-item list-group-item-action">
5756
打包加密脚本
5857
</a>
@@ -63,19 +62,19 @@ <h5 class="card-title">Pyarmor 解惑</h5>
6362
如何解决运行加密脚本出现的问题?
6463
</div>
6564
<div class="list-group list-group-flush">
66-
<a href="/pyarmor/learn/zh/how-to.html#run-obfuscated-script-issue"
65+
<a href="../../learn/zh/how-to.html#run-obfuscated-script-issue"
6766
class="list-group-item list-group-item-action">
6867
运行的是加密脚本
6968
</a>
70-
<a href="/pyarmor/learn/zh/how-to.html#run-packed-script-issue"
69+
<a href="../../learn/zh/how-to.html#run-packed-script-issue"
7170
class="list-group-item list-group-item-action">
7271
运行的是打包后的可执行文件
7372
</a>
7473
</div>
7574
</div>
7675
</div>
7776

78-
<script src="/pyarmor/assets/bootstrap-5.3.3/bootstrap.bundle.min.js"></script>
77+
<script src="../../assets/bootstrap-5.3.3/bootstrap.bundle.min.js"></script>
7978
<script>
8079
window.addEventListener("DOMContentLoaded", () => {
8180
document.querySelector("button.en").addEventListener("click", (e) => {

pyarmor/docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h3>Pyarmor Documentation</h3>
1818
window.addEventListener('DOMContentLoaded', () => {
1919
const lang = navigator.language.startsWith('zh-') ? 'zh' : 'en'
2020
const url = window.location.href.replace('/index.html', `/${lang}/index.html`)
21-
window.location.replace(url.endsWith('/index.html') ? url : `${url}/${lang}/index.html`)
21+
window.location.replace(url.endsWith('/index.html') ? url : `${url}${lang}/index.html`)
2222
})
2323
</script>
2424
</body>

pyarmor/learn/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h3>Learn Pyarmor</h3>
1818
window.addEventListener('DOMContentLoaded', () => {
1919
const lang = navigator.language.startsWith('zh-') ? 'zh' : 'en'
2020
const url = window.location.href.replace('/index.html', `/${lang}/index.html`)
21-
window.location.replace(url.endsWith('/index.html') ? url : `${url}/${lang}/index.html`)
21+
window.location.replace(url.endsWith('/index.html') ? url : `${url}${lang}/index.html`)
2222
})
2323
</script>
2424
</body>

pyarmor/try/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h3>Try Pyarmor</h3>
1818
window.addEventListener('DOMContentLoaded', () => {
1919
const lang = navigator.language.startsWith('zh-') ? 'zh' : 'en'
2020
const url = window.location.href.replace('/index.html', `/${lang}/index.html`)
21-
window.location.replace(url.endsWith('/index.html') ? url : `${url}/${lang}/index.html`)
21+
window.location.replace(url.endsWith('/index.html') ? url : `${url}${lang}/index.html`)
2222
})
2323
</script>
2424
</body>

0 commit comments

Comments
 (0)