Skip to content

Commit 7b1088e

Browse files
committed
Add links
1 parent fede1a7 commit 7b1088e

File tree

3 files changed

+55
-16
lines changed

3 files changed

+55
-16
lines changed

index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
33
<html>
4-
<head>
5-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<title>Dashingsoft</title>
7-
</head>
8-
<body>
9-
<h1>Dashingsoft</h1>
10-
<p>Dashingsoft corp. has 2 product suites</p>
11-
<h2 id="pyarmor">Pyarmor</h1>
12-
<p>Pyarmor is a command line tool used to import or run obfuscated python scripts.</p>
13-
<h2 id="eke">Eke</h1>
14-
<p>Eke is knowledge systems to manage different knowledges, let people learn knowledges and use knowledges.</p>
15-
</body>
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>Dashingsoft</title>
7+
</head>
8+
<body>
9+
<h1>Dashingsoft</h1>
10+
<p>Dashingsoft corp. has 2 product suites</p>
11+
<h2 id="pyarmor">Pyarmor</h1>
12+
<p>Pyarmor is a command line tool used to import or run obfuscated python scripts.</p>
13+
<h2 id="eke">Eke</h1>
14+
<p>Eke is knowledge systems to manage different knowledges, let people learn knowledges and use knowledges.</p>
15+
</body>
1616
</html>

pyarmor/docs/index.html

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1-
<head>
2-
<meta http-equiv="refresh" content="0; url=en/index.html" />
3-
</head>
1+
<!doctype html>
2+
<html lang="en" data-bs-theme="auto">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<meta name="description" content="Pyarmor Documentation">
7+
<meta name="author" content="Jondy Zhao">
8+
<title>Pyarmor</title>
9+
10+
</head>
11+
<body>
12+
<h3>Pyarmor Documentation</h3>
13+
<ul>
14+
<li><a href="en/index.html">English</a></li>
15+
<li><a href="zh/index.html">Chinese</a></li>
16+
</ul>
17+
<script>
18+
window.addEventListener('DOMContentLoaded', () => {
19+
const lang = navigator.language.startsWith('zh-') ? 'zh' : 'en'
20+
const url = window.location.href.replace('/index.html', `/${lang}/index.html`)
21+
window.location.replace(url.endsWith('/index.html') ? url : `${url}/${lang}/index.html`)
22+
})
23+
</script>
24+
</body>
25+
</html>

pyarmor/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3+
<html>
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>Pyarmor Learning System</title>
7+
</head>
8+
<body>
9+
<h3>Pyarmor Learning System</h3>
10+
<ul>
11+
<li><a href="learn/index.html">Learn</a></li>
12+
<li><a href="try/index.html">Try</a></li>
13+
<li><a href="ask/index.html">Ask</a></li>
14+
<li><a href="docs/index.html">Docs</a></li>
15+
</ul>
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)